diff --git a/LICENSE.port b/LICENSE.port new file mode 100644 index 0000000000000000000000000000000000000000..c6378ab40f117d057b05cf6a7336d5cdccb67262 --- /dev/null +++ b/LICENSE.port @@ -0,0 +1,23 @@ +MIT License + +Copyright (c) 2026 AgentEscapeBench Harbor port contributors + +Applies only to new port code, excluding vendored upstream code and scenarios. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a7b266ebf0879f82e913eb825ecedf0bc86bc3c8 --- /dev/null +++ b/README.md @@ -0,0 +1,142 @@ +--- +pretty_name: AgentEscapeBench for Harbor +tags: +- harbor +- openenv +- agent-environment +- tool-use +- evaluation +language: +- en +size_categories: +- n<1K +--- + +# AgentEscapeBench for Harbor and OpenEnv + +A private working port of [AgentEscapeBench](https://github.com/AGI-Eval-Official/Repo-of-AgentEscapeBench), pinned to upstream commit `03742c79f48646e0130886e18e3e79798cf8edd7`. + +Contains **270 runnable Harbor tasks**, with the original **60 / 60 / 60 / 60 / 30** scenarios at difficulties **5 / 10 / 15 / 20 / 25**. OpenEnv uses the same tasks through its existing Harbor integration. There is no separate native OpenEnv `step()` environment. + +## Run a task + +Requirements: Linux Docker Engine, Docker Compose, Python 3.13, and `uv`. The tested Harbor version is **0.25.0**. Docker is the supported sandbox; E2B and HF Sandbox do not support this task's multi-container layout. + +From this repository checkout: + +```bash +uv sync --extra harbor --extra hub --extra openenv +uv run agentescape-port --pilot --output-dir pilot-tasks +uv run harbor run -p pilot-tasks -a oracle --env docker -n 1 +``` + +The source distribution includes all 270 generated tasks under `tasks/`; running the generator is optional. `--pilot` produces an item-chain task and a 25-node Python-execution task. Generate the entire suite with `uv run agentescape-port --output-dir tasks`; pass `--overwrite` only when replacing previously generated output intentionally. The generator requires this source checkout, including `data/` and `runtime-requirements.txt`. + +For an actual coding agent, replace `oracle` with a supported Harbor agent and specify its model, for example: + +```bash +uv run harbor run -p tasks -a claude-code -m anthropic/claude-sonnet-4-6 --env docker -n 1 +``` + +The model command is illustrative; no paid model baseline or original-paper score reproduction is claimed. Agent model/API credentials are configured through Harbor, outside the puzzle and code-worker services. + +## Download a pinned HF release + +The dataset is private at `edbeeching/AgentEscapeBench-harbor`; authenticate with an account having access. Choose a full HF commit SHA from the repository history: + +```python +from huggingface_hub import snapshot_download + +snapshot_download( + repo_id="edbeeching/AgentEscapeBench-harbor", + repo_type="dataset", + revision="", + local_dir="./agentescape-snapshot", + allow_patterns=["tasks/**"], +) +``` + +Using `local_dir` gives real files suitable for Harbor uploads. Run the downloaded suite with: + +```bash +uv run harbor run -p ./agentescape-snapshot/tasks -a oracle --env docker -n 1 +``` + +All runtime files required by each task are inside that task. No development package, sibling task, source-repository checkout, or top-level shared runtime is needed inside the sandbox. + +## OpenEnv + +This checkout pins OpenEnv main to `1e5317e9ebbe016fb9f94e545cf4a996d464e22b` through `uv.lock` and the `openenv` optional dependency. Use a compatible OpenAI-style endpoint and the downloaded task directory: + +```bash +uv run openenv harbor info \ + --llm-url "$LLM_URL" --dataset ./agentescape-snapshot/tasks + +uv run openenv harbor rollout \ + --llm-url "$LLM_URL" --dataset ./agentescape-snapshot/tasks \ + --task-index 0 --harness opencode --sandbox docker \ + --out rollout.json +``` + +See [OpenEnv's Harbor reference](https://huggingface.co/docs/openenv/main/environments/harbor) for endpoint authentication and proxy reachability. Plain HF IDs load a floating repository revision in the inspected OpenEnv loader; use the pinned local snapshot for reproducibility. + +`tests/openenv_smoke.py` uses the actual OpenEnv rollout implementation, capture proxy, and an explicitly registered validation-only Harbor oracle seam. A scripted localhost model endpoint supplies one acknowledgement per trial, then the oracle solves the puzzle through public actions. Both pilots return `ok=true`, one captured model turn, and reward 1. The expected one-turn warning reflects this scripted test. It does not measure model capability, validate an installed coding harness, or test training-quality token IDs/log probabilities. + +## Episode behavior + +The agent runs `escape observe`, then uses: + +```bash +escape investigate NODE_ID +escape tool-call NODE_ID --arguments-json '{"parameter": "value"}' +escape use-item NODE_ID --arguments-json '{"parameter": "value"}' +escape submit-answer 'exact victory string' +escape state +``` + +Only exact successful submission earns **1**. An incorrect answer allows retry; revealing or computing the victory value without submitting earns **0**. There is no requirement to visit every node. Infrastructure failure does not become an ordinary zero reward. + +Each task permits **500 puzzle actions**, counting invalid actions. Observation/state reads are free. This is an explicit CLI scaffold variant: upstream limits model turns, and one model turn can contain several tool actions. The wall-clock agent limit is 1,200 seconds. Each Python tool execution has a 5-second wall-clock limit, 3-second CPU limit, 256 MiB address-space limit, and 64 KiB code/serialized-output limits. + +Original graph, tool, parameter-feedback, revelation, and exact-answer semantics are retained. The wrapper removes internal `_template_id` feedback. It adds terminal episode state and budget enforcement and removes the agent's ability to reset/load arbitrary files or access upstream administrative routes. + +Known upstream behavior is preserved: + +- Opening narratives live in metadata, but upstream's loader uses a top-level field, so the generic opening is shown. Node-specific narrative clues remain available. +- Terminals expose different output ports for partial versus complete input combinations. The victory value is the first stored reference output port, which need not be the first output returned by a particular call. +- Some stored golden inputs include trigger ports of type `Item`/`Hidden_Item` even though investigation omits those ports. The reference solver supplies those stored inputs. This port does not silently fix that interface inconsistency. + +The reference solver uses trusted scenario inputs to choose calls, traverses public puzzle actions, and submits the value returned by the victory port. It never directly sets success or submits a reference answer without obtaining that value through the service. It is a correctness oracle, not an agent baseline. + +## Isolation and grading + +Each trial has an agent container, a puzzle-service container containing only its scenario, and a Python execution worker. The agent image contains the CLI, not the source graph, references, oracle, or grader. Oracle files are uploaded by Harbor only for oracle trials. + +Python executes as an unprivileged child in the read-only worker container, with no scenario files or server module. A seccomp filter blocks sockets, process-memory inspection, and namespace/mount operations. The worker and puzzle service use an internal network unavailable to the agent. The worker receives only the code string, never reference values or credentials. + +The service stores outcomes and traces on its own filesystem. Harbor stops the agent, invokes an export inside the service, collects service-scoped artifacts, and grades them in a fresh verifier container. Agent-created files at the same apparent container paths are not accepted as service evidence. Missing evidence or an unavailable service fails verification instead of fabricating a score. + +Agent egress remains available for coding-harness/model compatibility. The original answers are publicly available upstream; this packaging prevents local answer-file exposure, but does not prevent an agent downloading public answers or using memorized data. Controlled evaluations should configure Harbor's agent-phase network allowlist for their model/proxy endpoint. No claim of contamination resistance is made. + +## Validation + +```bash +uv run pytest -q +uv run python tests/corpus_docker.py +uv run python tests/openenv_smoke.py +uv run harbor run -p pilot-tasks -a agentescape_port.testing:ForgeAgent --env docker -n 2 +``` + +See `reports/` for measured results and scope. Corpus validation covers all 270 scenarios and all 33 tool templates through the upstream-backed facade, with Python actions in Docker. It is not 270 independent Harbor container trials. Full Harbor and OpenEnv pilot trials separately test their lifecycle and verifier paths. The forgery agent must receive reward 0. + +Do not treat the original scenarios as independent training and test splits. This release retains the original evaluation corpus and difficulty groups. + +## Provenance and license status + +Original benchmark: Zhengkang Guo, Yiyang Li, Lin Qiu, Xiaohua Wang, Jingwen Xv, Dongyu Ru, Xiaoyu Li, Xiaoqing Zheng, Xuezhi Cao, and Xunliang Cai, *AgentEscapeBench: Evaluating Out-of-Domain Tool-Grounded Reasoning in LLM Agents* (2026). [Paper](https://arxiv.org/abs/2605.07926), [source](https://github.com/AGI-Eval-Official/Repo-of-AgentEscapeBench). + +`server.py`, `models.py`, and `simulator.py` are vendored unchanged at the pinned revision; hashes are recorded in `source-lock.json`. Scenarios are copied unchanged. The original README is preserved at `data/UPSTREAM_README.md`. + +The upstream README declares MIT but its referenced LICENSE file is absent from the pinned source archive. This private working release preserves that declaration and records the missing notice; it does not invent an upstream copyright/license notice. Clarify the missing notice and data redistribution terms before making the dataset public. New adapter files are offered under `LICENSE.port`; that file does not replace upstream licensing. + +This is an independent port, not an official upstream release or an original-model-score reproduction. diff --git a/data/UPSTREAM_README.md b/data/UPSTREAM_README.md new file mode 100644 index 0000000000000000000000000000000000000000..99b87eddf44d492e2aef9e7c9c231790fb214864 --- /dev/null +++ b/data/UPSTREAM_README.md @@ -0,0 +1,328 @@ +

+ Python + License + Scenarios + Models +

+ +

AgentEscapeBench

+ +

+ Evaluating Out-of-Domain Tool-Grounded Reasoning in LLM Agents +

+ +

+ A comprehensive benchmark for assessing LLM agents' ability to perform multi-step, compositional tool-use reasoning in novel environments — framed as procedurally-generated "escape room" challenges. +

+ +--- + +## Overview + +**AgentEscapeBench** evaluates whether LLM-based agents can discover, reason about, and correctly chain unfamiliar tools to solve complex dependency graphs — a critical capability for real-world deployment where agents encounter tools outside their training distribution. + +Unlike existing benchmarks that test agents on pre-memorized APIs, AgentEscapeBench presents agents with **procedurally generated** scenarios where: + +- Tools and items are **novel** — not seen during model training +- Dependencies form **directed acyclic graphs (DAGs)** of varying complexity +- Agents must **explore**, **reason about interfaces**, and **plan multi-step solutions** +- Narrative framing ensures scenarios are **semantically unfamiliar** to prevent shortcut heuristics + +

+ Framework Overview +

+ +## Key Features + +| Feature | Description | +|---------|-------------| +| **Procedural Generation** | Automated pipeline produces unlimited unique scenarios with controllable difficulty | +| **DAG-based Complexity** | Scenarios are structured as dependency graphs (5–25 nodes), requiring multi-hop reasoning | +| **40+ Tool Templates** | Cryptography, encoding, file operations, math, graph algorithms, and more | +| **8 Narrative Styles** | Cyberpunk, detective noir, sci-fi, fantasy, steampunk, post-apocalyptic, mystery, techno-thriller | +| **Fine-grained Metrics** | Beyond pass/fail — measures node discovery, dependency resolution, parameter accuracy, and tool-call efficiency | +| **15+ Model Support** | GPT-4o, GPT-5, Claude Opus 4, Gemini 3, DeepSeek, Qwen, Kimi K2, MiniMax, Doubao, and more | +| **Human Evaluation Client** | Web-based interface for human baseline comparison | +| **Bilingual Support** | Full English and Chinese prompt systems | + +## Architecture + +``` +┌─────────────────────────────────────────────────────────────────┐ +│ AgentEscapeBench Framework │ +├─────────────────────────────────────────────────────────────────┤ +│ │ +│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────┐ │ +│ │ Scenario │ │ Evaluation │ │ Analysis & │ │ +│ │ Generation │───▶│ Server │───▶│ Metrics │ │ +│ └──────────────┘ └──────────────┘ └──────────────────┘ │ +│ │ ▲ │ +│ ▼ │ │ +│ ┌──────────────┐ ┌──────────────┐ │ +│ │ DAG Skeleton │ │ LLM Agent │ │ +│ │ + Narrative │ │ (under test)│ │ +│ └──────────────┘ └──────────────┘ │ +│ │ +└─────────────────────────────────────────────────────────────────┘ +``` + +The framework operates in three stages: + +1. **Scenario Generation** — Procedurally generates DAG-structured puzzles with tool/item nodes, edges representing data dependencies, and immersive narratives +2. **Interactive Evaluation** — A FastAPI server simulates the environment; agents interact via `investigate`, `tool_call`, `use_item`, and `submit_answer` actions +3. **Trajectory Analysis** — Post-hoc fine-grained metrics computed from agent interaction trajectories + +## Benchmark Statistics + +| Difficulty (Nodes) | Scenarios | Avg. Edges | Avg. Critical Path | +|:------------------:|:---------:|:----------:|:-----------------:| +| 5 | 60 | 4 | 3–4 | +| 10 | 60 | ~9 | 5–7 | +| 15 | 60 | ~14 | 7–10 | +| 20 | 60 | ~19 | 9–13 | +| 25 | 30 | ~24 | 11–16 | + +**Total: 270 unique scenarios** across 5 difficulty levels. + +## Quick Start + +### Prerequisites + +```bash +pip install fastapi uvicorn pydantic requests openai google-generativeai anthropic flask +``` + +### 1. Start the Evaluation Server + +```bash +python server.py +``` + +The server runs at `http://localhost:8000` by default. + +### 2. Run Evaluation on a Single Scenario + +```bash +python run_evaluation.py \ + --config config_batch/gpt-5.json \ + --case-file questions/10/narrative/skeleton_091c541b_narrative.json \ + --language en +``` + +### 3. Batch Evaluation + +```bash +python batch_evaluate.py \ + --config config_batch/gpt-5.json \ + --difficulties 5 10 15 \ + --parallel 4 +``` + +### 4. Multi-Model Evaluation + +```bash +chmod +x evaluate_all_models.sh +./evaluate_all_models.sh +``` + +## Configuration + +Model configurations are JSON files in `config_batch/`: + +```json +{ + "model": "gpt-5", + "agent_type": "chat_completions", + "api_key": "your-api-key", + "base_url": "", + "temperature": 0.7, + "max_tokens": 8192, + "max_history": 500, + "use_function_calling": true, + "server_url": "http://localhost:8000", + "max_steps": 50, + "output_dir": "results/gpt-5" +} +``` + +### Supported Agent Types + +| Agent Type | Models | Features | +|-----------|--------|----------| +| `chat_completions` | GPT-4o, GPT-5 | OpenAI Chat Completions + Function Calling | +| `responses` | GPT-5, GPT-4.1 | OpenAI Responses API | +| `deepseek_chat` | DeepSeek-Chat | Non-reasoning mode | +| `deepseek_reasoner` | DeepSeek-Reasoner | Chain-of-thought reasoning | +| `gemini` | Gemini 3 Flash/Pro | Google AI with thinking levels | +| `claude` | Claude Opus/Sonnet | Native tool use + extended thinking | +| `qwen` | Qwen3 series | DashScope compatible | +| `minimax` | MiniMax-M2 | Interleaved thinking | +| `doubao` | Doubao-Seed-2.0 | ByteDance with reasoning effort | + +## Scenario Generation + +Generate new scenarios with controllable difficulty: + +```bash +./generate_dag_v2.sh \ + --count 10 \ + --difficulty 15 \ + --droppable-ratio 0.3 \ + --config config/narrative_yuju_v2.json +``` + +The pipeline: +1. **DAG Skeleton** — Generates graph structure with typed nodes and edges +2. **Source Annotation** — Identifies source nodes and initial values +3. **Parameter Filling** — Fills concrete values respecting type constraints +4. **Validation** — Ensures solvability and structural correctness +5. **Narrative Wrapping** — LLM generates immersive story framing + +### Tool Categories + +| Category | Examples | +|----------|----------| +| Number Theory | `calc_bigmul`, `calc_modexp`, `calc_gcd`, `calc_inv_mod` | +| Hashing | `hash_sha256`, `hash_md5`, `hmac_sha256` | +| Encoding | `base64_encode/decode`, `hex_encode/decode`, `zlib_inflate/deflate` | +| Cryptography | `crypto_aes_cbc_decrypt`, `crypto_rsa_decrypt_hex` | +| File Operations | `zip_unzip`, `json_get`, `csv_query`, `regex_search` | +| Graph Algorithms | `graph_shortest_path` | +| Miscellaneous | `num_base_convert`, `time_convert`, `checksum_crc32`, `geo_haversine`, `luhn_check` | + +## Evaluation Metrics + +### Main Metrics + +| Metric | Description | +|--------|-------------| +| **Success Rate (SR)** | Fraction of instances where the agent produces the correct victory-node output and submits it successfully. An episode is scored as success if and only if the final answer matches the ground-truth value. | +| **Sub-problem Resolution Rate (Sub.)** | Average fraction of DAG nodes correctly resolved per instance. Provides a fine-grained view of partial progress beyond the binary success rate. | +| **Hidden-Node Discovery Rate (Disc.)** | Average fraction of initially hidden nodes that the agent successfully uncovers during an episode by triggering the incremental-disclosure (drop) mechanism. | + +### Fine-Grained Trajectory Analysis + +Beyond aggregate metrics, we perform systematic offline analysis of every evaluation trajectory along three complementary dimensions: + +#### Behavioural Pattern Analysis + +| Metric | Direction | Description | +|--------|:---------:|-------------| +| **Source-Node Convergence Speed** | Lower is better | Average number of tool-call attempts before a source node (leaf with no data-flow predecessors) is correctly resolved. Measures how effectively a model exploits structured per-parameter feedback. | +| **Premature Invocation Rate** | Lower is better | Fraction of non-source node invocations made before all data-flow predecessors have been resolved. Probes reasoning ability (correct execution order) and working memory (tracking solved vs. pending nodes). | +| **Clue Adherence Rate** | Higher is better | Fraction of downstream invocations whose argument values trace back to actual upstream outputs. Low adherence indicates the model substitutes guessed values rather than faithfully propagating intermediate results. | + +#### Tool-Calling Error Taxonomy + +Every failed tool invocation is classified into error categories via structured server feedback: +- **Missing Required Parameter** — Failure to enumerate the complete parameter set +- **Wrong Node Type** — Incorrect identification of which nodes are executable tools +- **Wrong Call Format** — Systematic format adherence failure for unfamiliar APIs +- **Repeated Solved Node** / **Node Not Visible** / **Node Not Exist** — Other structural errors + +#### Efficiency Analysis + +| Metric | Description | +|--------|-------------| +| **Average Tool Calls** | Mean number of tool calls consumed per instance. Fewer calls indicate more directed problem-solving with less redundancy. Compared against a theoretical lower bound (minimum required calls). | + +### Run Trajectory Analysis + +```bash +cd trajectory_analyze +python run_all_metrics.py --results-dir ../results/ --questions-dir ../questions/ +``` + +## Human Evaluation Client + +A web-based interface for collecting human performance baselines: + +```bash +# Start the evaluation server first +python server.py + +# Launch the human client +cd Human_Client +python app.py +``` + +Access at `http://localhost:8419`. Supports multi-player concurrent sessions with per-user progress tracking. + +## Project Structure + +``` +AgentEscapeBench/ +├── server.py # FastAPI evaluation server +├── simulator.py # Tool execution simulator (40+ tools) +├── evaluator.py # Evaluation orchestrator +├── run_evaluation.py # Single-scenario evaluation launcher +├── batch_evaluate.py # Multi-scenario parallel evaluation +├── evaluate_all_models.sh # Multi-model batch script +├── models.py # Data models (Node, Edge, GraphScenario) +├── agents/ # Model agent implementations +│ ├── base_agent.py # Abstract base class +│ ├── chat_completions_agent.py +│ ├── responses_agent.py +│ ├── deepseek_chat_agent.py +│ ├── deepseek_reasoner_agent.py +│ ├── gemini_agent.py +│ ├── claude_agent.py +│ ├── qwen_agent.py +│ ├── minimax_agent.py +│ ├── doubao_agent.py +│ └── factory.py # Agent factory +├── config_batch/ # Model configuration files +├── questions/ # Benchmark scenarios +│ ├── 5/narrative/ # 60 scenarios (5 nodes) +│ ├── 10/narrative/ # 60 scenarios (10 nodes) +│ ├── 15/narrative/ # 60 scenarios (15 nodes) +│ ├── 20/narrative/ # 60 scenarios (20 nodes) +│ └── 25/narrative/ # 30 scenarios (25 nodes) +├── dag_skeleton_generator.py # DAG structure generation +├── dag_parameter_filler.py # Parameter value filling +├── narrative_generator2.py # LLM-based narrative generation +├── validate_dag.py # DAG validation +├── generate_dag_v2.sh # End-to-end generation pipeline +├── assets.py # Tool/item template definitions +├── prompt_en.py # English prompt templates +├── language_config.py # Bilingual support +├── trajectory_analyze/ # Post-hoc analysis tools +│ ├── compute_fine_grained_metrics.py +│ ├── extract_node_discovery_rate.py +│ ├── stat_avg_tool_calls.py +│ └── run_all_metrics.py +├── Human_Client/ # Web UI for human evaluation +│ ├── app.py +│ └── index.html +└── complexity_statistic/ # Scenario complexity analysis +``` + +## Adding a New Model + +1. Create an agent class in `agents/` extending `BaseModelAgent` +2. Register it in `agents/factory.py` +3. Create a configuration JSON in `config_batch/` +4. Run evaluation: + +```bash +python batch_evaluate.py --config config_batch/your-model.json +``` + +## Citation + +```bibtex +@article{agentescapebench2026, + title={AgentEscapeBench: Evaluating Out-of-Domain Tool-Grounded Reasoning in LLM Agents}, + year={2026} +} +``` + +## License + +This project is released under the MIT License. See [LICENSE](LICENSE) for details. + +--- + +

+ AgentEscapeBench — Can your agent think its way out? +

diff --git a/data/questions/10/narrative/skeleton_091c541b_narrative.json b/data/questions/10/narrative/skeleton_091c541b_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..9a3eb5a76d4ad9f66b7daffc514eec43c20ba5f6 --- /dev/null +++ b/data/questions/10/narrative/skeleton_091c541b_narrative.json @@ -0,0 +1,522 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_3", + "win_condition": { + "type": "item_content", + "node_id": "item_3", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_3", + "text_xor_hex", + "zlib_deflate", + "container_1_fb10", + "terminal_1" + ], + "by_node": { + "item_3": { + "node_name": "", + "node_type": "Item", + "template_id": "item_3", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String", + "description": "The hex code" + } + } + }, + "text_xor_hex": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_b": { + "type": "Hex_String", + "description": "Hex B" + } + }, + "init_outputs": {} + }, + "zlib_deflate": { + "node_name": "Zlib Deflate", + "node_type": "Tool", + "template_id": "zlib_deflate", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to compress" + } + }, + "init_outputs": {} + }, + "container_1_fb10": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + } + } + }, + "initial_values": { + "item_3": { + "init_inputs": {}, + "init_outputs": { + "content": "4a7b9c2d5e8f1a3b0c6d9e2f5a8b1c4d" + } + }, + "text_xor_hex": { + "init_inputs": { + "hex_b": "1234567890abcdef1234567890abcdef" + }, + "init_outputs": {} + }, + "zlib_deflate": { + "init_inputs": { + "text": "Compress this payload to verify zlib functionality." + }, + "init_outputs": {} + }, + "container_1_fb10": { + "init_inputs": { + "fingerprint_input": "cafebabedeadbeef0011223344556677" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Authorization Code: Alpha-Seven-Two", + "slot_b": "98273645102938475610293847" + }, + "init_outputs": { + "text_output": "Terminal initialization complete. Systems active.", + "hex_output": "00aabbccddeeff112233445566778899" + } + } + }, + "intro_narrative": "You stand in the center of a dimly lit operations room, the air humming with the sound of cooling fans and old electronics. This was the workspace of 'The Architect,' a notorious data broker who vanished leaving behind a fortune in encrypted assets. The exit is sealed, and the only way out is to retrieve the Master Key hidden somewhere in this digital labyrinth. Around you are various terminals, secure containers, and strange processing devices. They seem dormant, waiting for the right sequence of interactions to wake up. You must trace the flow of data, manipulate the signals, and unlock the layers of security to find the prize.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "item_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String", + "description": "The hex code", + "value": "4a7b9c2d5e8f1a3b0c6d9e2f5a8b1c4d" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "4a7b9c2d5e8f1a3b0c6d9e2f5a8b1c4d" + } + }, + "narrative": "A small, unassuming black drive labeled 'Master Key'. It is protected by layers of logical security." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An abstract data packet representing a fragmented memory block." + }, + { + "id": "item_8_1d75", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A corrupted system log file found within the system architecture." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A digital display showing the current system timezone, flickering slightly." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "6aa825b65f86e5a53f1a00505963e1b92848acccc94f4c5128c957284b2dca4cab54a8cac94c52482bcd4b2ec9cccf4bccc92ca9d40300fa87138f" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A heavy, reinforced titanium container known as the Bio-Vault. It requires input from the Signal Mixer to override its biometric lock." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "789c73cecf2d284a2d2e5628c9c82c562848acccc94f4c5128c957284b2dca4cab54a8cac94c52482bcd4b2ec9cccf4bccc92ca9d40300fa87138f" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "1234567890abcdef1234567890abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "6aa825b65f86e5a53f1a00505963e1b92848acccc94f4c5128c957284b2dca4cab54a8cac94c52482bcd4b2ec9cccf4bccc92ca9d40300fa87138f" + } + ], + "init": { + "inputs": { + "hex_b": "1234567890abcdef1234567890abcdef" + }, + "outputs": {} + }, + "narrative": "A dual-input processing console labeled 'Signal Mixer'. It requires input from the Data Compressor to correctly modulate the signal." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "Compress this payload to verify zlib functionality." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c73cecf2d284a2d2e5628c9c82c562848acccc94f4c5128c957284b2dca4cab54a8cac94c52482bcd4b2ec9cccf4bccc92ca9d40300fa87138f" + } + ], + "init": { + "inputs": { + "text": "Compress this payload to verify zlib functionality." + }, + "outputs": {} + }, + "narrative": "A specialized hardware component labeled 'Data Compressor', designed to shrink large text streams into raw code." + }, + { + "id": "container_1_fb10", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "cafebabedeadbeef0011223344556677" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "cafebabedeadbeef0011223344556677" + }, + "outputs": {} + }, + "narrative": "A standard supply cache locked with a basic electronic latch." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Authorization Code: Alpha-Seven-Two" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "98273645102938475610293847" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialization complete. Systems active." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "00aabbccddeeff112233445566778899" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Authorization Code: Alpha-Seven-Two", + "slot_b": "98273645102938475610293847" + }, + "outputs": { + "text_output": "Terminal initialization complete. Systems active.", + "hex_output": "00aabbccddeeff112233445566778899" + } + }, + "narrative": "The Mainframe Terminal, glowing with a waiting command prompt. It controls the power distribution for the room." + }, + { + "id": "item_8_fcf6", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A hidden system trigger located behind a loose panel." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_1d75", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_1d75", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "text_xor_hex", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "zlib_deflate", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_a" + }, + { + "source_id": "container_1_fb10", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "container_1_fb10", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "item_8_fcf6", + "target_id": "terminal_1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_0ac6e14b_narrative.json b/data/questions/10/narrative/skeleton_0ac6e14b_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..6f6df80e07d09ecb5315339feaecb6945376153d --- /dev/null +++ b/data/questions/10/narrative/skeleton_0ac6e14b_narrative.json @@ -0,0 +1,670 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 13, + "win_node_id": "calc_modexp", + "win_condition": { + "type": "tool_output", + "node_id": "calc_modexp", + "output_port": "value", + "output_type": "Big_Int", + "description": "Execute BigInt Modular Exponentiation and get the output from port 'value'" + }, + "source_init": { + "source_nodes": [ + "num_base_convert", + "graph_shortest_path", + "zip_unzip_file", + "num_base_convert_83f4", + "checksum_crc32", + "text_bidi_sanitize" + ], + "by_node": { + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "num_base_convert_83f4": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "text_bidi_sanitize": { + "node_name": "Bidi Sanitizer", + "node_type": "Tool", + "template_id": "text_bidi_sanitize", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "num_base_convert": { + "init_inputs": { + "s": "827364519283746510293847561029" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Alpha_Node", + "dst": "Omega_Node" + }, + "init_outputs": { + "path": "['Alpha_Node', 'Router_X', 'Gateway_7', 'Switch_9', 'Omega_Node']", + "cost": "48291" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_archive_v2.zip" + }, + "init_outputs": { + "files": "topology_graph.json" + } + }, + "num_base_convert_83f4": { + "init_inputs": { + "s": "91827364501928374651928374", + "from_base": "10", + "to_base": "10" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "4a2b3c4d5e6f708192a3b4c5d6e7f809" + }, + "init_outputs": {} + }, + "text_bidi_sanitize": { + "init_inputs": { + "text": "ComplexPassphrase_123!" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The neon-drenched streets of Sector 7 offer no sanctuary tonight. You are a rogue netrunner, trapped inside an abandoned server farm after a corporate heist went horribly wrong. The megacorp's enforcers are closing in, and your only way out is to initiate a complete system blackout by hacking the central hub. To achieve this, you must navigate a maze of forgotten hardware, jury-rigged tech, and encrypted data streams. Find the right terminals, link their outputs, and overload the system before the kill-squad breaches the reinforced doors.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "48331203657939" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "827364519283746510293847561029" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1" + } + ], + "narrative": "The Mainframe Override Core, your final goal. It requires inputs from the Neural Sync Amplifier, the Harmonic Resonance Tuner, and the Signal Translator Beta to crack the system." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "48291" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 1000832529 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "48331203657939" + } + ], + "narrative": "A Neural Sync Amplifier designed to boost processing power. It requires inputs from both the City Grid Navigator and the Integrity Scanner." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "91827364501928374651928374" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "48291" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "A Harmonic Resonance Tuner used to stabilize frequencies. It requires inputs from both the City Grid Navigator and the Signal Translator Alpha." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "827364519283746510293847561029" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "22096807214944" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "48331203657939" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "827364519283746510293847561029" + } + ], + "init": { + "inputs": { + "s": "827364519283746510293847561029" + }, + "outputs": {} + }, + "narrative": "A secondary Signal Translator Beta. It requires inputs from both the Neural Sync Amplifier and the Quantum Inverter to function." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "topology_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Alpha_Node" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Omega_Node" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "['Alpha_Node', 'Router_X', 'Gateway_7', 'Switch_9', 'Omega_Node']" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "48291" + } + ], + "init": { + "inputs": { + "src": "Alpha_Node", + "dst": "Omega_Node" + }, + "outputs": { + "path": "['Alpha_Node', 'Router_X', 'Gateway_7', 'Switch_9', 'Omega_Node']", + "cost": "48291" + } + }, + "narrative": "A City Grid Navigator plotting safe routes. It requires input from the Encrypted Archive Extractor to map the network." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_archive_v2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "ComplexPassphrase_123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "topology_graph.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_archive_v2.zip" + }, + "outputs": { + "files": "topology_graph.json" + } + }, + "narrative": "An Encrypted Archive Extractor. It requires input from the Corrupted Data Purger to bypass the corporate locks." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "91827364501928374651928374" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "48331203657939" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "22096807214944" + } + ], + "narrative": "A volatile Quantum Inverter matrix. It requires inputs from both the Neural Sync Amplifier and the Signal Translator Alpha to operate safely." + }, + { + "id": "num_base_convert_83f4", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "91827364501928374651928374" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "91827364501928374651928374" + } + ], + "init": { + "inputs": { + "s": "91827364501928374651928374", + "from_base": "10", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "A Signal Translator Alpha unit, heavily modified with illegal scrap tech. It intercepts underground radio frequencies." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "4a2b3c4d5e6f708192a3b4c5d6e7f809" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "3ba77e11" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1000832529 + } + ], + "init": { + "inputs": { + "hex": "4a2b3c4d5e6f708192a3b4c5d6e7f809" + }, + "outputs": {} + }, + "narrative": "An Integrity Scanner pulsing with a faint blue light. It verifies the authenticity of stolen corporate data drives." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "ComplexPassphrase_123!" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "ComplexPassphrase_123!" + } + ], + "init": { + "inputs": { + "text": "ComplexPassphrase_123!" + }, + "outputs": {} + }, + "narrative": "A Corrupted Data Purger module built into the side of a rusted terminal. It strips malicious code from raw feeds." + } + ], + "edges": [ + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "exp" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "to_base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "from_base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "num_base_convert_83f4", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "num_base_convert_83f4", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_0cd591ed_narrative.json b/data/questions/10/narrative/skeleton_0cd591ed_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..76835080b71e326ff55c7d542abe4c6d52336420 --- /dev/null +++ b/data/questions/10/narrative/skeleton_0cd591ed_narrative.json @@ -0,0 +1,423 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "text_bidi_sanitize", + "win_condition": { + "type": "tool_output", + "node_id": "text_bidi_sanitize", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute Bidi Sanitizer and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "item_7", + "calc_modexp" + ], + "by_node": { + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "print(9374105826)" + } + }, + "calc_modexp": { + "init_inputs": { + "base": "29", + "exp": "5820194827364510293847563", + "mod": "492817" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You stand in the center of a sealed cyber-forensics lab, the air humming with the sound of server cooling fans. The previous occupant, a rogue data broker known as 'The Architect', left in a hurry, but not before locking down his digital assets. Your mission is to breach the security layers and recover the hidden message he attempted to scrub from the system. Around you are various specialized tools and scattered evidence. Time is short; the system's auto-purge sequence has already been initiated.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "9374105826\n" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "9374105826\n" + } + ], + "narrative": "A Text Sanitizer utility on the main screen. It requires the raw output from the **Forensic Terminal** to filter out hidden control characters and reveal the true message." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print(9374105826)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "9374105826\n" + } + ], + "narrative": "A Forensic Terminal running a secure Python environment. It requires the **Python Script** to execute the decryption routine." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "print(9374105826)" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "print(9374105826)" + } + }, + "narrative": "A complete Python Script compiled from the scattered fragments." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A torn Code Fragment D with the final execution block." + }, + { + "id": "item_8_37eb", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A torn Code Fragment C with logic loops." + }, + { + "id": "item_8_5b2f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A torn Code Fragment B with variable definitions." + }, + { + "id": "item_8_4340", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A torn Code Fragment A with partial syntax." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Timezone Document listing server locations and their offsets." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "460619" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A heavy Biometric Safe with a digital interface. It requires the calculation result from the **Cryptographic Calculator** to authenticate the unlock sequence." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "29" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "5820194827364510293847563" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "492817" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "460619" + } + ], + "init": { + "inputs": { + "base": "29", + "exp": "5820194827364510293847563", + "mod": "492817" + }, + "outputs": {} + }, + "narrative": "A handheld Cryptographic Calculator designed for performing modular exponentiation on large integers." + } + ], + "edges": [ + { + "source_id": "code_py_exec", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "text" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "item_8", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_37eb", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_5b2f", + "target_id": "item_8_37eb", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_4340", + "target_id": "item_8_5b2f", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_4340", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_3", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "fingerprint_input" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_15cd0fc1_narrative.json b/data/questions/10/narrative/skeleton_15cd0fc1_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..a74264fac461e1401a575ff426599a8908cc5562 --- /dev/null +++ b/data/questions/10/narrative/skeleton_15cd0fc1_narrative.json @@ -0,0 +1,578 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 13, + "win_node_id": "item_4", + "win_condition": { + "type": "item_content", + "node_id": "item_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_4", + "terminal_2", + "checksum_crc32_b89e", + "graph_shortest_path" + ], + "by_node": { + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "checksum_crc32_b89e": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "secure_logs_backup_2023.zip" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Initialization sequence completed without errors.", + "hex_result": "1a2b3c4d5e6f708192a3b4c5d6e7f809" + } + }, + "checksum_crc32_b89e": { + "init_inputs": { + "hex": "deadbeef1234567890abcdef12345678" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_topology_map_v4.json", + "src": "Server_Cluster_Alpha", + "dst": "Gateway_Node_Omega" + }, + "init_outputs": { + "path": "[\"Server_Cluster_Alpha\", \"Switch_Core_01\", \"Router_Edge_99\", \"Gateway_Node_Omega\"]", + "cost": "482915" + } + } + }, + "intro_narrative": "You are a private investigator hired to look into a high-profile disappearance. You've managed to break into the suspect's abandoned hideout, a dusty room filled with strange investigative equipment and locked containers. The air is heavy with suspense, and you can hear distant sirens echoing through the city streets. The police are on their way, giving you only a short window of time to piece together the scattered evidence left behind. Your ultimate goal is to obtain the final piece of evidence hidden somewhere in this room. To do so, you must carefully analyze everything you find. You will need to trace routes on digital maps, extract data from damaged devices, and feed your findings through a complex network of forensic tools. Each piece of equipment relies on data processed by another, forming a web of clues that you must unravel. Stay sharp, follow the trail of data, and uncover the truth before time runs out.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "secure_logs_backup_2023.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "secure_logs_backup_2023.zip" + } + }, + "narrative": "The Locked Briefcase. A sturdy, reinforced case wrapped in heavy chains." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Hidden Compartment. A concealed drawer under the floorboards." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "0" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "0" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Initialization sequence completed without errors." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f708192a3b4c5d6e7f809" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Initialization sequence completed without errors.", + "hex_result": "1a2b3c4d5e6f708192a3b4c5d6e7f809" + } + }, + "narrative": "This is The Police Database. It requires inputs from both The Timeline Analyzer and The Alibi Verifier to grant access to restricted files." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": 1301216175 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "0" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "0" + } + ], + "narrative": "This is The Timeline Analyzer. It requires inputs from both The Suspect Profiler and The Forensics Kit to establish the sequence of events." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "0" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "482915" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "0" + } + ], + "narrative": "This is The Suspect Profiler. It requires inputs from both The Alibi Verifier and The City Map to determine the suspect's movements." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "89749357" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "4d8efbaf" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1301216175 + } + ], + "narrative": "This is The Forensics Kit. It requires input from The Victim's Phone to process the initial data." + }, + { + "id": "calc_inv_mod_a048", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 1301216175 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "0" + } + ], + "narrative": "This is The Alibi Verifier. It requires inputs from both The Forensics Kit and The Evidence Correlator to cross-reference suspect statements." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 1301216175 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": 2306118487 + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is The Evidence Correlator. It requires inputs from both The Victim's Phone and The Forensics Kit to identify hidden patterns." + }, + { + "id": "checksum_crc32_b89e", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeef1234567890abcdef12345678" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "89749357" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2306118487 + } + ], + "init": { + "inputs": { + "hex": "deadbeef1234567890abcdef12345678" + }, + "outputs": {} + }, + "narrative": "The Victim's Phone. A badly damaged smartphone found at the crime scene." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_map_v4.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Server_Cluster_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Gateway_Node_Omega" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Server_Cluster_Alpha\", \"Switch_Core_01\", \"Router_Edge_99\", \"Gateway_Node_Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "482915" + } + ], + "init": { + "inputs": { + "file_id": "network_topology_map_v4.json", + "src": "Server_Cluster_Alpha", + "dst": "Gateway_Node_Omega" + }, + "outputs": { + "path": "[\"Server_Cluster_Alpha\", \"Switch_Core_01\", \"Router_Edge_99\", \"Gateway_Node_Omega\"]", + "cost": "482915" + } + }, + "narrative": "The City Map. A digital map detailing various routes across the district." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "item_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num1" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod_a048", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num2" + }, + { + "source_id": "calc_inv_mod_a048", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_inv_mod_a048", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod_a048", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32_b89e", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32_b89e", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_17c70732_narrative.json b/data/questions/10/narrative/skeleton_17c70732_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..1eece44ba4b2b5ab78e640f9c76faeaff63566c7 --- /dev/null +++ b/data/questions/10/narrative/skeleton_17c70732_narrative.json @@ -0,0 +1,657 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 12, + "win_node_id": "base64_encode", + "win_condition": { + "type": "tool_output", + "node_id": "base64_encode", + "output_port": "b64", + "output_type": "Text_Generic", + "description": "Execute Base64 Encoder and get the output from port 'b64'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "text_xor_hex_73cb", + "calc_gcd", + "unicode_norm", + "num_base_convert", + "calc_gcd_2b18", + "calc_gcd_3769" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "text_xor_hex_73cb": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_a": { + "type": "Hex_String", + "description": "Hex A" + }, + "hex_b": { + "type": "Hex_String", + "description": "Hex B" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "form": { + "type": "Text_Generic", + "description": "Form" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "calc_gcd_2b18": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "calc_gcd_3769": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Initialization successful: System ready for input.", + "hex_result": "deadbeef1234567890abcdef" + } + }, + "text_xor_hex_73cb": { + "init_inputs": { + "hex_a": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "hex_b": "09f8e7d6c5b4a39281706f5e4d3c2b1a" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "b": "837465291038475629384756102938" + }, + "init_outputs": {} + }, + "unicode_norm": { + "init_inputs": { + "form": "NFC" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "from_base": "10", + "to_base": "10" + }, + "init_outputs": {} + }, + "calc_gcd_2b18": { + "init_inputs": { + "b": "109283746510928374651092837465" + }, + "init_outputs": {} + }, + "calc_gcd_3769": { + "init_inputs": { + "a": "564738291019283746510293847561", + "b": "918273645019283746519283746510" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The year is 2084. The world was scorched by nuclear fire decades ago. As a scavenger navigating the toxic wasteland, you've discovered the legendary 'Echo Bunker'—a pre-war communications hub rumored to still have satellite uplink capabilities. However, its systems are completely locked down and fragmented. Your radiation suit is failing, and a deadly rad-storm is approaching. You must scavenge the facility, chain together the surviving operational modules, and reboot the system to transmit an SOS to the surviving orbital station before the storm consumes you entirely.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "7ea745341d584fa6fe1effeb24ec6dafde9e3a71a3801dcad26854f9b03a9c4b" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "fqdFNB1YT6b+Hv/rJOxtr96eOnGjgB3K0mhU+bA6nEs=" + } + ], + "narrative": "The broadcast transmitter. It requires input from the security authenticator to format and send the ultimate SOS signal to orbit." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "76e79aed3276f2f238e1e9ed2042a48a" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Initialization successful: System ready for input." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "7ea745341d584fa6fe1effeb24ec6dafde9e3a71a3801dcad26854f9b03a9c4b" + } + ], + "narrative": "A military-grade security authenticator. It requires inputs from both the decryption relay and the text reconstructor to generate a valid access token." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "a84a24022042a48aa84a24022042a48a" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "deadbeef1234567890abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "76e79aed3276f2f238e1e9ed2042a48a" + } + ], + "narrative": "A bulky decryption relay station. It requires inputs from both the main bunker terminal and the rusted datapad to bypass the local encryption." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Initialization successful: System ready for input." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeef1234567890abcdef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Initialization successful: System ready for input.", + "hex_result": "deadbeef1234567890abcdef" + } + }, + "narrative": "The main bunker terminal. It requires inputs from both the signal calibrator and the Geiger counter module to initiate its boot sequence." + }, + { + "id": "text_xor_hex_73cb", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "09f8e7d6c5b4a39281706f5e4d3c2b1a" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "a84a24022042a48aa84a24022042a48a" + } + ], + "init": { + "inputs": { + "hex_a": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "hex_b": "09f8e7d6c5b4a39281706f5e4d3c2b1a" + }, + "outputs": {} + }, + "narrative": "A rusted datapad salvaged from a fallen scavenger. It seems to hold some ancient encrypted logs." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "1" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "837465291038475629384756102938" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "837465291038475629384756102938" + }, + "outputs": {} + }, + "narrative": "A jury-rigged signal calibrator. It requires input from the frequency tuner to stabilize the analog wave patterns." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Initialization successful: System ready for input." + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "Initialization successful: System ready for input." + } + ], + "init": { + "inputs": { + "form": "NFC" + }, + "outputs": {} + }, + "narrative": "An automated text reconstructor. It requires input from the main bunker terminal to clean up and restore the corrupted data logs." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1" + } + ], + "init": { + "inputs": { + "from_base": "10", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "A rusted frequency tuner used for surviving radio communications. It requires input from the Geiger counter module to adjust its bands." + }, + { + "id": "calc_gcd_2b18", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "1" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "109283746510928374651092837465" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "109283746510928374651092837465" + }, + "outputs": {} + }, + "narrative": "A Geiger counter module embedded in the wall. It requires input from the radiation dosimeter to process the ambient hazard readings." + }, + { + "id": "calc_gcd_3769", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "564738291019283746510293847561" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "918273645019283746519283746510" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "564738291019283746510293847561", + "b": "918273645019283746519283746510" + }, + "outputs": {} + }, + "narrative": "A battered radiation dosimeter found near the bunker entrance, still faintly glowing." + } + ], + "edges": [ + { + "source_id": "hmac_sha256", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "text_xor_hex", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "terminal_2", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex_b" + }, + { + "source_id": "text_xor_hex_73cb", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_a" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "unicode_norm", + "target_id": "hmac_sha256", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "calc_gcd_2b18", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num1" + }, + { + "source_id": "terminal_2", + "target_id": "unicode_norm", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_2", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "calc_gcd_2b18", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "s" + }, + { + "source_id": "calc_gcd_3769", + "target_id": "calc_gcd_2b18", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_1bb353bc_narrative.json b/data/questions/10/narrative/skeleton_1bb353bc_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..4145730bb9d6bd4f2b2967e9790ceb19454085cc --- /dev/null +++ b/data/questions/10/narrative/skeleton_1bb353bc_narrative.json @@ -0,0 +1,507 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_5", + "win_condition": { + "type": "item_content", + "node_id": "item_5", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_5", + "hmac_sha256", + "terminal_1", + "checksum_crc32" + ], + "by_node": { + "item_5": { + "node_name": "", + "node_type": "Item", + "template_id": "item_5", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_5": { + "init_inputs": {}, + "init_outputs": { + "content": "a1b2c3d4e5f60718293a4b5c6d7e8f90123456789abcdef0123456789abcdef0" + } + }, + "hmac_sha256": { + "init_inputs": { + "text": "Initiating secure handshake protocol sequence 42." + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Primary data stream active. Waiting for input.", + "slot_b": "83749201837465920183746582" + }, + "init_outputs": { + "text_output": "System diagnostic complete. All modules green.", + "hex_output": "ca11ab1e11e5100dca11ab1e11e5100d", + "item_dispenser": "A strange mechanical part that seems to do nothing." + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeefcafebabe0123456789abcdef" + }, + "init_outputs": {} + } + }, + "intro_narrative": "Welcome to the abandoned workshop of Phineas Cogwright, a master inventor of the Victorian steam era. You have been accidentally locked inside his mechanical laboratory, where the main boiler is rapidly reaching critical pressure. The air is thick with steam, the smell of grease, and the relentless ticking of unseen machinery. To escape this brass-plated prison, you must decipher the inventor's complex apparatuses and retrieve the ultimate power source—The Clockwork Core—before the entire facility violently explodes.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "item_5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90123456789abcdef0123456789abcdef0" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "a1b2c3d4e5f60718293a4b5c6d7e8f90123456789abcdef0123456789abcdef0" + } + }, + "narrative": "The Clockwork Core. A heavy, ticking sphere of polished brass that hums with immense, constrained energy." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Brass Gear. A precision-cut cogwheel with strange etchings along its outer teeth." + }, + { + "id": "item_8_d7ef", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Copper Cylinder. A hollow copper tube covered in soot and faint mechanical engravings." + }, + { + "id": "item_8_03ab", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Iron Spring. A tightly coiled spring vibrating with potential kinetic energy." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Chronometer. An intricate silver pocket watch that seems to tick backwards." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "63b653735e8282dc26da3f58be421698652053d6c12c055f5971db28daa7c76e" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Steam Vault. A reinforced steel safe with a heavily oxidized biometric lock. It requires input from The Aether Analyzer to authenticate." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "f7a629d011e5100dca11ab1e11e5100d" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Initiating secure handshake protocol sequence 42." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "63b653735e8282dc26da3f58be421698652053d6c12c055f5971db28daa7c76e" + } + ], + "init": { + "inputs": { + "text": "Initiating secure handshake protocol sequence 42." + }, + "outputs": {} + }, + "narrative": "The Aether Analyzer. A sophisticated engine that measures ethereal frequencies. It requires input from The Gear Combiner." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "3db782ce" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "ca11ab1e11e5100dca11ab1e11e5100d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "f7a629d011e5100dca11ab1e11e5100d" + } + ], + "narrative": "The Gear Combiner. A clanking mechanical forge. It requires inputs from both The Main Boiler Console and The Pressure Calibrator." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Primary data stream active. Waiting for input." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "83749201837465920183746582" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System diagnostic complete. All modules green." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "ca11ab1e11e5100dca11ab1e11e5100d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A strange mechanical part that seems to do nothing." + } + ], + "init": { + "inputs": { + "slot_a": "Primary data stream active. Waiting for input.", + "slot_b": "83749201837465920183746582" + }, + "outputs": { + "text_output": "System diagnostic complete. All modules green.", + "hex_output": "ca11ab1e11e5100dca11ab1e11e5100d", + "item_dispenser": "A strange mechanical part that seems to do nothing." + } + }, + "narrative": "The Main Boiler Console. A massive control panel with brass levers, dials, and hissing pressure valves." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeefcafebabe0123456789abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "3db782ce" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1035436750 + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafebabe0123456789abcdef" + }, + "outputs": {} + }, + "narrative": "The Pressure Calibrator. A heavy testing gauge designed to verify the integrity of the underground steam pipes." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_d7ef", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_03ab", + "target_id": "item_8_d7ef", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_03ab", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "hmac_sha256", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "text_xor_hex", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "terminal_1", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex_b" + }, + { + "source_id": "checksum_crc32", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_a" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_232580c5_narrative.json b/data/questions/10/narrative/skeleton_232580c5_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..58cc2036dbba254f2ecfdac375e9aa8a7f200ad7 --- /dev/null +++ b/data/questions/10/narrative/skeleton_232580c5_narrative.json @@ -0,0 +1,591 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "luhn_check", + "win_condition": { + "type": "tool_output", + "node_id": "luhn_check", + "output_port": "valid", + "output_type": "Text_Generic", + "description": "Execute Luhn Checker and get the output from port 'valid'" + }, + "source_init": { + "source_nodes": [ + "regex_search", + "zip_unzip_item", + "csv_query", + "unicode_norm_368d", + "item_7", + "hex_decode" + ], + "by_node": { + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "File ID (optional)" + }, + "text": { + "type": "Text_Generic", + "description": "Text (optional)" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "unicode_norm_368d": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "hex_decode": { + "node_name": "Hex to Text Decoder", + "node_type": "Tool", + "template_id": "hex_decode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "regex_search": { + "init_inputs": { + "file_id": "discovery_report_992.txt", + "text": "The pattern identified in the dataset is [\"9283746510293847\", \"5566778844332211\", \"1029384756102938\"] and matches will be listed below." + }, + "init_outputs": { + "matches": "[\"49927398716\", \"5105105105105105\", \"378282246310005\", \"1234567812345670\"]" + } + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "archive_vault_delta_01.zip", + "password": "SecurePassword#2024!Unzip" + }, + "init_outputs": {} + }, + "csv_query": { + "init_inputs": { + "file_id": "inventory_audit_master.csv" + }, + "init_outputs": { + "rows": "[\"9283746510293847\", \"5566778844332211\", \"1029384756102938\"]" + } + }, + "unicode_norm_368d": { + "init_inputs": { + "text": "NFKC" + }, + "init_outputs": {} + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "import sys\nprint(\"account_balance > 15000 AND status = 'verified'\")" + } + }, + "hex_decode": { + "init_inputs": { + "hex": "4e4643" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the clockwork workshop of the eccentric inventor, Lord Blackwood. The air is thick with the scent of oil and ozone, and the rhythmic ticking of gears echoes off the soot-stained walls. The heavy iron door has been sealed shut. To escape, you must decipher the inventor's final masterpiece. Scattered around the room are strange brass contraptions and steam-powered devices. You must piece together the correct sequence of mechanical operations to prove your worth and unlock the final gateway before the workshop's boiler reaches critical pressure.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "[\"49927398716\", \"5105105105105105\", \"378282246310005\", \"1234567812345670\"]" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "[\"49927398716\", \"5105105105105105\", \"378282246310005\", \"1234567812345670\"]" + } + ], + "narrative": "The Final Validator. A massive brass gateway. It requires input from the aether harmonizer to verify the sequence and open the exit." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "[\"49927398716\", \"5105105105105105\", \"378282246310005\", \"1234567812345670\"]" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFKC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "[\"49927398716\", \"5105105105105105\", \"378282246310005\", \"1234567812345670\"]" + } + ], + "narrative": "The Aether Harmonizer. It requires inputs from both the monocle scanner and the steam-powered aligner to balance the frequencies." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "[\"9283746510293847\", \"5566778844332211\", \"1029384756102938\"]" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "discovery_report_992.txt" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "The pattern identified in the dataset is [\"9283746510293847\", \"5566778844332211\", \"1029384756102938\"] and matches will be listed below." + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"49927398716\", \"5105105105105105\", \"378282246310005\", \"1234567812345670\"]" + } + ], + "init": { + "inputs": { + "file_id": "discovery_report_992.txt", + "text": "The pattern identified in the dataset is [\"9283746510293847\", \"5566778844332211\", \"1029384756102938\"] and matches will be listed below." + }, + "outputs": { + "matches": "[\"49927398716\", \"5105105105105105\", \"378282246310005\", \"1234567812345670\"]" + } + }, + "narrative": "The Monocle Scanner. It requires input from the archive engine to seek out specific patterns." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Chrono-Key. A delicate pocket watch mechanism emitting a faint hum." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_vault_delta_01.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword#2024!Unzip" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "archive_vault_delta_01.zip", + "password": "SecurePassword#2024!Unzip" + }, + "outputs": {} + }, + "narrative": "The Locked Lockbox. A heavy iron strongbox sealed with a complex combination lock." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "inventory_audit_master.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "NFKC" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "account_balance > 15000 AND status = 'verified'\n" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[\"9283746510293847\", \"5566778844332211\", \"1029384756102938\"]" + } + ], + "init": { + "inputs": { + "file_id": "inventory_audit_master.csv" + }, + "outputs": { + "rows": "[\"9283746510293847\", \"5566778844332211\", \"1029384756102938\"]" + } + }, + "narrative": "The Archive Engine. It requires inputs from both the gearwork automaton and the steam-powered aligner to search its vast records." + }, + { + "id": "unicode_norm_368d", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "NFKC" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "NFKC" + } + ], + "init": { + "inputs": { + "text": "NFKC" + }, + "outputs": {} + }, + "narrative": "The Steam-Powered Aligner. It requires input from the copper telegraph to function properly." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "import sys\nprint(\"account_balance > 15000 AND status = 'verified'\")" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "account_balance > 15000 AND status = 'verified'\n" + } + ], + "narrative": "The Gearwork Automaton. It requires input from the brass punch card to execute its routine." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "import sys\nprint(\"account_balance > 15000 AND status = 'verified'\")" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "import sys\nprint(\"account_balance > 15000 AND status = 'verified'\")" + } + }, + "narrative": "The Brass Punch Card. A strange brass card containing some mechanical instructions." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "4e4643" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "NFC" + } + ], + "init": { + "inputs": { + "hex": "4e4643" + }, + "outputs": {} + }, + "narrative": "The Copper Telegraph. A strange machine that receives encoded signals." + } + ], + "edges": [ + { + "source_id": "unicode_norm", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "number" + }, + { + "source_id": "regex_search", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "text" + }, + { + "source_id": "item_16", + "target_id": "unicode_norm", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "csv_query", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "pattern" + }, + { + "source_id": "unicode_norm_368d", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "form" + }, + { + "source_id": "code_py_exec", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "where" + }, + { + "source_id": "unicode_norm_368d", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "select" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "hex_decode", + "target_id": "unicode_norm_368d", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "form" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_277b1f3c_narrative.json b/data/questions/10/narrative/skeleton_277b1f3c_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..1a27f07ad882f1a3c8ab7980ec28fb55d94a536c --- /dev/null +++ b/data/questions/10/narrative/skeleton_277b1f3c_narrative.json @@ -0,0 +1,675 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "item_16", + "win_condition": { + "type": "item_content", + "node_id": "item_16", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_16", + "terminal_2", + "graph_shortest_path", + "graph_shortest_path_a01a", + "zip_unzip_file", + "base64_encode", + "container_4" + ], + "by_node": { + "item_16": { + "node_name": "", + "node_type": "Item", + "template_id": "item_16", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hidden_Item", + "description": "Timezone text" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "graph_shortest_path_a01a": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_16": { + "init_inputs": {}, + "init_outputs": { + "content": "THE_END_IS_THE_BEGINNING_AND_THE_BEGINNING_IS_THE_END" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal operation completed successfully.", + "hex_result": "0a1b2c3d4e5f60718293a4b5c6d7e8f9", + "math_token": "Math_Token_Identifier_X99" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "city_transport_map.json", + "dst": "Central_Station_Hub" + }, + "init_outputs": { + "path": "[\"Start_Node\", \"Junction_A\", \"Junction_B\", \"Central_Station_Hub\"]", + "cost": "83746510293847561029384756" + } + }, + "graph_shortest_path_a01a": { + "init_inputs": { + "src": "Remote_Outpost_Alpha" + }, + "init_outputs": { + "path": "[\"Remote_Outpost_Alpha\", \"Relay_Node_1\", \"Relay_Node_2\", \"Destination_Beta\"]", + "cost": "19283746509182736450192837" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "confidential_data_archive.zip", + "password": "SecureAccessKey_2024!" + }, + "init_outputs": { + "files": "extracted_payload_data.csv" + } + }, + "base64_encode": { + "init_inputs": { + "hex": "deadbeefcafebabe1234567890abcdef" + }, + "init_outputs": {} + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "Fingerprint_Hash_Identity_V1" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are an elite cyber-intelligence operative who has infiltrated a rogue defense contractor's hidden subterranean server room. The facility is set to purge all its criminal records in exactly one hour. Your objective is to uncover their illicit network and secure the final operation report before the automated wipe erases everything. The room hums with the sound of blinking server racks, scattered drives, and heavy biometric security. Time is ticking, and you must piece together the digital breadcrumbs to crack their impenetrable systems.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text", + "value": "THE_END_IS_THE_BEGINNING_AND_THE_BEGINNING_IS_THE_END" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "THE_END_IS_THE_BEGINNING_AND_THE_BEGINNING_IS_THE_END" + } + }, + "narrative": "The heavily redacted Final Report detailing the illegal operation. Securing it is your ultimate goal." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "0a1b2c3d4e5f60718293a4b5c6d7e8f9" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a high-tech Biometric Safe. It requires input from the Mainframe Terminal to successfully authenticate access." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "19283746509182736450192837" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a Secure Briefcase. It requires input from the Primary Network Tracker to bypass its complex digital lock." + }, + { + "id": "item_16_6b16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A classified Evidence Folder left carelessly on the supervisor's desk." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "83746510293847561029384756" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "19283746509182736450192837" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal operation completed successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "0a1b2c3d4e5f60718293a4b5c6d7e8f9" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Math_Token_Identifier_X99" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal operation completed successfully.", + "hex_result": "0a1b2c3d4e5f60718293a4b5c6d7e8f9", + "math_token": "Math_Token_Identifier_X99" + } + }, + "narrative": "This is the Mainframe Terminal. It requires inputs from both the Primary Network Tracker and the Secondary Network Tracker to calculate the override code." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "city_transport_map.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[\"Remote_Outpost_Alpha\", \"Relay_Node_1\", \"Relay_Node_2\", \"Destination_Beta\"]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Central_Station_Hub" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Start_Node\", \"Junction_A\", \"Junction_B\", \"Central_Station_Hub\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "83746510293847561029384756" + } + ], + "init": { + "inputs": { + "file_id": "city_transport_map.json", + "dst": "Central_Station_Hub" + }, + "outputs": { + "path": "[\"Start_Node\", \"Junction_A\", \"Junction_B\", \"Central_Station_Hub\"]", + "cost": "83746510293847561029384756" + } + }, + "narrative": "This is the Secondary Network Tracker. It requires input from the Primary Network Tracker to isolate the final routing node." + }, + { + "id": "graph_shortest_path_a01a", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_payload_data.csv" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Remote_Outpost_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "3q2+78r+ur4SNFZ4kKvN7w==" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Remote_Outpost_Alpha\", \"Relay_Node_1\", \"Relay_Node_2\", \"Destination_Beta\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "19283746509182736450192837" + } + ], + "init": { + "inputs": { + "src": "Remote_Outpost_Alpha" + }, + "outputs": { + "path": "[\"Remote_Outpost_Alpha\", \"Relay_Node_1\", \"Relay_Node_2\", \"Destination_Beta\"]", + "cost": "19283746509182736450192837" + } + }, + "narrative": "This is the Primary Network Tracker. It requires inputs from both the Data Decryptor and the Signal Translator to trace the target's digital footprint." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "confidential_data_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecureAccessKey_2024!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_payload_data.csv" + } + ], + "init": { + "inputs": { + "zip_id": "confidential_data_archive.zip", + "password": "SecureAccessKey_2024!" + }, + "outputs": { + "files": "extracted_payload_data.csv" + } + }, + "narrative": "A heavy-duty Data Decryptor used to extract secured compressed archives." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "deadbeefcafebabe1234567890abcdef" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "3q2+78r+ur4SNFZ4kKvN7w==" + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafebabe1234567890abcdef" + }, + "outputs": {} + }, + "narrative": "An old but reliable Signal Translator for converting raw byte streams." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Fingerprint_Hash_Identity_V1" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "Fingerprint_Hash_Identity_V1" + }, + "outputs": {} + }, + "narrative": "A standard issue Storage Locker located in the corner of the security room." + } + ], + "edges": [ + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "container_3", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16_6b16", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_2", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "graph_shortest_path_a01a", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "fingerprint_input" + }, + { + "source_id": "graph_shortest_path_a01a", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "src" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path_a01a", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "graph_shortest_path_a01a", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num2" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path_a01a", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "dst" + }, + { + "source_id": "container_4", + "target_id": "terminal_2", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_2a4fc5a2_narrative.json b/data/questions/10/narrative/skeleton_2a4fc5a2_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..d843be46c5ecdbde5b06ed0fae21431a25199204 --- /dev/null +++ b/data/questions/10/narrative/skeleton_2a4fc5a2_narrative.json @@ -0,0 +1,577 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "container_1", + "win_condition": { + "type": "item_content", + "node_id": "container_1", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_1", + "terminal_1", + "zlib_deflate", + "hmac_sha256", + "text_bidi_sanitize", + "hmac_sha256_5b00" + ], + "by_node": { + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "zlib_deflate": { + "node_name": "Zlib Deflate", + "node_type": "Tool", + "template_id": "zlib_deflate", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to compress" + } + }, + "init_outputs": {} + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "hex_key": { + "type": "Hex_String", + "description": "Hex key" + }, + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + }, + "text_bidi_sanitize": { + "node_name": "Bidi Sanitizer", + "node_type": "Tool", + "template_id": "text_bidi_sanitize", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "hmac_sha256_5b00": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "hex_key": { + "type": "Hex_String", + "description": "Hex key" + }, + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_1": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "flAg@da9udahnxiandjnanjinjxinbnuxbamlopqe" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System diagnostic: Primary command processor is currently online.", + "hex_output": "a4d8f2b1c0e39576482d1b9c5f8e0a3b" + } + }, + "zlib_deflate": { + "init_inputs": { + "text": "Compressing local telemetry logs for archival verification purposes." + }, + "init_outputs": {} + }, + "hmac_sha256": { + "init_inputs": { + "hex_key": "4c2d8a1b6e9f03d57c2a4b8e1f9d6c3a", + "text": "Authentication request for secure shell session ID 8842." + }, + "init_outputs": {} + }, + "text_bidi_sanitize": { + "init_inputs": { + "text": "Incoming data stream includes nested directional formatting controls." + }, + "init_outputs": {} + }, + "hmac_sha256_5b00": { + "init_inputs": { + "hex_key": "9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b", + "text": "Integrity checksum for the secondary filesystem mount point." + }, + "init_outputs": {} + } + }, + "intro_narrative": "You have breached the server room of Project Chimera, a clandestine black-ops data center. The air is freezing, kept supercooled for the racks of humming mainframes that surround you. Red emergency lights pulse rhythmically, casting long, shifting shadows. Your objective is locked inside the Primary Vault, a heavy bio-metric container in the center of the room. The facility's security protocols have been scrambled, leaving a trail of disconnected tools and locked containers. You must navigate the fragmented system, utilizing various encryption modules and terminals to bypass the safeguards. Time is running out before the automated security countermeasures purge the room of oxygen. You need to link the correct data streams to override the locks.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "789c0dc9d109c0300805c0559ca04b74129197543031a80d74fbe6f3b8dbc70a64eaec642e6c54300c547cc73da97910873cbacf6d8436152ef549eb8de589bc7e8a281a49" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "flAg@da9udahnxiandjnanjinjxinbnuxbamlopqe" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "flAg@da9udahnxiandjnanjinjxinbnuxbamlopqe" + } + }, + "narrative": "This is the Primary Vault, reinforced with titanium alloy. It requires a compressed data stream from the Data Compressor to verify the unlock sequence." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Incoming data stream includes nested directional formatting controls." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 3330164036 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System diagnostic: Primary command processor is currently online." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a4d8f2b1c0e39576482d1b9c5f8e0a3b" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System diagnostic: Primary command processor is currently online.", + "hex_output": "a4d8f2b1c0e39576482d1b9c5f8e0a3b" + } + }, + "narrative": "This is the Fabricator Console, used to manufacture physical keys. It requires synchronized inputs from both the Integrity Checker and the Command Parser to initiate the fabrication process." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "Compressing local telemetry logs for archival verification purposes." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c0dc9d109c0300805c0559ca04b74129197543031a80d74fbe6f3b8dbc70a64eaec642e6c54300c547cc73da97910873cbacf6d8436152ef549eb8de589bc7e8a281a49" + } + ], + "init": { + "inputs": { + "text": "Compressing local telemetry logs for archival verification purposes." + }, + "outputs": {} + }, + "narrative": "This is the Data Compressor. It condenses raw text strings into high-density packet streams." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "54f8576ad81d1e9bb5bf72918dd8a3720a65be608f28a27444049f8c234de5c1" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "c67e4544" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3330164036 + } + ], + "narrative": "This is the Integrity Checker. It requires the cryptographic signature from Authentication Module Beta to validate the system status." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "4c2d8a1b6e9f03d57c2a4b8e1f9d6c3a" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Authentication request for secure shell session ID 8842." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "54f8576ad81d1e9bb5bf72918dd8a3720a65be608f28a27444049f8c234de5c1" + } + ], + "init": { + "inputs": { + "hex_key": "4c2d8a1b6e9f03d57c2a4b8e1f9d6c3a", + "text": "Authentication request for secure shell session ID 8842." + }, + "outputs": {} + }, + "narrative": "This is Authentication Module Beta. It generates high-level security hashes." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "12c5c8c3cc403769f1abfd69777c4abe569177cb066ea1877c2ca6b8f4588887" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Secure Cache, a small lockbox bolted to the floor. It requires a specific hash code from Authentication Module Alpha to release its latch." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Incoming data stream includes nested directional formatting controls." + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "Incoming data stream includes nested directional formatting controls." + } + ], + "init": { + "inputs": { + "text": "Incoming data stream includes nested directional formatting controls." + }, + "outputs": {} + }, + "narrative": "This is the Command Parser. It strips dangerous formatting characters from text inputs." + }, + { + "id": "hmac_sha256_5b00", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Integrity checksum for the secondary filesystem mount point." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "12c5c8c3cc403769f1abfd69777c4abe569177cb066ea1877c2ca6b8f4588887" + } + ], + "init": { + "inputs": { + "hex_key": "9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b", + "text": "Integrity checksum for the secondary filesystem mount point." + }, + "outputs": {} + }, + "narrative": "This is Authentication Module Alpha. It processes keys to generate authorization codes." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An Administrator's ID Badge found on a desk." + }, + { + "id": "item_8_890e", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Maintenance Keycard dropped near the rack." + } + ], + "edges": [ + { + "source_id": "terminal_1", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "zlib_deflate", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "hmac_sha256", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "container_2", + "target_id": "hmac_sha256", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "slot_a" + }, + { + "source_id": "hmac_sha256_5b00", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_890e", + "target_id": "text_bidi_sanitize", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_2e8147dc_narrative.json b/data/questions/10/narrative/skeleton_2e8147dc_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..b09a8dff59b5090b37662781e697cdf0dffe0dc6 --- /dev/null +++ b/data/questions/10/narrative/skeleton_2e8147dc_narrative.json @@ -0,0 +1,617 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "terminal_1", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_1", + "output_port": "text_output", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_output'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "calc_gcd", + "code_py_exec", + "calc_modexp", + "calc_gcd_e63a", + "checksum_crc32", + "calc_inv_mod" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "code_py_exec": { + "node_name": "Python Executor", + "node_type": "Tool", + "template_id": "code_py_exec", + "init_inputs": { + "code": { + "type": "Code_Python", + "description": "Python code" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + } + }, + "init_outputs": {} + }, + "calc_gcd_e63a": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "LASCIATE_OGNE_SPERANZA_VOI_CHINTRATE", + "hex_output": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "item_dispenser": "TO_BE_OR_NOT_TO_BE_THAT_IS_THE_ANSWER" + } + }, + "calc_gcd": { + "init_inputs": { + "b": "918273645091827364501234" + }, + "init_outputs": {} + }, + "code_py_exec": { + "init_inputs": { + "code": "print('Execution started')" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "5" + }, + "init_outputs": {} + }, + "calc_gcd_e63a": { + "init_inputs": { + "b": "102938475610293847561029" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "09f911029d74e35bd84156c5635688c0" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "675849302182736450918273", + "mod": "104729" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You stand in the dimly lit office of Arthur Penhaligon, a private investigator who vanished without a trace exactly one week ago. The air is thick with the smell of stale tobacco and old paper. The door has firmly locked behind you, sealing you inside this paranoid man's sanctuary. Scattered across the mahogany desk and hidden in the shadows are various bizarre cryptographic devices, mechanical rings, and an ominous master terminal blinking in the center of the room. Penhaligon was on the verge of uncovering a massive conspiracy, and he hid his final conclusion behind layers of complex, interlocking puzzles. Your objective is clear: navigate his convoluted web of clues, decipher the hidden message, and unlock the master terminal to escape with the truth. The clock is ticking, and whoever took Arthur might be coming back.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Execution started\n" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "918273645091827364501234" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "LASCIATE_OGNE_SPERANZA_VOI_CHINTRATE" + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "TO_BE_OR_NOT_TO_BE_THAT_IS_THE_ANSWER" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "LASCIATE_OGNE_SPERANZA_VOI_CHINTRATE", + "hex_output": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "item_dispenser": "TO_BE_OR_NOT_TO_BE_THAT_IS_THE_ANSWER" + } + }, + "narrative": "This is the master terminal. It requires inputs from both the final cypher disk and the detective's old personal computer to activate." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "0" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "918273645091827364501234" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "918273645091827364501234" + } + ], + "init": { + "inputs": { + "b": "918273645091827364501234" + }, + "outputs": {} + }, + "narrative": "This is the final cypher disk. It requires input from the modified Enigma machine." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print('Execution started')" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Execution started\n" + } + ], + "init": { + "inputs": { + "code": "print('Execution started')" + }, + "outputs": {} + }, + "narrative": "The detective's old personal computer, seemingly ready to run some custom scripts." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A small hidden cassette tape wrapped in a torn evidence label." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "5" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "3" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "0" + } + ], + "init": { + "inputs": { + "base": "5" + }, + "outputs": {} + }, + "narrative": "A modified Enigma machine. It requires inputs from both the first decoder ring and the second decoder ring." + }, + { + "id": "item_8_88bb", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavy, locked filing cabinet holding sensitive case materials." + }, + { + "id": "calc_gcd_e63a", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "16878" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "102938475610293847561029" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3" + } + ], + "init": { + "inputs": { + "b": "102938475610293847561029" + }, + "outputs": {} + }, + "narrative": "This is the first decoder ring. It requires input from the cryptographic book to align." + }, + { + "id": "calc_gcd_0529", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 3790315201 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "3" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the second decoder ring. It requires inputs from both the first decoder ring and the evidence scanner." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "09f911029d74e35bd84156c5635688c0" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "e1eb9ec1" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3790315201 + } + ], + "init": { + "inputs": { + "hex": "09f911029d74e35bd84156c5635688c0" + }, + "outputs": {} + }, + "narrative": "A dusty evidence scanner used for digitizing files." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "675849302182736450918273" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "16878" + } + ], + "init": { + "inputs": { + "a": "675849302182736450918273", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "An old cryptographic book filled with handwritten notes." + } + ], + "edges": [ + { + "source_id": "calc_gcd", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "slot_b" + }, + { + "source_id": "code_py_exec", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "slot_a" + }, + { + "source_id": "item_8", + "target_id": "code_py_exec", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "item_8_88bb", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_gcd_e63a", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "exp" + }, + { + "source_id": "calc_gcd_0529", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "calc_gcd_e63a", + "target_id": "calc_gcd_0529", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd_0529", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_gcd_e63a", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_310eae83_narrative.json b/data/questions/10/narrative/skeleton_310eae83_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..50191ee805fc7a2d5c4d8e1f3fb653703b1e3c01 --- /dev/null +++ b/data/questions/10/narrative/skeleton_310eae83_narrative.json @@ -0,0 +1,596 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_14", + "win_condition": { + "type": "item_content", + "node_id": "item_14", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_14", + "hash_md5", + "terminal_2", + "matter_synthesizer", + "graph_shortest_path", + "checksum_crc32" + ], + "by_node": { + "item_14": { + "node_name": "", + "node_type": "Item", + "template_id": "item_14", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_IV_AES", + "description": "AES IV" + } + } + }, + "hash_md5": { + "node_name": "MD5 Hasher", + "node_type": "Tool", + "template_id": "hash_md5", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_14": { + "init_inputs": {}, + "init_outputs": { + "content": "8f2a4b6c8d0e1f3a5b7c9d1e3f5a7b9c" + } + }, + "hash_md5": { + "init_inputs": { + "text": "The quick brown fox jumps over the lazy dog." + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Calculation sub-routine executed successfully.", + "hex_result": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "math_token": "Authorization token for advanced calculus module." + } + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "Schematic_Quantum_Flux_Capacitor_v4" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "interstellar_trade_routes.json", + "src": "Sector_Alpha_Prime", + "dst": "Nebula_Gamma_Outpost" + }, + "init_outputs": { + "path": "[\"Sector_Alpha_Prime\", \"Jump_Gate_7\", \"Void_Station\", \"Asteroid_Belt_Route\", \"Nebula_Gamma_Outpost\"]", + "cost": "10928374655647382910" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "1234567890abcdef1234567890abcdef" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The neon lights of Outpost 74 flicker as a blaring siren cuts through the underground black-site laboratory. You are a covert operative tasked with infiltrating this rogue facility to retrieve highly sensitive intel, but your presence has triggered a complete facility lockdown. The heavy titanium blast doors are sealed tight, and a silent self-destruct protocol has been initiated in the shadows. Your only way out is to retrieve the core initialization vector from the facility's master server. To survive, you must navigate a web of disconnected computer systems, bypass heavy firewalls, and override experimental biometric locks before the timer reaches zero. The air is thick with the smell of ozone and burnt wiring. Every terminal, fabricator, and locked vault in this room is part of a complex security network left behind by the rogue scientists. You need to carefully analyze the scattered devices, deduce how their data flows connect to one another, and extract the vital codes you need to orchestrate your escape. Time is running out, and the automated defenses are slowly coming online.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "item_14", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_14", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_IV_AES", + "description": "AES IV", + "value": "8f2a4b6c8d0e1f3a5b7c9d1e3f5a7b9c" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "8f2a4b6c8d0e1f3a5b7c9d1e3f5a7b9c" + } + }, + "narrative": "A heavy, military-grade Encrypted Master Drive sitting on a metal desk." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "456bca167526fc048952b4f1b25c4440" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a Biometric Vault. It requires input from the Encryption Merging Unit to bypass its security." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool", + "value": "synthesized_item_e9af75fccc5d4288" + }, + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "e4d909c290d0fb1ca068ffaddf22cbd0" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "456bca167526fc048952b4f1b25c4440" + } + ], + "narrative": "This is an Encryption Merging Unit. It requires inputs from both the Data Scrambler and the Mainframe Console." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A scorched Titanium Lockbox abandoned heavily on the cracked laboratory floor." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "The quick brown fox jumps over the lazy dog." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "e4d909c290d0fb1ca068ffaddf22cbd0" + } + ], + "init": { + "inputs": { + "text": "The quick brown fox jumps over the lazy dog." + }, + "outputs": {} + }, + "narrative": "A wall-mounted terminal functioning as a Data Scrambler with a glowing green screen." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 1977564639 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "10928374655647382910" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation sub-routine executed successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Authorization token for advanced calculus module." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Calculation sub-routine executed successfully.", + "hex_result": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "math_token": "Authorization token for advanced calculus module." + } + }, + "narrative": "This is a Mainframe Console. It requires inputs from both the Routing Module and the Signal Verifier to activate." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Schematic_Quantum_Flux_Capacitor_v4" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_e9af75fccc5d4288" + } + ], + "init": { + "inputs": { + "blueprint": "Schematic_Quantum_Flux_Capacitor_v4" + }, + "outputs": {} + }, + "narrative": "An Industrial Fabricator that hums quietly in the dimly lit corner of the room." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Damaged PDA displaying a chaotic stream of corrupted system diagnostics." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "interstellar_trade_routes.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Sector_Alpha_Prime" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Nebula_Gamma_Outpost" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Sector_Alpha_Prime\", \"Jump_Gate_7\", \"Void_Station\", \"Asteroid_Belt_Route\", \"Nebula_Gamma_Outpost\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "10928374655647382910" + } + ], + "init": { + "inputs": { + "file_id": "interstellar_trade_routes.json", + "src": "Sector_Alpha_Prime", + "dst": "Nebula_Gamma_Outpost" + }, + "outputs": { + "path": "[\"Sector_Alpha_Prime\", \"Jump_Gate_7\", \"Void_Station\", \"Asteroid_Belt_Route\", \"Nebula_Gamma_Outpost\"]", + "cost": "10928374655647382910" + } + }, + "narrative": "A massive server rack known as the Routing Module, pulsing with blue LED lights." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1234567890abcdef1234567890abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "75df3ddf" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1977564639 + } + ], + "init": { + "inputs": { + "hex": "1234567890abcdef1234567890abcdef" + }, + "outputs": {} + }, + "narrative": "A sleek diagnostic device operating as the Signal Verifier on the main control desk." + } + ], + "edges": [ + { + "source_id": "container_2", + "target_id": "item_14", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "text_xor_hex", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "hash_md5", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_a" + }, + { + "source_id": "terminal_2", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex_b" + }, + { + "source_id": "matter_synthesizer", + "target_id": "text_xor_hex", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "trigger_item" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num2" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_33db7c84_narrative.json b/data/questions/10/narrative/skeleton_33db7c84_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..6c4427c663879c02efe8663daf4680bb5c367c35 --- /dev/null +++ b/data/questions/10/narrative/skeleton_33db7c84_narrative.json @@ -0,0 +1,662 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "graph_shortest_path", + "win_condition": { + "type": "tool_output", + "node_id": "graph_shortest_path", + "output_port": "path", + "output_type": "Text_Generic", + "description": "Execute Shortest Path Finder and get the output from port 'path'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "zip_unzip_file", + "zip_unzip_item", + "unicode_norm", + "terminal_2", + "zip_unzip_file_d06e", + "item_9" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": {} + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "form": { + "type": "Text_Generic", + "description": "Form" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "zip_unzip_file_d06e": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Source_Alpha" + }, + "init_outputs": { + "path": "[\"Node_Source_Alpha\", \"Node_Transit_1\", \"Node_Transit_2\", \"Node_Transit_3\", \"Node_Destination_Omega\"]", + "cost": "482915" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_dataset_v1.json" + } + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "archive_bundle_2023.zip" + }, + "init_outputs": {} + }, + "unicode_norm": { + "init_inputs": { + "form": "NFC" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "827364519203847561029384", + "num2": "109283746556473829101928" + }, + "init_outputs": { + "text_result": "Terminal operation pending execution status.", + "hex_result": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "math_token": "Math_Op_Token_X99" + } + }, + "zip_unzip_file_d06e": { + "init_inputs": { + "password": "SecurePassword123!" + }, + "init_outputs": { + "files": "financial_report_2024.csv" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "config_manifest_structure.json" + } + } + }, + "intro_narrative": "You awaken in the forgotten sanctum of the Archmage Elara, a legendary spellcaster who vanished centuries ago. The chamber is lit by floating orbs of luminescent magic, casting long shadows across ancient artifacts and dusty tomes. A shimmering barrier blocks the only exit, humming with volatile arcane energy. According to the fading inscriptions on the walls, escaping this sanctum requires charting a safe path through the realm's magical leylines. To achieve this, you must awaken dormant magical relics, decipher arcane ciphers, and unlock the secrets bound within sealed objects of power. The magic in the air is heavy and unstable—one wrong move could trap you in this mystical labyrinth forever. You must carefully study the relics around you and discover how their powers intertwine to find your way out.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_dataset_v1.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Source_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "\u0007\u0018):K\\m~" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Source_Alpha\", \"Node_Transit_1\", \"Node_Transit_2\", \"Node_Transit_3\", \"Node_Destination_Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "482915" + } + ], + "init": { + "inputs": { + "src": "Node_Source_Alpha" + }, + "outputs": { + "path": "[\"Node_Source_Alpha\", \"Node_Transit_1\", \"Node_Transit_2\", \"Node_Transit_3\", \"Node_Destination_Omega\"]", + "cost": "482915" + } + }, + "narrative": "The Leyline Map. An ancient map charting the magical leylines. It requires inputs from both The Arcane Vault and The Purifying Crystal to chart a safe passage." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "financial_report_2024.csv" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "\u0007\u0018):K\\m~" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_dataset_v1.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_dataset_v1.json" + } + }, + "narrative": "The Arcane Vault. A massive repository of magical artifacts. It requires inputs from both The Purifying Crystal and The Sealed Spellbook to break its wards." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "\u0007\u0018):K\\m~" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "\u0007\u0018):K\\m~" + } + ], + "narrative": "The Purifying Crystal. A floating prism that cleanses corrupted incantations. It requires input from The Spirit Harmonizer to cast its light." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Chrono-Talisman. A mysterious brass talisman radiating faint temporal magic." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_bundle_2023.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "\u0007\u0018):K\\m~" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "archive_bundle_2023.zip" + }, + "outputs": {} + }, + "narrative": "The Enchanted Reliquary. A beautifully crafted chest sealed by a spell word. It requires input from The Spirit Harmonizer to open." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "\u0007\u0018):K\\m~" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "\u0007\u0018):K\\m~" + } + ], + "init": { + "inputs": { + "form": "NFC" + }, + "outputs": {} + }, + "narrative": "The Spirit Harmonizer. A pedestal designed to align fractured magic. It requires input from The Translator Stone to activate." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "\u0007\u0018):K\\m~" + } + ], + "narrative": "The Translator Stone. This magical stone translates ancient ciphers. It requires input from The Runic Number Altar to function." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "827364519203847561029384" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "109283746556473829101928" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal operation pending execution status." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Math_Op_Token_X99" + } + ], + "init": { + "inputs": { + "num1": "827364519203847561029384", + "num2": "109283746556473829101928" + }, + "outputs": { + "text_result": "Terminal operation pending execution status.", + "hex_result": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "math_token": "Math_Op_Token_X99" + } + }, + "narrative": "The Runic Number Altar. An ancient stone altar etched with mystical numeric symbols." + }, + { + "id": "zip_unzip_file_d06e", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "config_manifest_structure.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "financial_report_2024.csv" + } + ], + "init": { + "inputs": { + "password": "SecurePassword123!" + }, + "outputs": { + "files": "financial_report_2024.csv" + } + }, + "narrative": "The Sealed Spellbook. A heavy tome bound in enchanted chains. It requires input from The Crystal of Encased Knowledge to unlock." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "config_manifest_structure.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "config_manifest_structure.json" + } + }, + "narrative": "The Crystal of Encased Knowledge. A glowing gemstone pulsing with trapped ethereal energy." + } + ], + "edges": [ + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + }, + { + "source_id": "item_16", + "target_id": "text_bidi_sanitize", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "unicode_norm", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "unicode_norm", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "hex_decode", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "terminal_2", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex" + }, + { + "source_id": "zip_unzip_file_d06e", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_9", + "target_id": "zip_unzip_file_d06e", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_351ed964_narrative.json b/data/questions/10/narrative/skeleton_351ed964_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..6d51d374010dba3ff6a1e1a993f3767d6a3671c7 --- /dev/null +++ b/data/questions/10/narrative/skeleton_351ed964_narrative.json @@ -0,0 +1,697 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 12, + "win_node_id": "terminal_2", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_2", + "output_port": "text_result", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_result'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "calc_modexp", + "checksum_crc32", + "checksum_crc32_c8e9", + "calc_modexp_de54", + "graph_shortest_path", + "zip_unzip_file" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "checksum_crc32_c8e9": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_modexp_de54": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "IN_HOC_SIGNO_VINCES_ROSA_CRUX_AUREA_CRUX", + "hex_result": "1a2b3c4d5e6f708192a3b4c5d6e7f809", + "math_token": "147981658594105717549315074301" + } + }, + "calc_modexp": { + "init_inputs": { + "mod": "104729" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeefcafebabe0123456789abcdef" + }, + "init_outputs": {} + }, + "checksum_crc32_c8e9": { + "init_inputs": { + "hex": "00112233445566778899aabbccddeeff" + }, + "init_outputs": {} + }, + "calc_modexp_de54": { + "init_inputs": { + "base": "9283746510293847561029384756", + "mod": "500231" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Sector_A", + "dst": "Sector_F" + }, + "init_outputs": { + "path": "[\"Sector_A\", \"Sector_B\", \"Sector_C\", \"Sector_D\", \"Sector_E\", \"Sector_F\"]", + "cost": "1250" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_logs_2023.zip", + "password": "CorrectHorseBatteryStaple" + }, + "init_outputs": { + "files": "access_codes.json" + } + } + }, + "intro_narrative": "You are a private investigator trapped inside the grand, dimly-lit study of the late eccentric billionaire Arthur Blackwood. Rumor has it that Arthur hid the truth about his mysterious demise within an elaborate digital vault. The room is filled with strange analytical devices, brass cryptography tools, and humming computer terminals. To escape the locked study and uncover his final secret, you must navigate a web of encrypted devices, carefully linking their outputs to bypass the ultimate security measure. Time is ticking, and the shadows in the room seem to close in on you.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1157070293" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "83559" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "IN_HOC_SIGNO_VINCES_ROSA_CRUX_AUREA_CRUX" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f708192a3b4c5d6e7f809" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "147981658594105717549315074301" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "IN_HOC_SIGNO_VINCES_ROSA_CRUX_AUREA_CRUX", + "hex_result": "1a2b3c4d5e6f708192a3b4c5d6e7f809", + "math_token": "147981658594105717549315074301" + } + }, + "narrative": "This is the overseer's console, the heart of the mansion's security. It requires inputs from both the cryptex mechanism and the final sequence decoder to initiate the ultimate unlock sequence." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "262811" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 1035436750 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "83559" + } + ], + "init": { + "inputs": { + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "This is a heavy brass cryptex mechanism. It requires inputs from both the evidence scanner and the second translation matrix to unlock its inner chamber." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeefcafebabe0123456789abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "3db782ce" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1035436750 + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafebabe0123456789abcdef" + }, + "outputs": {} + }, + "narrative": "An old but reliable evidence scanner used to verify the integrity of physical clues found at the scene." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "262811" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 2215081371 + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1157070293" + } + ], + "narrative": "This is the final sequence decoder. It requires inputs from both the second translation matrix and the fingerprint validator to finalize the logic." + }, + { + "id": "calc_inv_mod_f370", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 2215081371 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "360295" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "262811" + } + ], + "narrative": "This is the second translation matrix. It requires inputs from both the first translation matrix and the fingerprint validator to further refine the decrypted message." + }, + { + "id": "checksum_crc32_c8e9", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "00112233445566778899aabbccddeeff" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "8407759b" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2215081371 + } + ], + "init": { + "inputs": { + "hex": "00112233445566778899aabbccddeeff" + }, + "outputs": {} + }, + "narrative": "A highly sensitive fingerprint validator designed to process residual biometric traces left on the mansion's surfaces." + }, + { + "id": "calc_inv_mod_9d36", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "360295" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1250" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "360295" + } + ], + "narrative": "This is the first translation matrix. It requires inputs from both the cipher wheel and the blueprint analyzer to align the cryptographic patterns." + }, + { + "id": "calc_modexp_de54", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "9283746510293847561029384756" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 1035436750 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "500231" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "360295" + } + ], + "init": { + "inputs": { + "base": "9283746510293847561029384756", + "mod": "500231" + }, + "outputs": {} + }, + "narrative": "This is a complex cipher wheel. It requires input from the evidence scanner to begin decrypting the suspect's initial notes." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "access_codes.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Sector_A" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Sector_F" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Sector_A\", \"Sector_B\", \"Sector_C\", \"Sector_D\", \"Sector_E\", \"Sector_F\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "1250" + } + ], + "init": { + "inputs": { + "src": "Sector_A", + "dst": "Sector_F" + }, + "outputs": { + "path": "[\"Sector_A\", \"Sector_B\", \"Sector_C\", \"Sector_D\", \"Sector_E\", \"Sector_F\"]", + "cost": "1250" + } + }, + "narrative": "This is a blueprint analyzer. It requires input from the locked digital briefcase to map out the hidden pathways of the mansion." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_logs_2023.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "CorrectHorseBatteryStaple" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "access_codes.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_logs_2023.zip", + "password": "CorrectHorseBatteryStaple" + }, + "outputs": { + "files": "access_codes.json" + } + }, + "narrative": "A locked digital briefcase left behind on the mahogany desk. It seems to contain vital encrypted files regarding the estate's layout." + } + ], + "edges": [ + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num2" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num1" + }, + { + "source_id": "calc_inv_mod_f370", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod_f370", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "base" + }, + { + "source_id": "checksum_crc32_c8e9", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "calc_inv_mod_9d36", + "target_id": "calc_inv_mod_f370", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "calc_modexp_de54", + "target_id": "calc_inv_mod_9d36", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_de54", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "checksum_crc32_c8e9", + "target_id": "calc_inv_mod_f370", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod_9d36", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_391497b4_narrative.json b/data/questions/10/narrative/skeleton_391497b4_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..abc55456e47d73f1712e45b72ebb3bdc2c38c60a --- /dev/null +++ b/data/questions/10/narrative/skeleton_391497b4_narrative.json @@ -0,0 +1,471 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "luhn_check", + "win_condition": { + "type": "tool_output", + "node_id": "luhn_check", + "output_port": "valid", + "output_type": "Text_Generic", + "description": "Execute Luhn Checker and get the output from port 'valid'" + }, + "source_init": { + "source_nodes": [ + "item_7", + "terminal_1", + "checksum_crc32" + ], + "by_node": { + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "print(4532015892340019)" + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Terminal Initialization Sequence A" + }, + "init_outputs": { + "text_output": "Standard terminal text output generated successfully.", + "hex_output": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "1234567890abcdef1234567890abcdef" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The rain beats relentlessly against the cracked windows of an abandoned precinct. You are a private investigator, hired to uncover the truth behind a cold case that has haunted the city for decades. Your client went missing last week, leaving behind nothing but an address and a cryptic warning: 'Trust the trail of evidence, not the people.' Stepping into the dimly lit office, the smell of damp paper and ozone lingers in the air. The room is a chaotic web of connected devices, locked containers, and forgotten notes. Whoever was here before you was close to an answer, meticulously piecing together fragments of a digital puzzle. Your objective is clear: navigate this maze of archaic technology and hidden clues to access the master database. To do this, you must logically trace the flow of information, using the right tools at the right time. Every machine and artifact in this room is connected. Follow the data, decode the mystery, and find out what really happened before the culprits return to silence you once and for all.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "4532015892340019\n" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "This is the master database. It requires input from the legacy mainframe to verify the final suspect's identity." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print(4532015892340019)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "4532015892340019\n" + } + ], + "narrative": "This is a legacy mainframe. It requires input from the programming floppy disk to execute its routines." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A tiny hidden microchip extracted from a compromised secure device." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "print(4532015892340019)" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "print(4532015892340019)" + } + }, + "narrative": "An old programming floppy disk labeled with a stark red marker." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A sealed envelope containing faded black-and-white crime scene photographs." + }, + { + "id": "item_16_4b46", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A weathered detective's notebook filled with cryptic shorthand." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is an evidence vault. It requires input from the central computer to authenticate and open." + }, + { + "id": "item_16_2261", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A heavy, engraved metal token found abandoned on the cold floor." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Terminal Initialization Sequence A" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 1977564639 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Standard terminal text output generated successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Terminal Initialization Sequence A" + }, + "outputs": { + "text_output": "Standard terminal text output generated successfully.", + "hex_output": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + }, + "narrative": "This is the central computer. It requires input from the forensic scanner to operate." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1234567890abcdef1234567890abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "75df3ddf" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1977564639 + } + ], + "init": { + "inputs": { + "hex": "1234567890abcdef1234567890abcdef" + }, + "outputs": {} + }, + "narrative": "A forensic scanner used to analyze physical evidence and extract data." + } + ], + "edges": [ + { + "source_id": "code_py_exec", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "number" + }, + { + "source_id": "item_8", + "target_id": "code_py_exec", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16_4b46", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16_2261", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_1", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_1", + "target_id": "item_16_2261", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_41d910c3_narrative.json b/data/questions/10/narrative/skeleton_41d910c3_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..e585357f5c48e6adfa7b5a27dc395700d45d3ef8 --- /dev/null +++ b/data/questions/10/narrative/skeleton_41d910c3_narrative.json @@ -0,0 +1,440 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "container_2", + "win_condition": { + "type": "item_content", + "node_id": "container_2", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_2", + "hash_sha256", + "container_4" + ], + "by_node": { + "container_2": { + "node_name": "", + "node_type": "Item", + "template_id": "container_2", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "hash_sha256": { + "node_name": "SHA-256 Hasher", + "node_type": "Tool", + "template_id": "hash_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_2": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "EXITUS_ACTA_FABULA_EST_PLAUDITE" + } + }, + "hash_sha256": { + "init_inputs": { + "text": "entropy_seed_vector_92837465_alpha" + }, + "init_outputs": {} + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "val_id_928_zeta" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The air in Detective Marlowe’s study is thick with the scent of old parchment and cold tobacco. He vanished three days ago, leaving behind a trail of cryptic leads that point to this very room. The walls are lined with bookshelves, but it’s the strange mechanical devices humming in the shadows that catch your eye. At the center of it all is a massive steel vault—the Master Safe—which Marlowe claimed held the only evidence capable of bringing down the city's most powerful crime syndicate. You must navigate a web of encrypted data and hidden compartments to unlock the secrets he left behind before the syndicate's cleaners arrive to wipe the scene clean.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a40f5920" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "EXITUS_ACTA_FABULA_EST_PLAUDITE" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "EXITUS_ACTA_FABULA_EST_PLAUDITE" + } + }, + "narrative": "This is the Master Safe, a heavy steel vault built into the wall. It requires input from the Verification Module to release its final locking mechanism." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "6314b0ecee1b51e8d327a679e4d85c16b7a8503eb972e8c44bca229a061ccb9b" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "a40f5920" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2752469280 + } + ], + "narrative": "This is the Verification Module, a small terminal with a glowing amber screen. It requires input from the Cipher Encoder to process the data." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Ornate Jewelry Box is a small, velvet-lined container discovered behind a hidden panel on the desk, smelling faintly of lavender." + }, + { + "id": "item_8_0f17", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Tarnished Key is a heavy iron key with a distinctive raven-shaped handle, feeling unexpectedly cold to the touch." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Faded Sheet Music is a brittle piece of paper with hand-drawn musical notes and cryptic annotations scribbled in the margins." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": 2752469280 + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Antique Music Box, a mahogany container with intricate carvings. It requires input from the Verification Module to open its lid." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "entropy_seed_vector_92837465_alpha" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "6314b0ecee1b51e8d327a679e4d85c16b7a8503eb972e8c44bca229a061ccb9b" + } + ], + "init": { + "inputs": { + "text": "entropy_seed_vector_92837465_alpha" + }, + "outputs": {} + }, + "narrative": "The Cipher Encoder is a modified mechanical typewriter that converts standard text into complex, encoded sequences." + }, + { + "id": "item_8_3e8b", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Silver Locket is a heart-shaped piece of jewelry with a slight scratch on the front cover, potentially holding a hidden secret." + }, + { + "id": "item_16_ccf5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Old Logbook is a leather-bound journal filled with dates and shorthand names, its spine cracked from frequent use." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "val_id_928_zeta" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "val_id_928_zeta" + }, + "outputs": {} + }, + "narrative": "The Rusty Filing Cabinet is a dented metal locker that appears to be secured by a text-based electronic lock." + } + ], + "edges": [ + { + "source_id": "checksum_crc32", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_0f17", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_0f17", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_3", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "fingerprint_input" + }, + { + "source_id": "hash_sha256", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_8_3e8b", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_16_ccf5", + "target_id": "item_8_3e8b", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_4", + "target_id": "item_16_ccf5", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_443eb8ca_narrative.json b/data/questions/10/narrative/skeleton_443eb8ca_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..314c20653247a20d2348b7018a4557d7aeb18292 --- /dev/null +++ b/data/questions/10/narrative/skeleton_443eb8ca_narrative.json @@ -0,0 +1,724 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "terminal_2", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_2", + "output_port": "text_result", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_result'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "calc_modexp", + "calc_bigmul", + "calc_gcd", + "calc_modexp_5f80", + "calc_inv_mod", + "checksum_crc32", + "calc_modexp_3ccc", + "zip_unzip_item" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "calc_modexp_5f80": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_modexp_3ccc": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": { + "num2": "8273645192837465019283" + }, + "init_outputs": { + "text_result": "HOPE_REMAINED_INSIDE_THE_BOX_WHEN_ALL_ELSE_ESCAPED", + "hex_result": "1a2b3c4d5e6f7a8b", + "math_token": "Math_Token_Init_77" + } + }, + "calc_modexp": { + "init_inputs": { + "base": "10" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "9182736450192837465102" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "5647382910293847561029" + }, + "init_outputs": {} + }, + "calc_modexp_5f80": { + "init_inputs": { + "mod": "472819" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "mod": "104729" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeef12345678" + }, + "init_outputs": {} + }, + "calc_modexp_3ccc": { + "init_inputs": { + "base": "2", + "mod": "857463" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "encrypted_data_v2.zip", + "password": "SuperSecretPass123!" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You wake up in the dimly lit sub-basement of an abandoned intelligence facility. The air is stale, thick with the scent of old electronics and buried secrets. At the far end of the room, the Main Mainframe blinks with a final lockdown sequence, trapping you inside. To escape and uncover the truth of what the missing cryptographers were working on, you must navigate a complex web of cryptographic devices and terminals scattered across the room. Every machine is intricately connected; every deciphered signal is a step closer to overriding the lockdown.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "9118030086817226128948" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "8273645192837465019283" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "HOPE_REMAINED_INSIDE_THE_BOX_WHEN_ALL_ELSE_ESCAPED" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Math_Token_Init_77" + } + ], + "init": { + "inputs": { + "num2": "8273645192837465019283" + }, + "outputs": { + "text_result": "HOPE_REMAINED_INSIDE_THE_BOX_WHEN_ALL_ELSE_ESCAPED", + "hex_result": "1a2b3c4d5e6f7a8b", + "math_token": "Math_Token_Init_77" + } + }, + "narrative": "The Main Mainframe controlling the facility's heavy blast doors. It requires input from the Core Decryptor to initiate the final unlock sequence." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "10" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "271217" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "9182736450192837465102" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "9118030086817226128948" + } + ], + "init": { + "inputs": { + "base": "10" + }, + "outputs": {} + }, + "narrative": "The Core Decryptor, a massive computational engine at the center of the room. It requires inputs from both the Amplifier Module and the Secondary Decryptor." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "9182736450192837465102" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "1" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "9182736450192837465102" + } + ], + "init": { + "inputs": { + "a": "9182736450192837465102" + }, + "outputs": {} + }, + "narrative": "A bulky Amplifier Module that multiplies signal frequencies. It requires input from the Resonance Analyzer." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "5647382910293847561029" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": 2982214246 + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "5647382910293847561029" + }, + "outputs": {} + }, + "narrative": "A complex Resonance Analyzer with glowing vacuum tubes. It requires input from the Data Verifier." + }, + { + "id": "calc_modexp_5f80", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "79149" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 2982214246 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "472819" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "271217" + } + ], + "init": { + "inputs": { + "mod": "472819" + }, + "outputs": {} + }, + "narrative": "A Secondary Decryptor attached to the main power grid. It requires inputs from both the Phase Inverter and the Data Verifier." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "387919" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "79149" + } + ], + "init": { + "inputs": { + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "A delicate Phase Inverter hidden behind a secure glass panel. It requires input from the Primary Decryptor." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeef12345678" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "b1c0fa66" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2982214246 + } + ], + "init": { + "inputs": { + "hex": "deadbeef12345678" + }, + "outputs": {} + }, + "narrative": "A heavy, brass-plated Data Verifier used to scan raw punch cards and establish basic digital integrity." + }, + { + "id": "calc_modexp_3ccc", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "2" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 2982214246 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "857463" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "387919" + } + ], + "init": { + "inputs": { + "base": "2", + "mod": "857463" + }, + "outputs": {} + }, + "narrative": "An early-model Primary Decryptor humming with kinetic energy. It requires input from the Data Verifier." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Classified Dossier containing heavily redacted operational timezones and location metadata." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_data_v2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretPass123!" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_data_v2.zip", + "password": "SuperSecretPass123!" + }, + "outputs": {} + }, + "narrative": "An old digital Archive Extractor running on a dusty monitor. It handles compressed evidence files." + } + ], + "edges": [ + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num1" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "calc_modexp_5f80", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "exp" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_modexp_5f80", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "base" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_5f80", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "calc_modexp_3ccc", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "item_16", + "target_id": "calc_inv_mod", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_3ccc", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_4f67082a_narrative.json b/data/questions/10/narrative/skeleton_4f67082a_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..2b88cca0a577646a9266c0651719eb4d02ce744c --- /dev/null +++ b/data/questions/10/narrative/skeleton_4f67082a_narrative.json @@ -0,0 +1,685 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 13, + "win_node_id": "terminal_2", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_2", + "output_port": "text_result", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_result'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "calc_inv_mod_9313", + "calc_modexp_8de3", + "graph_shortest_path", + "zip_unzip_file", + "container_3" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_inv_mod_9313": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_modexp_8de3": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": { + "fingerprint_input": { + "type": "Big_Int", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "ARMA_VIRUMQUE_CANO_TROIAE_QUI_PRIMUS_AB_ORIS", + "hex_result": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "math_token": "MathVerificationToken_Valid" + } + }, + "calc_inv_mod_9313": { + "init_inputs": { + "mod": "104729" + }, + "init_outputs": {} + }, + "calc_modexp_8de3": { + "init_inputs": { + "base": "10", + "exp": "8472910384756291038475621", + "mod": "998244" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Start_Point", + "dst": "Node_End_Point" + }, + "init_outputs": { + "path": "[\"Node_Start_Point\", \"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_End_Point\"]", + "cost": "450120" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_archive_data.zip", + "password": "StrongPassword!2024" + }, + "init_outputs": { + "files": "extracted_config_file.json" + } + }, + "container_3": { + "init_inputs": { + "fingerprint_input": "3847561928374651029384756" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are an elite cyber-operative infiltrated into the clandestine underground server farm of the shadowy 'Apex Syndicate'. The facility has just entered an emergency lockdown, alarms blaring as the central servers begin purging critical evidence of their global operations. Your primary objective is to bypass their multi-layered cryptographic defenses and extract the syndicate's master ledger before it's permanently erased. Time is ticking, and the syndicate's heavily armed enforcers are already sweeping the upper floors, closing in on your position. The room is filled with the hum of high-end servers, glowing monitors, and sophisticated lock mechanisms. You must navigate their intricate digital and physical systems, decode intercepted files, and manipulate their heavily guarded algorithms. Keep your wits about you, trace the data flow through their secure modules, and unlock the main terminal before the data—and your only way out—is lost forever.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "99964" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "99964" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "ARMA_VIRUMQUE_CANO_TROIAE_QUI_PRIMUS_AB_ORIS" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "MathVerificationToken_Valid" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "ARMA_VIRUMQUE_CANO_TROIAE_QUI_PRIMUS_AB_ORIS", + "hex_result": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "math_token": "MathVerificationToken_Valid" + } + }, + "narrative": "This is the Mainframe Terminal. It requires inputs from the Protocol Inverter and the Cryptographic Sequencer to grant full system access and secure the victory." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "99964" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "4" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "99964" + } + ], + "narrative": "This is a Protocol Inverter. It requires inputs from the Signal Synchronizer and the Cryptographic Sequencer to reverse the final security protocols." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "99964" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "24992" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "4" + } + ], + "narrative": "This is a Signal Synchronizer. It requires inputs from the Secondary Firewall and the Cryptographic Sequencer to align the encrypted frequencies." + }, + { + "id": "calc_inv_mod_9313", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "180424" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "99964" + } + ], + "init": { + "inputs": { + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "This is a Cryptographic Sequencer. It requires input from the Primary Firewall to generate the correct bypass codes." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A specialized Temporal Keycard with an embedded microchip, used for overriding deep-level physical security locks." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "180424" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "450120" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "99964" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "24992" + } + ], + "narrative": "This is a Secondary Firewall. It requires inputs from the Cryptographic Sequencer, the Network Routing Module, and the Primary Firewall to process the authentication layer." + }, + { + "id": "calc_modexp_8de3", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "10" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "8472910384756291038475621" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "998244" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "180424" + } + ], + "init": { + "inputs": { + "base": "10", + "exp": "8472910384756291038475621", + "mod": "998244" + }, + "outputs": {} + }, + "narrative": "The Primary Firewall terminal pulses with a red warning light. It guards the outermost layer of the syndicate's network." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_config_file.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Start_Point" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_End_Point" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Start_Point\", \"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_End_Point\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "450120" + } + ], + "init": { + "inputs": { + "src": "Node_Start_Point", + "dst": "Node_End_Point" + }, + "outputs": { + "path": "[\"Node_Start_Point\", \"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_End_Point\"]", + "cost": "450120" + } + }, + "narrative": "This is a Network Routing Module. It requires input from the Archive Extractor to accurately map the secure access pathways." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_archive_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "StrongPassword!2024" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_config_file.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_archive_data.zip", + "password": "StrongPassword!2024" + }, + "outputs": { + "files": "extracted_config_file.json" + } + }, + "narrative": "An Archive Extractor software module running quietly on a secondary monitor, ready to decompress secure files." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "3847561928374651029384756" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "3847561928374651029384756" + }, + "outputs": {} + }, + "narrative": "A heavy Biometric Safe secured to the server room floor. It hums with power, waiting for an authorized biological signature." + } + ], + "edges": [ + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num1" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "calc_inv_mod_9313", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "item_16", + "target_id": "calc_inv_mod_9313", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "calc_inv_mod_9313", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num2" + }, + { + "source_id": "calc_inv_mod_9313", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod_9313", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "calc_modexp_8de3", + "target_id": "calc_inv_mod_9313", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "exp" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "calc_modexp_8de3", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "base" + }, + { + "source_id": "container_3", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_50e7b8ab_narrative.json b/data/questions/10/narrative/skeleton_50e7b8ab_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..620bad81218b1cf8fcd1f844150c31aef206c279 --- /dev/null +++ b/data/questions/10/narrative/skeleton_50e7b8ab_narrative.json @@ -0,0 +1,657 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "item_13", + "win_condition": { + "type": "item_content", + "node_id": "item_13", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_13", + "terminal_2", + "calc_bigmul", + "graph_shortest_path", + "zip_unzip_file", + "terminal_1" + ], + "by_node": { + "item_13": { + "node_name": "", + "node_type": "Item", + "template_id": "item_13", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + } + } + }, + "initial_values": { + "item_13": { + "init_inputs": {}, + "init_outputs": { + "content": "b4c9a2e8f1d70365b9a8c7d6e5f432109876543210fedcba9876543210fedcba" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "8273645192837465102938475" + }, + "init_outputs": { + "text_result": "Calculation pending. Please provide second input.", + "hex_result": "1a2b3c4d5e6f7081" + } + }, + "calc_bigmul": { + "init_inputs": { + "a": "34985720394857263498572634", + "b": "91827364509182736450918273" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Alpha_Node", + "dst": "Omega_Node" + }, + "init_outputs": { + "path": "[\"Alpha_Node\", \"Sector_4\", \"Router_X\", \"Bridge_9\", \"Omega_Node\"]", + "cost": "4520" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_logs_archive.zip" + }, + "init_outputs": { + "files": "extracted_manifest.json" + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "System initialization sequence alpha.", + "slot_b": "5647382910192837465564738" + }, + "init_outputs": { + "text_output": "Terminal active. Waiting for command.", + "hex_output": "aabbccddeeff00112233", + "item_dispenser": "The machine whirs but dispenses nothing useful." + } + } + }, + "intro_narrative": "Welcome to the Clockwork Citadel, the abandoned workshop of the legendary inventor, Lord Archibald. The air is thick with the scent of oil and ozone, and the constant hiss of steam pipes echoes through the cavernous room. Your objective is to secure the Grand Master Key, a legendary artifact containing the ultimate cryptographic sequence that can shut down the rogue automaton army threatening the city. The key is hidden deep within a web of mechanical puzzles, steam-powered terminals, and brass contraptions. To succeed, you must navigate through a series of interlocking mechanisms, each relying on the output of another to function. Time is ticking, and the boiler pressure is rising dangerously high. Will you decipher the logic of the Clockwork Citadel before the automatons breach the city gates?", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "item_13", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_13", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "b4c9a2e8f1d70365b9a8c7d6e5f432109876543210fedcba9876543210fedcba" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "b4c9a2e8f1d70365b9a8c7d6e5f432109876543210fedcba9876543210fedcba" + } + }, + "narrative": "The Grand Master Key. A heavy brass cylinder containing the final sequence. It is completely sealed and feels cold to the touch." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "[\"Alpha_Node\", \"Sector_4\", \"Router_X\", \"Bridge_9\", \"Omega_Node\"]" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Brass Vault. A heavy brass vault with a complex mechanical lock. It requires input from the Navigational Automaton." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Chronometer Dial. A delicate pocket watch dial that seems to point to different time zones based on its orientation." + }, + { + "id": "container_4_9686", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Calculation pending. Please provide second input." + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Copper Lockbox. A small copper lockbox secured by a pressure-sensitive seal. It requires input from the Pressure Analyzer." + }, + { + "id": "item_16_ba6a", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Timepiece Core. An intricately carved gear assembly that serves as the beating heart of a temporal mechanism." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "8273645192837465102938475" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "3212646499314906510687465120542837213128934088341082" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation pending. Please provide second input." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7081" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "8273645192837465102938475" + }, + "outputs": { + "text_result": "Calculation pending. Please provide second input.", + "hex_result": "1a2b3c4d5e6f7081" + } + }, + "narrative": "The Pressure Analyzer. A large steam-powered analytical engine. It requires input from the Gear Multiplier." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "34985720394857263498572634" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "91827364509182736450918273" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "3212646499314906510687465120542837213128934088341082" + } + ], + "init": { + "inputs": { + "a": "34985720394857263498572634", + "b": "91827364509182736450918273" + }, + "outputs": {} + }, + "narrative": "The Gear Multiplier. A massive, soot-stained calculator made of interlocking cogs. It is used to perform arithmetic." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_manifest.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Alpha_Node" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Omega_Node" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Alpha_Node\", \"Sector_4\", \"Router_X\", \"Bridge_9\", \"Omega_Node\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "4520" + } + ], + "init": { + "inputs": { + "src": "Alpha_Node", + "dst": "Omega_Node" + }, + "outputs": { + "path": "[\"Alpha_Node\", \"Sector_4\", \"Router_X\", \"Bridge_9\", \"Omega_Node\"]", + "cost": "4520" + } + }, + "narrative": "The Navigational Automaton. A brass automaton designed to plot optimal travel routes. It requires input from the Steam Valve Decoder." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_logs_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Terminal active. Waiting for command." + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_manifest.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_logs_archive.zip" + }, + "outputs": { + "files": "extracted_manifest.json" + } + }, + "narrative": "The Steam Valve Decoder. A hissing machine used to depressurize encrypted canisters. It requires input from the Main Control Console." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "System initialization sequence alpha." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "5647382910192837465564738" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal active. Waiting for command." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "aabbccddeeff00112233" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "The machine whirs but dispenses nothing useful." + } + ], + "init": { + "inputs": { + "slot_a": "System initialization sequence alpha.", + "slot_b": "5647382910192837465564738" + }, + "outputs": { + "text_output": "Terminal active. Waiting for command.", + "hex_output": "aabbccddeeff00112233", + "item_dispenser": "The machine whirs but dispenses nothing useful." + } + }, + "narrative": "The Main Control Console. The primary control console of the facility, bristling with levers, dials, and a flickering phosphor screen." + } + ], + "edges": [ + { + "source_id": "container_4", + "target_id": "item_13", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "container_4_9686", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16_ba6a", + "target_id": "container_4_9686", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_2", + "target_id": "container_4_9686", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_2", + "target_id": "item_16_ba6a", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num2" + }, + { + "source_id": "graph_shortest_path", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "fingerprint_input" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "terminal_1", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "password" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_5198ed25_narrative.json b/data/questions/10/narrative/skeleton_5198ed25_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..bc1428cbde59b8a30aeded36ce92d88a77944677 --- /dev/null +++ b/data/questions/10/narrative/skeleton_5198ed25_narrative.json @@ -0,0 +1,735 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 13, + "win_node_id": "json_get", + "win_condition": { + "type": "tool_output", + "node_id": "json_get", + "output_port": "values", + "output_type": "Text_Generic", + "description": "Execute JSON Getter and get the output from port 'values'" + }, + "source_init": { + "source_nodes": [ + "json_get", + "zip_unzip_file", + "zip_unzip_file_1456", + "zip_unzip_file_51c7", + "terminal_1", + "code_py_exec_075b", + "graph_shortest_path", + "item_7", + "csv_query" + ], + "by_node": { + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": {}, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_1456": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_51c7": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "code_py_exec_075b": { + "node_name": "Python Executor", + "node_type": "Tool", + "template_id": "code_py_exec", + "init_inputs": { + "code": { + "type": "Code_Python", + "description": "Python code" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + }, + "select": { + "type": "Text_Generic", + "description": "Columns to select" + }, + "where": { + "type": "Text_Generic", + "description": "Where clause" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + } + } + }, + "initial_values": { + "json_get": { + "init_inputs": {}, + "init_outputs": { + "values": "[\"entry_alpha\", \"entry_beta\", \"entry_gamma\"]" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_config_v2.json" + } + }, + "zip_unzip_file_1456": { + "init_inputs": {}, + "init_outputs": { + "files": "legacy_data_dump.xml" + } + }, + "zip_unzip_file_51c7": { + "init_inputs": { + "zip_id": "project_blue_archive.zip" + }, + "init_outputs": { + "files": "blueprint_schematic.cad" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "$.store.inventory[*].id", + "hex_output": "1a2b3c4d5e6f7890" + } + }, + "code_py_exec_075b": { + "init_inputs": { + "code": "import time\nprint(1772962913.642455)" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "regional_traffic_map.json" + }, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]", + "cost": "83746592018374659201" + } + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "target_value = 1024" + } + }, + "csv_query": { + "init_inputs": { + "file_id": "customer_transactions.csv", + "select": "transaction_id, date, amount", + "where": "amount > 1000 AND status = 'completed'" + }, + "init_outputs": { + "rows": "[{\"transaction_id\": \"TX99\", \"date\": \"2023-10-27\", \"amount\": 1500}, {\"transaction_id\": \"TX100\", \"date\": \"2023-10-28\", \"amount\": 2000}]" + } + } + }, + "intro_narrative": "You stand before the ruined gates of the Aetherial Spire, a legendary tower where the Grand Archmage hid the realm's greatest secret. The air shimmers with residual arcane energy, thick, ancient, and deeply intertwined with complex, puzzle-like enchantments. Your ultimate objective is to awaken the Oracle's Pedestal at the very peak of the spire, which holds the truth to saving your kingdom. However, the path is sealed by layers of magical security. You must navigate a labyrinth of mystical artifacts, locked coffers, and magical weavers that demand specific arcane inputs to operate. Gather the scattered tools, consult the ancient texts, and figure out how each artifact connects to the next. The spire is unstable, and time is running out. You must unravel the Grand Archmage's final enchantment before the entire structure collapses into the void forever.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "extracted_config_v2.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.store.inventory[*].id" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"entry_alpha\", \"entry_beta\", \"entry_gamma\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "values": "[\"entry_alpha\", \"entry_beta\", \"entry_gamma\"]" + } + }, + "narrative": "This is the Oracle's Pedestal. It requires inputs from both the Inner Sanctum Chest and the Celestial Astrolabe to reveal the final truth." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "legacy_data_dump.xml" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "(no output)" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_config_v2.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_config_v2.json" + } + }, + "narrative": "This is the Inner Sanctum Chest. It requires inputs from both the Sunlit Strongbox and the Rune Weaver to open." + }, + { + "id": "zip_unzip_file_1456", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "blueprint_schematic.cad" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "(no output)" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "legacy_data_dump.xml" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "legacy_data_dump.xml" + } + }, + "narrative": "This is the Sunlit Strongbox. It requires inputs from both the Moonlit Coffer and the Rune Weaver to break its seals." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "target_value = 1024" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "(no output)" + } + ], + "narrative": "This is the Rune Weaver, a magical loom. It requires input from the Ancient Scroll to begin its weaving." + }, + { + "id": "zip_unzip_file_51c7", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "project_blue_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "(no output)" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "blueprint_schematic.cad" + } + ], + "init": { + "inputs": { + "zip_id": "project_blue_archive.zip" + }, + "outputs": { + "files": "blueprint_schematic.cad" + } + }, + "narrative": "This is the Moonlit Coffer. It requires input from the Rune Weaver to shatter its magical lock." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "1772962913.642455\n" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "83746592018374659201" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "$.store.inventory[*].id" + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1a2b3c4d5e6f7890" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "$.store.inventory[*].id", + "hex_output": "1a2b3c4d5e6f7890" + } + }, + "narrative": "This is the Celestial Astrolabe. It requires inputs from both the Prophecy Obelisk and the Leyline Map to align the stars." + }, + { + "id": "code_py_exec_075b", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "import time\nprint(1772962913.642455)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "1772962913.642455\n" + } + ], + "init": { + "inputs": { + "code": "import time\nprint(1772962913.642455)" + }, + "outputs": {} + }, + "narrative": "A towering Prophecy Obelisk inscribed with glowing celestial runes, waiting to be deciphered." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "regional_traffic_map.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[{\"transaction_id\": \"TX99\", \"date\": \"2023-10-27\", \"amount\": 1500}, {\"transaction_id\": \"TX100\", \"date\": \"2023-10-28\", \"amount\": 2000}]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "1772962913.642455\n" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "83746592018374659201" + } + ], + "init": { + "inputs": { + "file_id": "regional_traffic_map.json" + }, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]", + "cost": "83746592018374659201" + } + }, + "narrative": "This is the Leyline Map. It requires inputs from both the Prophecy Obelisk and the Archivist's Ledger to chart the correct path." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "target_value = 1024" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "target_value = 1024" + } + }, + "narrative": "A fragile Ancient Scroll radiating a faint, ancient magical aura." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "customer_transactions.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "transaction_id, date, amount" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "amount > 1000 AND status = 'completed'" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"transaction_id\": \"TX99\", \"date\": \"2023-10-27\", \"amount\": 1500}, {\"transaction_id\": \"TX100\", \"date\": \"2023-10-28\", \"amount\": 2000}]" + } + ], + "init": { + "inputs": { + "file_id": "customer_transactions.csv", + "select": "transaction_id, date, amount", + "where": "amount > 1000 AND status = 'completed'" + }, + "outputs": { + "rows": "[{\"transaction_id\": \"TX99\", \"date\": \"2023-10-27\", \"amount\": 1500}, {\"transaction_id\": \"TX100\", \"date\": \"2023-10-28\", \"amount\": 2000}]" + } + }, + "narrative": "A thick, leather-bound Archivist's Ledger containing the long-forgotten records of the realm." + } + ], + "edges": [ + { + "source_id": "zip_unzip_file", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_1456", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "code_py_exec", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_51c7", + "target_id": "zip_unzip_file_1456", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "code_py_exec", + "target_id": "zip_unzip_file_51c7", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "password" + }, + { + "source_id": "terminal_1", + "target_id": "code_py_exec", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_1", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "jsonpath" + }, + { + "source_id": "code_py_exec_075b", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "slot_a" + }, + { + "source_id": "code_py_exec", + "target_id": "zip_unzip_file_1456", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "password" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "code_py_exec_075b", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "dst" + }, + { + "source_id": "csv_query", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "src" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_52f17c3a_narrative.json b/data/questions/10/narrative/skeleton_52f17c3a_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..c348ebf45e9dbba0636d459e9eedc42258f0b380 --- /dev/null +++ b/data/questions/10/narrative/skeleton_52f17c3a_narrative.json @@ -0,0 +1,702 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "unicode_norm", + "win_condition": { + "type": "tool_output", + "node_id": "unicode_norm", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute Unicode Normalizer and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "terminal_1", + "graph_shortest_path", + "calc_gcd", + "text_rotN", + "json_get" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "n": { + "type": "Big_Int", + "description": "Shift N" + } + }, + "init_outputs": {} + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "JSON file ID" + }, + "jsonpath": { + "type": "Text_Generic", + "description": "JSONPath expression" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "NFC", + "hex_result": "a1b2c3d4e5f67890a1b2c3d4e5f67890", + "math_token": "Math_Authorization_Token_X99" + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Initial system check sequence beta-7." + }, + "init_outputs": { + "text_output": "L'œuvre d'art est très belle.", + "hex_output": "1234567890abcdef1234567890abcdef", + "item_dispenser": "Standard_Dispensed_Item_Box" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_topology_map.json", + "src": "Server_Cluster_Alpha", + "dst": "Backup_Storage_Zeta" + }, + "init_outputs": { + "path": "[\"Server_Cluster_Alpha\", \"Router_Gateway_04\", \"Switch_Core_X\", \"Backup_Storage_Zeta\"]", + "cost": "3847562910384756291022" + } + }, + "calc_gcd": { + "init_inputs": { + "a": "837465920183746592018273", + "b": "293847561029384756102938" + }, + "init_outputs": {} + }, + "text_rotN": { + "init_inputs": { + "n": "48592018374659201837465" + }, + "init_outputs": {} + }, + "json_get": { + "init_inputs": { + "file_id": "user_permissions_db.json", + "jsonpath": "$.users.admin.security_tokens[*]" + }, + "init_outputs": { + "values": "Secret_Payload_String_For_Encryption" + } + } + }, + "intro_narrative": "You've infiltrated the underground server facility of the rogue megacorporation, Nexus Dynamics. The air is cold, filled with the hum of cooling fans and the blinking LEDs of massive server racks. Your objective is to initiate a system-wide override to expose their illegal surveillance network. The mainframe is heavily protected by a sequence of cryptographic and mathematical fail-safes. You must navigate through the complex network of interconnected terminals, deciphering hidden data, calculating synchronization metrics, and unlocking the final execution module before the internal security teams trace your location. The clock is ticking, and the grid's architecture is your only weapon.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "L'œuvre d'art est très belle." + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "L'œuvre d'art est très belle." + } + ], + "narrative": "This is the Final Text Compiler, responsible for formatting the ultimate override command. It requires inputs from both the Omega Console and the Alpha Console." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "3847562910384756291022" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "NFC" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Math_Authorization_Token_X99" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "NFC", + "hex_result": "a1b2c3d4e5f67890a1b2c3d4e5f67890", + "math_token": "Math_Authorization_Token_X99" + } + }, + "narrative": "This is the Omega Console, a heavy-duty processing station. It requires inputs from both the Network Mapping Interface and the Secondary Synchronization Calculator." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Initial system check sequence beta-7." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "L'œuvre d'art est très belle." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1234567890abcdef1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard_Dispensed_Item_Box" + } + ], + "init": { + "inputs": { + "slot_a": "Initial system check sequence beta-7." + }, + "outputs": { + "text_output": "L'œuvre d'art est très belle.", + "hex_output": "1234567890abcdef1234567890abcdef", + "item_dispenser": "Standard_Dispensed_Item_Box" + } + }, + "narrative": "This is the Alpha Console, an old but reliable input terminal. It requires input from the Primary Synchronization Calculator." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_map.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Server_Cluster_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Backup_Storage_Zeta" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Server_Cluster_Alpha\", \"Router_Gateway_04\", \"Switch_Core_X\", \"Backup_Storage_Zeta\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "3847562910384756291022" + } + ], + "init": { + "inputs": { + "file_id": "network_topology_map.json", + "src": "Server_Cluster_Alpha", + "dst": "Backup_Storage_Zeta" + }, + "outputs": { + "path": "[\"Server_Cluster_Alpha\", \"Router_Gateway_04\", \"Switch_Core_X\", \"Backup_Storage_Zeta\"]", + "cost": "3847562910384756291022" + } + }, + "narrative": "This is the Network Mapping Interface, used to calculate routing metrics across the corporate grid." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the Encrypted Access Chip, a small silicon device likely dropped by a previous technician." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "837465920183746592018273" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "293847561029384756102938" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "837465920183746592018273", + "b": "293847561029384756102938" + }, + "outputs": {} + }, + "narrative": "This is the Primary Synchronization Calculator, designed to find the common metric between large numerical data sets." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Xjhwjy_Ufdqtfi_Xywnsl_Ktw_Jshwduynts" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Biometric Vault, a high-security physical storage unit. It requires input from the Cipher Shift Module to authenticate." + }, + { + "id": "calc_gcd_505e", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "3847562910384756291022" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "1" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the Secondary Synchronization Calculator, used for cross-referencing secure metrics. It requires inputs from both the Primary Synchronization Calculator and the Network Mapping Interface." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Secret_Payload_String_For_Encryption" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "48592018374659201837465" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Xjhwjy_Ufdqtfi_Xywnsl_Ktw_Jshwduynts" + } + ], + "init": { + "inputs": { + "n": "48592018374659201837465" + }, + "outputs": {} + }, + "narrative": "This is the Cipher Shift Module, an algorithm designed to rotate encrypted character strings. It requires input from the Data Extractor." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "user_permissions_db.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.users.admin.security_tokens[*]" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "Secret_Payload_String_For_Encryption" + } + ], + "init": { + "inputs": { + "file_id": "user_permissions_db.json", + "jsonpath": "$.users.admin.security_tokens[*]" + }, + "outputs": { + "values": "Secret_Payload_String_For_Encryption" + } + }, + "narrative": "This is the Data Extractor, a sophisticated diagnostic unit connected directly to the mainframe's file system." + } + ], + "edges": [ + { + "source_id": "terminal_2", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "form" + }, + { + "source_id": "terminal_1", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "text" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "item_8", + "target_id": "graph_shortest_path", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "slot_b" + }, + { + "source_id": "container_4", + "target_id": "terminal_2", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "calc_gcd_505e", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_gcd_505e", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "text_rotN", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "fingerprint_input" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_gcd_505e", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "json_get", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "text" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_551d8168_narrative.json b/data/questions/10/narrative/skeleton_551d8168_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..d2f2b4a114c1882db674dfbc6f67f0fa52e20bb5 --- /dev/null +++ b/data/questions/10/narrative/skeleton_551d8168_narrative.json @@ -0,0 +1,681 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 12, + "win_node_id": "calc_modexp", + "win_condition": { + "type": "tool_output", + "node_id": "calc_modexp", + "output_port": "value", + "output_type": "Big_Int", + "description": "Execute BigInt Modular Exponentiation and get the output from port 'value'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "calc_gcd", + "num_base_convert", + "zip_unzip_file", + "base64_encode", + "checksum_crc32", + "zip_unzip_file_ec86", + "item_4" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_ec86": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Start_Alpha" + }, + "init_outputs": { + "path": "[\"Node_Start_Alpha\", \"Node_X1\", \"Node_X2\", \"Node_X3\", \"Node_End_Omega\"]", + "cost": "3849201847562910384722" + } + }, + "calc_gcd": { + "init_inputs": { + "a": "5928374610293847561099" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "s": "1029384756293847561088" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "password": "SecureGraphPassword123" + }, + "init_outputs": { + "files": "graph_topology_data.json" + } + }, + "base64_encode": { + "init_inputs": { + "hex": "4a5b6c7d8e9f0a1b2c3d4e5f67890123" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "11223344556677889900aabbccddeeff" + }, + "init_outputs": {} + }, + "zip_unzip_file_ec86": { + "init_inputs": { + "password": "InitialAccessKey!@#" + }, + "init_outputs": { + "files": "intermediate_level.zip" + } + }, + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "encrypted_source_blob.zip" + } + } + }, + "intro_narrative": "You awaken to the shrill hiss of escaping steam and the violent shudder of the 'Iron Leviathan', a colossal clockwork airship rapidly losing altitude. The chief engineer has vanished, leaving behind only scattered blueprints and locked brass contraptions. The main boiler is dead, and the jagged peaks of the Rust Mountains are fast approaching through the porthole. Your only hope of survival is to navigate the labyrinth of pressure valves, cogwheels, and pneumatic tubes to manually reignite the ship's Aetheric Engine Core. Time is ticking, and the gears are waiting.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "3849201847562910384722" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1" + } + ], + "narrative": "This is the Aetheric Engine Core. The massive, pulsing heart of the airship. To achieve full ignition and escape, it requires inputs from the Navigational Astrolabe, the Secondary Gear Synchronizer, and the Primary Gear Synchronizer." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_topology_data.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Start_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "SltsfY6fChssPU5fZ4kBIw==" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Start_Alpha\", \"Node_X1\", \"Node_X2\", \"Node_X3\", \"Node_End_Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "3849201847562910384722" + } + ], + "init": { + "inputs": { + "src": "Node_Start_Alpha" + }, + "outputs": { + "path": "[\"Node_Start_Alpha\", \"Node_X1\", \"Node_X2\", \"Node_X3\", \"Node_End_Omega\"]", + "cost": "3849201847562910384722" + } + }, + "narrative": "This is the Navigational Astrolabe. A complex mechanical map projector. It requires inputs from both the Secondary Steam-Decrypter and the Cogwheel Encoder to plot a safe course." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "5928374610293847561099" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "1029384756293847561088" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "5928374610293847561099" + }, + "outputs": {} + }, + "narrative": "This is the Secondary Gear Synchronizer. A smaller, delicate clockwork alignment tool. It requires input from the Differential Transformer to stabilize its rhythm." + }, + { + "id": "calc_gcd_3b48", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "3849201847562910384722" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": 1090510515 + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the Primary Gear Synchronizer. A large clockwork mechanism designed to align engine frequencies. It requires inputs from both the Pressure Gauge Verifier and the Navigational Astrolabe." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1029384756293847561088" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 1090510515 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1029384756293847561088" + } + ], + "init": { + "inputs": { + "s": "1029384756293847561088" + }, + "outputs": {} + }, + "narrative": "This is the Differential Transformer. A loud, clanking machine that converts mechanical torque. It requires inputs from both the Primary Gear Synchronizer and the Pressure Gauge Verifier." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "intermediate_level.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecureGraphPassword123" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "graph_topology_data.json" + } + ], + "init": { + "inputs": { + "password": "SecureGraphPassword123" + }, + "outputs": { + "files": "graph_topology_data.json" + } + }, + "narrative": "This is the Secondary Steam-Decrypter. An advanced decryption centrifuge. It requires input from the Primary Steam-Decrypter to further unseal the data." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "4a5b6c7d8e9f0a1b2c3d4e5f67890123" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "SltsfY6fChssPU5fZ4kBIw==" + } + ], + "init": { + "inputs": { + "hex": "4a5b6c7d8e9f0a1b2c3d4e5f67890123" + }, + "outputs": {} + }, + "narrative": "This is the Cogwheel Encoder. A mechanical typewriter-like device with interlocking cogwheels used for translating signals." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "11223344556677889900aabbccddeeff" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "40ffdeb3" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1090510515 + } + ], + "init": { + "inputs": { + "hex": "11223344556677889900aabbccddeeff" + }, + "outputs": {} + }, + "narrative": "This is the Pressure Gauge Verifier. A hissing pneumatic machine with multiple dials that checks the integrity of the steam pipes." + }, + { + "id": "zip_unzip_file_ec86", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_source_blob.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "InitialAccessKey!@#" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "intermediate_level.zip" + } + ], + "init": { + "inputs": { + "password": "InitialAccessKey!@#" + }, + "outputs": { + "files": "intermediate_level.zip" + } + }, + "narrative": "This is the Primary Steam-Decrypter. A whistling steam-powered decryption engine. It requires input from the Brass Strongbox to begin processing." + }, + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "encrypted_source_blob.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "encrypted_source_blob.zip" + } + }, + "narrative": "A heavy brass strongbox reinforced with copper rivets. It seems to hold something important inside." + } + ], + "edges": [ + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "calc_gcd_3b48", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "exp" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "calc_gcd_3b48", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "dst" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd_3b48", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_gcd_3b48", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "zip_unzip_file_ec86", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_4", + "target_id": "zip_unzip_file_ec86", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_581758ec_narrative.json b/data/questions/10/narrative/skeleton_581758ec_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..184eeea3009e47a49eabcb66048526b65cce1b21 --- /dev/null +++ b/data/questions/10/narrative/skeleton_581758ec_narrative.json @@ -0,0 +1,791 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "regex_search", + "win_condition": { + "type": "tool_output", + "node_id": "regex_search", + "output_port": "matches", + "output_type": "Text_Generic", + "description": "Execute Regex Search and get the output from port 'matches'" + }, + "source_init": { + "source_nodes": [ + "regex_search", + "csv_query", + "terminal_2", + "graph_shortest_path", + "zip_unzip_file", + "checksum_crc32", + "terminal_1", + "csv_query_486c", + "item_9" + ], + "by_node": { + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "File ID (optional)" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + }, + "select": { + "type": "Text_Generic", + "description": "Columns to select" + }, + "where": { + "type": "Text_Generic", + "description": "Where clause" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "csv_query_486c": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + }, + "select": { + "type": "Text_Generic", + "description": "Columns to select" + }, + "where": { + "type": "Text_Generic", + "description": "Where clause" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + } + } + }, + "initial_values": { + "regex_search": { + "init_inputs": { + "file_id": "global_search_corpus_v12.txt" + }, + "init_outputs": { + "matches": "[\"search_hit_alpha_092\", \"search_hit_beta_114\", \"search_hit_delta_552\", \"search_hit_omega_881\"]" + } + }, + "csv_query": { + "init_inputs": { + "file_id": "financial_records_2023_q4.csv", + "select": "transaction_id, timestamp, amount_usd, status", + "where": "status = 'pending' AND amount_usd > 5000" + }, + "init_outputs": { + "rows": "[{\"transaction_id\": \"TXN-99283\", \"amount\": \"5200.50\"}, {\"transaction_id\": \"TXN-10022\", \"amount\": \"8900.00\"}, {\"transaction_id\": \"TXN-44910\", \"amount\": \"12450.75\"}]" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal secondary port initialized. Handshake protocol completed for mathematics module.", + "hex_result": "e9a2b8c7d6e5f4a3b2c1d0e9f8a7b6c5" + } + }, + "graph_shortest_path": { + "init_inputs": { + "src": "node_central_hub_01" + }, + "init_outputs": { + "path": "[\"node_central_hub_01\", \"gateway_alpha\", \"bridge_sector_7\", \"router_east\", \"endpoint_node_99\"]", + "cost": "582930417263548596071827" + } + }, + "zip_unzip_file": { + "init_inputs": { + "password": "Archive_Key_#9928!_v2" + }, + "init_outputs": { + "files": "uncompressed_system_manifest_v2.json" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "92837465f0e1d2c3b4a5968778695041322314" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "[a-zA-Z0-9]{8,16}_[0-9]{4}", + "hex_output": "1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f", + "item_dispenser": "A flickering holographic shard representing a discarded calculation step." + } + }, + "csv_query_486c": { + "init_inputs": { + "file_id": "sensor_network_metadata.csv", + "select": "sensor_id, location_coords, deployment_date", + "where": "deployment_date >= '2022-01-01' AND location_coords IS NOT NULL" + }, + "init_outputs": { + "rows": "[{\"sensor_id\": \"SN-501\", \"coords\": \"34.05,-118.24\"}, {\"sensor_id\": \"SN-772\", \"coords\": \"40.71,-74.00\"}, {\"sensor_id\": \"SN-881\", \"coords\": \"51.50,-0.12\"}]" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "encrypted_security_blob_771.zip" + } + } + }, + "intro_narrative": "You awaken on the drifting orbital station Helios-7. The emergency lights flicker, painting the metallic corridors in a bloody red hue. The central AI core is ominously silent, and the life support gauge is dropping fast. To survive, you must navigate the station's fragmented systems and reboot the mainframe. You will need to access various databases, fragmented terminals, and encrypted archives scattered throughout the abandoned decks to piece together the system override sequence. Time is running out, and every console you find brings you one step closer to salvation or suffocation.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "[a-zA-Z0-9]{8,16}_[0-9]{4}" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "global_search_corpus_v12.txt" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "[{\"transaction_id\": \"TXN-99283\", \"amount\": \"5200.50\"}, {\"transaction_id\": \"TXN-10022\", \"amount\": \"8900.00\"}, {\"transaction_id\": \"TXN-44910\", \"amount\": \"12450.75\"}]" + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"search_hit_alpha_092\", \"search_hit_beta_114\", \"search_hit_delta_552\", \"search_hit_omega_881\"]" + } + ], + "init": { + "inputs": { + "file_id": "global_search_corpus_v12.txt" + }, + "outputs": { + "matches": "[\"search_hit_alpha_092\", \"search_hit_beta_114\", \"search_hit_delta_552\", \"search_hit_omega_881\"]" + } + }, + "narrative": "This is the Main System Override. It requires inputs from both the Personnel Database and the Security Terminal to initiate the final sequence." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "financial_records_2023_q4.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "transaction_id, timestamp, amount_usd, status" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "status = 'pending' AND amount_usd > 5000" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"transaction_id\": \"TXN-99283\", \"amount\": \"5200.50\"}, {\"transaction_id\": \"TXN-10022\", \"amount\": \"8900.00\"}, {\"transaction_id\": \"TXN-44910\", \"amount\": \"12450.75\"}]" + } + ], + "init": { + "inputs": { + "file_id": "financial_records_2023_q4.csv", + "select": "transaction_id, timestamp, amount_usd, status", + "where": "status = 'pending' AND amount_usd > 5000" + }, + "outputs": { + "rows": "[{\"transaction_id\": \"TXN-99283\", \"amount\": \"5200.50\"}, {\"transaction_id\": \"TXN-10022\", \"amount\": \"8900.00\"}, {\"transaction_id\": \"TXN-44910\", \"amount\": \"12450.75\"}]" + } + }, + "narrative": "A terminal accessing the Personnel Database. It contains heavily encrypted crew records and access logs." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A standard Security Keycard issued to the station's engineering staff." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 726888737 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "582930417263548596071827" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal secondary port initialized. Handshake protocol completed for mathematics module." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "e9a2b8c7d6e5f4a3b2c1d0e9f8a7b6c5" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal secondary port initialized. Handshake protocol completed for mathematics module.", + "hex_result": "e9a2b8c7d6e5f4a3b2c1d0e9f8a7b6c5" + } + }, + "narrative": "This is the Engineering Console. It requires inputs from both the Navigation Matrix and the Data Validator to initialize." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "uncompressed_system_manifest_v2.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "node_central_hub_01" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "[{\"sensor_id\": \"SN-501\", \"coords\": \"34.05,-118.24\"}, {\"sensor_id\": \"SN-772\", \"coords\": \"40.71,-74.00\"}, {\"sensor_id\": \"SN-881\", \"coords\": \"51.50,-0.12\"}]" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"node_central_hub_01\", \"gateway_alpha\", \"bridge_sector_7\", \"router_east\", \"endpoint_node_99\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "582930417263548596071827" + } + ], + "init": { + "inputs": { + "src": "node_central_hub_01" + }, + "outputs": { + "path": "[\"node_central_hub_01\", \"gateway_alpha\", \"bridge_sector_7\", \"router_east\", \"endpoint_node_99\"]", + "cost": "582930417263548596071827" + } + }, + "narrative": "This is the Navigation Matrix. It requires inputs from both the Archive Extractor and the Logistics Database to calculate valid transit routes." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_security_blob_771.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Archive_Key_#9928!_v2" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "uncompressed_system_manifest_v2.json" + } + ], + "init": { + "inputs": { + "password": "Archive_Key_#9928!_v2" + }, + "outputs": { + "files": "uncompressed_system_manifest_v2.json" + } + }, + "narrative": "This is the Archive Extractor. It requires input from the Storage Drive to decompress the legacy files." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "92837465f0e1d2c3b4a5968778695041322314" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "2b537121" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 726888737 + } + ], + "init": { + "inputs": { + "hex": "92837465f0e1d2c3b4a5968778695041322314" + }, + "outputs": {} + }, + "narrative": "A standalone Data Validator used to verify file integrity across the station's damaged sub-systems." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"node_central_hub_01\", \"gateway_alpha\", \"bridge_sector_7\", \"router_east\", \"endpoint_node_99\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 726888737 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "[a-zA-Z0-9]{8,16}_[0-9]{4}" + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A flickering holographic shard representing a discarded calculation step." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "[a-zA-Z0-9]{8,16}_[0-9]{4}", + "hex_output": "1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f", + "item_dispenser": "A flickering holographic shard representing a discarded calculation step." + } + }, + "narrative": "This is the Security Terminal. It requires inputs from both the Data Validator and the Navigation Matrix to bypass the sector lockdown." + }, + { + "id": "csv_query_486c", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "sensor_network_metadata.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "sensor_id, location_coords, deployment_date" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "deployment_date >= '2022-01-01' AND location_coords IS NOT NULL" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"sensor_id\": \"SN-501\", \"coords\": \"34.05,-118.24\"}, {\"sensor_id\": \"SN-772\", \"coords\": \"40.71,-74.00\"}, {\"sensor_id\": \"SN-881\", \"coords\": \"51.50,-0.12\"}]" + } + ], + "init": { + "inputs": { + "file_id": "sensor_network_metadata.csv", + "select": "sensor_id, location_coords, deployment_date", + "where": "deployment_date >= '2022-01-01' AND location_coords IS NOT NULL" + }, + "outputs": { + "rows": "[{\"sensor_id\": \"SN-501\", \"coords\": \"34.05,-118.24\"}, {\"sensor_id\": \"SN-772\", \"coords\": \"40.71,-74.00\"}, {\"sensor_id\": \"SN-881\", \"coords\": \"51.50,-0.12\"}]" + } + }, + "narrative": "A terminal accessing the Logistics Database. It tracks cargo movements and sector manifests." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "encrypted_security_blob_771.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "encrypted_security_blob_771.zip" + } + }, + "narrative": "A portable Storage Drive covered in cosmic dust and scorch marks." + } + ], + "edges": [ + { + "source_id": "csv_query", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "text" + }, + { + "source_id": "item_16", + "target_id": "csv_query", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num2" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + }, + { + "source_id": "terminal_1", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "pattern" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "slot_a" + }, + { + "source_id": "csv_query_486c", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "dst" + }, + { + "source_id": "item_9", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_5946e55d_narrative.json b/data/questions/10/narrative/skeleton_5946e55d_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..665bc6791827afe8636a0c1e69e32b8ee030a58f --- /dev/null +++ b/data/questions/10/narrative/skeleton_5946e55d_narrative.json @@ -0,0 +1,695 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 12, + "win_node_id": "terminal_2", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_2", + "output_port": "text_result", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_result'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "calc_inv_mod", + "calc_gcd", + "zip_unzip_item", + "iban_validate", + "calc_modexp", + "graph_shortest_path" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": {} + }, + "iban_validate": { + "node_name": "IBAN Validator", + "node_type": "Tool", + "template_id": "iban_validate", + "init_inputs": { + "iban": { + "type": "Text_Generic", + "description": "IBAN string" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "TAKE_THE_RED_PILL_AND_SEE_HOW_DEEP_THE_RABBIT_HOLE_GOES", + "hex_result": "a1b2c3d4e5f67890123456789abcdef0", + "math_token": "TOKEN_INIT_77" + } + }, + "calc_inv_mod": { + "init_inputs": { + "a": "92837465102938475610293847" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "10293847561029384756102938" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "secure_payload_v3.zip" + }, + "init_outputs": {} + }, + "iban_validate": { + "init_inputs": { + "iban": "DE89370400440532013000" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "56473829102938475610293847", + "exp": "38475610293847561029384756", + "mod": "479001" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_graph_data.json", + "dst": "Server_Node_Alpha" + }, + "init_outputs": { + "path": "[\"Start_Point\", \"Router_X\", \"Switch_09\", \"Server_Node_Alpha\"]", + "cost": "350" + } + } + }, + "intro_narrative": "You awaken in the clockwork laboratory of the infamous inventor, Lord Percival. The room is filled with the hiss of steam, the scent of burning coal, and the ticking of countless brass gears. The heavy iron door has sealed shut behind you, trapping you in this subterranean workshop. Above the door sits the Main Brass Console, the only device capable of unlocking your exit. However, the console's intricate mechanisms have been decoupled. To escape, you must decipher the interconnected mechanical puzzles scattered throughout the lab, routing the correct pneumatic signals and aetheric energies through the inventor's bizarre devices to power up the final console.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "TAKE_THE_RED_PILL_AND_SEE_HOW_DEEP_THE_RABBIT_HOLE_GOES" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f67890123456789abcdef0" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "TOKEN_INIT_77" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "TAKE_THE_RED_PILL_AND_SEE_HOW_DEEP_THE_RABBIT_HOLE_GOES", + "hex_result": "a1b2c3d4e5f67890123456789abcdef0", + "math_token": "TOKEN_INIT_77" + } + }, + "narrative": "This is the Main Brass Console, the heart of the workshop. It requires inputs from both the Transmutation Converter and the Aetheric Resonance Tuner to finally activate." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "350" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "0" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1" + } + ], + "narrative": "This is a mechanical Transmutation Converter. It requires inputs from the Pressure Inversion Valve, the Aetheric Resonance Tuner, and the Navigator's Astrolabe to process." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "92837465102938475610293847" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "0" + } + ], + "init": { + "inputs": { + "a": "92837465102938475610293847" + }, + "outputs": {} + }, + "narrative": "This is a complex Pressure Inversion Valve. It requires input from the Aetheric Resonance Tuner to calculate the correct steam reversal flow." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "10293847561029384756102938" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "472569" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "10293847561029384756102938" + }, + "outputs": {} + }, + "narrative": "This is the Aetheric Resonance Tuner. It requires input from the Steam-powered Engine Calibrator to synchronize its cogs." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_payload_v3.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "True" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "secure_payload_v3.zip" + }, + "outputs": {} + }, + "narrative": "This is a sealed Clockwork Cryptex. It requires input from the Merchant's Guild Ledger to unlock its rotating dials." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "DE89370400440532013000" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "True" + } + ], + "init": { + "inputs": { + "iban": "DE89370400440532013000" + }, + "outputs": {} + }, + "narrative": "The Merchant's Guild Ledger, a mechanical book filled with old trade routes and financial codes." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "56473829102938475610293847" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "38475610293847561029384756" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "479001" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "472569" + } + ], + "init": { + "inputs": { + "base": "56473829102938475610293847", + "exp": "38475610293847561029384756", + "mod": "479001" + }, + "outputs": {} + }, + "narrative": "A heavy brass device known as the Steam-powered Engine Calibrator. It hums with latent geothermal energy." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An intricate brass key with unusual clockwork teeth." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_graph_data.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "True" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Server_Node_Alpha" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Start_Point\", \"Router_X\", \"Switch_09\", \"Server_Node_Alpha\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "350" + } + ], + "init": { + "inputs": { + "file_id": "network_graph_data.json", + "dst": "Server_Node_Alpha" + }, + "outputs": { + "path": "[\"Start_Point\", \"Router_X\", \"Switch_09\", \"Server_Node_Alpha\"]", + "cost": "350" + } + }, + "narrative": "This is the Navigator's Astrolabe. It requires input from the Merchant's Guild Ledger to plot the safest mechanical airway." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A small rusty gear discarded on the workshop floor." + } + ], + "edges": [ + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num1" + }, + { + "source_id": "zip_unzip_item", + "target_id": "num_base_convert", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "iban_validate", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "s" + }, + { + "source_id": "item_16", + "target_id": "zip_unzip_item", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "from_base" + }, + { + "source_id": "iban_validate", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "src" + }, + { + "source_id": "item_8", + "target_id": "calc_gcd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_61eaf804_narrative.json b/data/questions/10/narrative/skeleton_61eaf804_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..3114f52e5bb7a564967163202b6ce1303ad4d90e --- /dev/null +++ b/data/questions/10/narrative/skeleton_61eaf804_narrative.json @@ -0,0 +1,674 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "container_1", + "win_condition": { + "type": "item_content", + "node_id": "container_1", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_1", + "terminal_1", + "container_3", + "calc_bigmul", + "base64_encode", + "calc_inv_mod_580a", + "calc_modexp", + "num_base_convert", + "item_1" + ], + "by_node": { + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": { + "fingerprint_input": { + "type": "Big_Int", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "calc_inv_mod_580a": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + } + } + }, + "initial_values": { + "container_1": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "Win_dajkdhjabxajkdhk" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal initialized. Awaiting cryptographic parameters.", + "hex_output": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "item_dispenser": "Standard Issue Decryption Tool" + } + }, + "container_3": { + "init_inputs": { + "fingerprint_input": "8374651029384756102938475610" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "b": "998877665544332211001234567890" + }, + "init_outputs": {} + }, + "base64_encode": { + "init_inputs": { + "hex": "48656c6c6f20576f726c6421" + }, + "init_outputs": {} + }, + "calc_inv_mod_580a": { + "init_inputs": { + "a": "3141592653589793238462643383", + "mod": "999983" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "mod": "524287" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "from_base": "10" + }, + "init_outputs": {} + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "7733445566778899001122334455" + } + } + }, + "intro_narrative": "You stand in the dim, chaotic office of Arthur Pendelton, an enigmatic cryptographer who vanished without a trace three weeks ago. The room is a labyrinth of jury-rigged mainframes, biometric lockboxes, and humming processors. Your objective is simple but daunting: breach Arthur's ultimate security measure, the main vault, to uncover the truth behind his disappearance. To do so, you must navigate his complex array of custom cryptographic machines, tracing the data flow from his encrypted notes to the final security console. Time is ticking, and whoever took Arthur might be coming back. Can you decipher the master cryptographer's final puzzle before it's too late?", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "Win_dajkdhjabxajkdhk" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "Win_dajkdhjabxajkdhk" + } + }, + "narrative": "This is the main vault. It requires input from the security console." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "SGVsbG8gV29ybGQh" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "174361088664421997755742502467174730" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialized. Awaiting cryptographic parameters." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard Issue Decryption Tool" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal initialized. Awaiting cryptographic parameters.", + "hex_output": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "item_dispenser": "Standard Issue Decryption Tool" + } + }, + "narrative": "This is the security console. It requires inputs from both the multiplication co-processor and the text encoder." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "8374651029384756102938475610" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "8374651029384756102938475610" + }, + "outputs": {} + }, + "narrative": "A heavy biometric lockbox secured to the floorboards." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "174557" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "998877665544332211001234567890" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "174361088664421997755742502467174730" + } + ], + "init": { + "inputs": { + "b": "998877665544332211001234567890" + }, + "outputs": {} + }, + "narrative": "This is the multiplication co-processor. It requires input from the inversion engine." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "32895" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "457097" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "174557" + } + ], + "narrative": "This is the inversion engine. It requires inputs from both the primary inverter and the exponentiation module." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "48656c6c6f20576f726c6421" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "SGVsbG8gV29ybGQh" + } + ], + "init": { + "inputs": { + "hex": "48656c6c6f20576f726c6421" + }, + "outputs": {} + }, + "narrative": "A standalone text encoder machine with a vintage mechanical keyboard." + }, + { + "id": "calc_inv_mod_580a", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "3141592653589793238462643383" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "32895" + } + ], + "init": { + "inputs": { + "a": "3141592653589793238462643383", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "A primary inverter device, humming softly with raw computing power." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "32895" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "7733445566778899001122334455" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "524287" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "457097" + } + ], + "init": { + "inputs": { + "mod": "524287" + }, + "outputs": {} + }, + "narrative": "This is the exponentiation module. It requires inputs from both the base translator and the primary inverter." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "7733445566778899001122334455" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "32895" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "7733445566778899001122334455" + } + ], + "init": { + "inputs": { + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the base translator. It requires inputs from both the primary inverter and the encrypted dossier." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "7733445566778899001122334455" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "7733445566778899001122334455" + } + }, + "narrative": "A dusty encrypted dossier left behind on the cryptographer's desk." + } + ], + "edges": [ + { + "source_id": "terminal_1", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "container_3", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "slot_b" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "base64_encode", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "slot_a" + }, + { + "source_id": "calc_inv_mod_580a", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "calc_inv_mod_580a", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "base" + }, + { + "source_id": "calc_inv_mod_580a", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "item_1", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "s" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_6fd12d0b_narrative.json b/data/questions/10/narrative/skeleton_6fd12d0b_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..f9b5b24ef4c33e173bc27548a1b69ac57f0f8b90 --- /dev/null +++ b/data/questions/10/narrative/skeleton_6fd12d0b_narrative.json @@ -0,0 +1,792 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 12, + "win_node_id": "item_15", + "win_condition": { + "type": "item_content", + "node_id": "item_15", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_15", + "terminal_2", + "calc_modexp", + "calc_modexp_48e0", + "graph_shortest_path", + "terminal_1", + "graph_shortest_path_f35f", + "container_2", + "json_get" + ], + "by_node": { + "item_15": { + "node_name": "", + "node_type": "Item", + "template_id": "item_15", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Text_Generic", + "description": "Timezone text" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "calc_modexp_48e0": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "graph_shortest_path_f35f": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "container_2": { + "node_name": "", + "node_type": "Item", + "template_id": "container_2", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "JSON file ID" + }, + "jsonpath": { + "type": "Text_Generic", + "description": "JSONPath expression" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + } + } + }, + "initial_values": { + "item_15": { + "init_inputs": {}, + "init_outputs": { + "content": "Europe/London" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Awaiting final calculation inputs...", + "hex_result": "1a2b3c4d5e6f708192a3b4c5d6e7f809" + } + }, + "calc_modexp": { + "init_inputs": { + "base": "16", + "exp": "837465910293847561029384" + }, + "init_outputs": {} + }, + "calc_modexp_48e0": { + "init_inputs": { + "mod": "982451" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "topology_data.json", + "dst": "Node_X99" + }, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Router_7\", \"Node_X99\"]", + "cost": "10452" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System initialization sequence ready.", + "hex_output": "deadbeefcafebabe" + } + }, + "graph_shortest_path_f35f": { + "init_inputs": { + "file_id": "city_grid.json", + "src": "Station_Central", + "dst": "District_12" + }, + "init_outputs": { + "path": "[\"Station_Central\", \"North_Ave\", \"Bridge_Link\", \"Highway_4\", \"District_12\"]", + "cost": "4520" + } + }, + "container_2": { + "init_inputs": { + "fingerprint_input": "e5c4b3a29182736450f1e2d3c4b5a697" + }, + "init_outputs": {} + }, + "json_get": { + "init_inputs": { + "file_id": "inventory_log.json", + "jsonpath": "$.items[*].sku" + }, + "init_outputs": { + "values": "[\"SKU_1001\", \"SKU_1002\", \"SKU_1003\", \"SKU_1004\", \"SKU_1005\"]" + } + } + }, + "intro_narrative": "You are trapped aboard the drifting airship Aethelgard, once the pride of the brass skies. The captain's cabin is locked down, and the main boiler is losing pressure rapidly. Your only hope of survival is to restore the ship's intricate mechanical navigation systems and access the central helm before the ship plummets into the smog-filled abyss below. You must interact with the ship's clockwork mechanisms, steam-powered analytical engines, and pneumatic tubes to uncover the escape route. Find the captain's hidden records and secure your salvation.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "item_15", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_15", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Text_Generic", + "description": "Timezone text", + "value": "Europe/London" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "Europe/London" + } + }, + "narrative": "This is the Navigator's Logbook, a leather-bound journal containing the final secrets of the airship." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "4520" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "581920" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Awaiting final calculation inputs..." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f708192a3b4c5d6e7f809" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Awaiting final calculation inputs...", + "hex_result": "1a2b3c4d5e6f708192a3b4c5d6e7f809" + } + }, + "narrative": "This is the Captain's Final Console, the grand helm control station gleaming with gold and mahogany. It requires inputs from both the Primary Navigation Engine and the Master Output Modulator to initiate." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "16" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "837465910293847561029384" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "820952" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "581920" + } + ], + "init": { + "inputs": { + "base": "16", + "exp": "837465910293847561029384" + }, + "outputs": {} + }, + "narrative": "This is the Master Output Modulator, a delicate series of glass tubes and copper wiring used to balance aether flow. It needs the result from the Pressure Calibration Engine to stabilize its core." + }, + { + "id": "calc_modexp_48e0", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "4520" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "10452" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "982451" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "820952" + } + ], + "init": { + "inputs": { + "mod": "982451" + }, + "outputs": {} + }, + "narrative": "This is the Pressure Calibration Engine, a towering boiler-like calculation machine. It requires inputs from both the Primary Navigation Engine and the Secondary Navigation Engine to calculate safe atmospheric pressure limits." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "topology_data.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "System initialization sequence ready." + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_X99" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Router_7\", \"Node_X99\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "10452" + } + ], + "init": { + "inputs": { + "file_id": "topology_data.json", + "dst": "Node_X99" + }, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Router_7\", \"Node_X99\"]", + "cost": "10452" + } + }, + "narrative": "This is the Secondary Navigation Engine, a refined astrolabe projector used for localized mapping. It requires input from the Steam-powered Terminal to plot out specific aether routes." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"SKU_1001\", \"SKU_1002\", \"SKU_1003\", \"SKU_1004\", \"SKU_1005\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "4520" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System initialization sequence ready." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeefcafebabe" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System initialization sequence ready.", + "hex_output": "deadbeefcafebabe" + } + }, + "narrative": "This is the Steam-powered Terminal, a hissing analytical engine with heavy punch-card slots. It requires inputs from both the Primary Navigation Engine and the Brass Records Decoder to function." + }, + { + "id": "graph_shortest_path_f35f", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "city_grid.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Station_Central" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "District_12" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Station_Central\", \"North_Ave\", \"Bridge_Link\", \"Highway_4\", \"District_12\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "4520" + } + ], + "init": { + "inputs": { + "file_id": "city_grid.json", + "src": "Station_Central", + "dst": "District_12" + }, + "outputs": { + "path": "[\"Station_Central\", \"North_Ave\", \"Bridge_Link\", \"Highway_4\", \"District_12\"]", + "cost": "4520" + } + }, + "narrative": "This is the Primary Navigation Engine, a massive mechanical plotting table covered in brass dials and compasses." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "e5c4b3a29182736450f1e2d3c4b5a697" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "e5c4b3a29182736450f1e2d3c4b5a697" + }, + "outputs": {} + }, + "narrative": "This is the Geared Lockbox, a sturdy steel lockbox sealed with a complex clockwork mechanism and a biometric glass plate." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "inventory_log.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.items[*].sku" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"SKU_1001\", \"SKU_1002\", \"SKU_1003\", \"SKU_1004\", \"SKU_1005\"]" + } + ], + "init": { + "inputs": { + "file_id": "inventory_log.json", + "jsonpath": "$.items[*].sku" + }, + "outputs": { + "values": "[\"SKU_1001\", \"SKU_1002\", \"SKU_1003\", \"SKU_1004\", \"SKU_1005\"]" + } + }, + "narrative": "This is the Brass Records Decoder, a heavy brass decoding machine designed to parse intricate punched cards." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Dust-covered Chronometer, an old pocket watch ticking faintly, surrounded by scattered cogs." + } + ], + "edges": [ + { + "source_id": "terminal_2", + "target_id": "item_15", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num2" + }, + { + "source_id": "calc_modexp_48e0", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp_48e0", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "exp" + }, + { + "source_id": "terminal_1", + "target_id": "calc_modexp_48e0", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_1", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "src" + }, + { + "source_id": "graph_shortest_path_f35f", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "graph_shortest_path_f35f", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "graph_shortest_path_f35f", + "target_id": "calc_modexp_48e0", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "base" + }, + { + "source_id": "container_2", + "target_id": "graph_shortest_path_f35f", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "json_get", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "slot_a" + }, + { + "source_id": "item_16", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_72742e06_narrative.json b/data/questions/10/narrative/skeleton_72742e06_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..880202b519d4bbfcfeeefdb1815d5d3981e622f2 --- /dev/null +++ b/data/questions/10/narrative/skeleton_72742e06_narrative.json @@ -0,0 +1,623 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "calc_inv_mod", + "win_condition": { + "type": "tool_output", + "node_id": "calc_inv_mod", + "output_port": "inv", + "output_type": "Big_Int", + "description": "Execute BigInt Modular Inverse and get the output from port 'inv'" + }, + "source_init": { + "source_nodes": [ + "calc_bigmul", + "num_base_convert", + "checksum_crc32", + "calc_modexp", + "calc_gcd", + "calc_bigmul_edcd", + "container_4" + ], + "by_node": { + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "calc_bigmul_edcd": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "calc_bigmul": { + "init_inputs": { + "b": "284719205837461529304857261524" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "s": "918273645019283746556473829101" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "a1b2c3d4e5f60718293a4b5c6d7e8f01" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "mod": "987643" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "556677889900112233445566778899" + }, + "init_outputs": {} + }, + "calc_bigmul_edcd": { + "init_inputs": { + "a": "123456789012345678901234567890", + "b": "098765432109876543210987654321" + }, + "init_outputs": {} + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "sha256:d8e8fca2dc0f896fd7cb4cb0031ba249" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The midnight rain beats against the windows of your dimly lit detective agency. On your desk lies the 'Midnight Syndicate' case—a string of elaborate heists that has baffled the city police for months. They left behind a trail of cryptic devices, encrypted financial records, and locked safes. Your objective is clear: navigate through this web of digital forensics and physical evidence to unmask the mastermind behind the syndicate. Every piece of equipment in your office must be used in the right sequence to piece together the final truth.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "918273645019283746556473829101" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1014083367025515244014066259225602175312" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "499333302017547515432296159840786482341" + } + ], + "narrative": "This is the Master Case File. It requires inputs from both the Timeline Reconstructor and the Cipher Decoder to finally close the investigation." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": 3561696388 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "284719205837461529304857261524" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "1014083367025515244014066259225602175312" + } + ], + "init": { + "inputs": { + "b": "284719205837461529304857261524" + }, + "outputs": {} + }, + "narrative": "This is a Timeline Reconstructor. It requires input from the Trace Analyzer to calculate the exact sequence of events." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "918273645019283746556473829101" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 2661830363 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "918273645019283746556473829101" + } + ], + "init": { + "inputs": { + "s": "918273645019283746556473829101" + }, + "outputs": {} + }, + "narrative": "This is a Cipher Decoder. It requires inputs from both the Evidence Scanner and the Alibi Corroborator to translate the encrypted messages." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f01" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "9ea84edb" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2661830363 + } + ], + "init": { + "inputs": { + "hex": "a1b2c3d4e5f60718293a4b5c6d7e8f01" + }, + "outputs": {} + }, + "narrative": "An old but reliable Evidence Scanner used for forensic analysis." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1014083367025515244014066259225602175312" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "987643" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1" + } + ], + "init": { + "inputs": { + "mod": "987643" + }, + "outputs": {} + }, + "narrative": "This is an Alibi Corroborator. It requires inputs from both the Motive Evaluator and the Timeline Reconstructor to verify the suspect's whereabouts." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "556677889900112233445566778899" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "12193263113702179522618503273362292333223746380111126352690" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "556677889900112233445566778899" + }, + "outputs": {} + }, + "narrative": "This is a Motive Evaluator. It requires input from the Financial Records Archive to establish a concrete reason for the crime." + }, + { + "id": "checksum_crc32_ae8a", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "9ea84edb" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "d44b2c84" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3561696388 + } + ], + "narrative": "This is a Trace Analyzer. It requires input from the Evidence Scanner to process the residual clues." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A small leather-bound Hidden Ledger containing cryptic notes." + }, + { + "id": "calc_bigmul_edcd", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "123456789012345678901234567890" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "098765432109876543210987654321" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "12193263113702179522618503273362292333223746380111126352690" + } + ], + "init": { + "inputs": { + "a": "123456789012345678901234567890", + "b": "098765432109876543210987654321" + }, + "outputs": {} + }, + "narrative": "A secure Financial Records Archive containing offshore bank transactions." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "sha256:d8e8fca2dc0f896fd7cb4cb0031ba249" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "sha256:d8e8fca2dc0f896fd7cb4cb0031ba249" + }, + "outputs": {} + }, + "narrative": "A heavy steel Suspect's Locker belonging to the prime suspect." + } + ], + "edges": [ + { + "source_id": "calc_bigmul", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "calc_modexp", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "from_base" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "checksum_crc32_ae8a", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "checksum_crc32_ae8a", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_16", + "target_id": "calc_gcd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "exp" + }, + { + "source_id": "calc_bigmul_edcd", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "container_4", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_74939ff6_narrative.json b/data/questions/10/narrative/skeleton_74939ff6_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..ada1aaae5618a1ff454364ae6999ba55c6218d41 --- /dev/null +++ b/data/questions/10/narrative/skeleton_74939ff6_narrative.json @@ -0,0 +1,622 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 13, + "win_node_id": "item_4", + "win_condition": { + "type": "item_content", + "node_id": "item_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_4", + "terminal_2", + "num_base_convert", + "checksum_crc32", + "graph_shortest_path" + ], + "by_node": { + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "secure_payload_v1.zip" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal operation pending further inputs.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "math_token": "This item serves no functional purpose." + } + }, + "num_base_convert": { + "init_inputs": { + "from_base": "10" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "cafebabe12345678deadbeef87654321" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "topology_graph.json", + "src": "EntryPoint", + "dst": "TargetNode" + }, + "init_outputs": { + "path": "[\"EntryPoint\", \"Gateway_1\", \"Relay_Node\", \"TargetNode\"]", + "cost": "10" + } + } + }, + "intro_narrative": "Welcome to the Sanctum of the Archmage. You are an ambitious apprentice who has sneaked into your master's forbidden observatory while he is away on council business. Legend speaks of the elusive Ethereal Grimoire, a legendary spellbook that holds the secrets to weaving reality itself. It is hidden away in this very chamber, protected by layers of ancient magic, arcane mechanisms, and complex celestial puzzles.\n\nTo prove your worth and acquire the ultimate arcane knowledge, you must navigate the room's interconnected magical devices. The master has left behind various enchanted tools, runic tablets, and relics scattered across the observatory. You will need to carefully deduce how to power these artifacts by tracing the flow of arcane energy between them. Unravel the mysteries of the planetary leylines, align the stars, break the magical seals, and claim the grimoire before the Archmage returns. Your future as a powerful wizard depends entirely on your success tonight.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "secure_payload_v1.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "secure_payload_v1.zip" + } + }, + "narrative": "A spectral book known as the Ethereal Grimoire, bound in shimmering dragon scale." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An ancient parchment known as the Chronomancer's Scroll, sealed with temporal magic." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Sealed Reliquary, an ornate chest. It requires input from the Arcane Console to release its enchanted binds." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "4188393013" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "0" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal operation pending further inputs." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "This item serves no functional purpose." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal operation pending further inputs.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "math_token": "This item serves no functional purpose." + } + }, + "narrative": "This is the Arcane Console, a monolithic pedestal. It requires inputs from both the Transmutation Circle and the Astral Astrolabe to activate." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": 4188393013 + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "4188393013" + } + ], + "init": { + "inputs": { + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the Transmutation Circle etched into the floor. It requires inputs from both the Rune Verifier and the Leyline Map." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "cafebabe12345678deadbeef87654321" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "f9a5ce35" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 4188393013 + } + ], + "init": { + "inputs": { + "hex": "cafebabe12345678deadbeef87654321" + }, + "outputs": {} + }, + "narrative": "A glowing stone tablet known as the Rune Verifier, covered in ancient magical signatures." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": 4188393013 + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "4188393013" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "17542636031347218169" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "0" + } + ], + "narrative": "This is the Astral Astrolabe, a celestial device. It requires inputs from the Transmutation Circle, the Amplification Crystal, and the Rune Verifier." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "4188393013" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 4188393013 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "17542636031347218169" + } + ], + "narrative": "This is the Amplification Crystal, a floating gem. It requires inputs from both the Rune Verifier and the Transmutation Circle to channel energy." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A pulsing gemstone known as the Aetherial Shard, humming softly with dormant arcane energy." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "topology_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "EntryPoint" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "TargetNode" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"EntryPoint\", \"Gateway_1\", \"Relay_Node\", \"TargetNode\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "10" + } + ], + "init": { + "inputs": { + "file_id": "topology_graph.json", + "src": "EntryPoint", + "dst": "TargetNode" + }, + "outputs": { + "path": "[\"EntryPoint\", \"Gateway_1\", \"Relay_Node\", \"TargetNode\"]", + "cost": "10" + } + }, + "narrative": "A magical parchment known as the Leyline Map, depicting intricate global networks of mana." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "item_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num1" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "s" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num2" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "base" + }, + { + "source_id": "item_8", + "target_id": "calc_modexp", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "to_base" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_782eddd5_narrative.json b/data/questions/10/narrative/skeleton_782eddd5_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..4515393f1b7e4f625d5ed68c376d61a1cd52f55a --- /dev/null +++ b/data/questions/10/narrative/skeleton_782eddd5_narrative.json @@ -0,0 +1,541 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_6", + "win_condition": { + "type": "item_content", + "node_id": "item_6", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_6", + "graph_shortest_path", + "base64_encode", + "terminal_2" + ], + "by_node": { + "item_6": { + "node_name": "", + "node_type": "Item", + "template_id": "item_6", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_IV_AES", + "description": "AES IV" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + } + } + }, + "initial_values": { + "item_6": { + "init_inputs": {}, + "init_outputs": { + "content": "a1b2c3d4e5f67890123456789abcdef0" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_topology_v2.json", + "src": "Server_Node_Alpha" + }, + "init_outputs": { + "path": "[\"Server_Node_Alpha\", \"Router_Gateway_1\", \"Switch_Core_B\", \"Server_Node_Omega\"]", + "cost": "38475629384756102938" + } + }, + "base64_encode": { + "init_inputs": { + "hex": "deadbeefcafebabe1234567890abcdef" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "98273645102938475610", + "num2": "10293847561928374651" + }, + "init_outputs": { + "text_result": "Calculation intermediate state: verified.", + "hex_result": "1234567890abcdef1234567890abcdef", + "math_token": "This token is merely a placeholder." + } + } + }, + "intro_narrative": "You awaken with a start in a dimly lit Victorian study. Dust motes dance in the pale moonlight that streams through a single cracked windowpane, casting long, eerie shadows across the wooden floorboards. The heavy scent of aged parchment, oxidized copper, and dried ink hangs palpably in the cold air. The heavy oak door behind you is locked tight, leaving you trapped in this forgotten chamber of secrets. Your primary objective is clear: you must uncover the hidden contents secured deep within the heavy iron safe located in the corner of the room to secure your escape. \n\nHowever, this study is far from ordinary. Scattered across the mahogany desks and tucked away on sagging bookshelves are various peculiar contraptions, cryptographic devices, and locked compartments left behind by a paranoid inventor. To break the final seal, you will need to carefully observe your surroundings, piece together scattered clues, and master the enigmatic machinery that remains active. Every mechanism in this room was designed to test the wits of uninvited guests. Only by tracing the logic of the inventor's strange legacy can you hope to unlock the safe and find your way back to the outside world.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "item_6", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_6", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_IV_AES", + "description": "AES IV", + "value": "a1b2c3d4e5f67890123456789abcdef0" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "a1b2c3d4e5f67890123456789abcdef0" + } + }, + "narrative": "A heavy iron safe wrapped in chains. This must be where the final secrets are kept." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A small metallic compartment hidden seamlessly within the study's wall." + }, + { + "id": "item_8_e881", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An ornate wooden box with intricate carvings of mythical beasts." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_ad51252c14e971ad" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A mysterious locked glass capsule containing an unknown substance." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Ywhyqhwpekj ejpaniazewpa opwpa: ranebeaz." + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_ad51252c14e971ad" + } + ], + "narrative": "This is a 3D fabricator. It requires input from the antique cipher wheel to construct the piece." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Calculation intermediate state: verified." + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "38475629384756102938" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Ywhyqhwpekj ejpaniazewpa opwpa: ranebeaz." + } + ], + "narrative": "This is an antique cipher wheel. It requires inputs from both the mapping console and the brass terminal to decode the hidden message." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_v2.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Server_Node_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "3q2+78r+ur4SNFZ4kKvN7w==" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Server_Node_Alpha\", \"Router_Gateway_1\", \"Switch_Core_B\", \"Server_Node_Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "38475629384756102938" + } + ], + "init": { + "inputs": { + "file_id": "network_topology_v2.json", + "src": "Server_Node_Alpha" + }, + "outputs": { + "path": "[\"Server_Node_Alpha\", \"Router_Gateway_1\", \"Switch_Core_B\", \"Server_Node_Omega\"]", + "cost": "38475629384756102938" + } + }, + "narrative": "This is a mapping console. It requires input from the string encoder to calculate the correct path." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "deadbeefcafebabe1234567890abcdef" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "3q2+78r+ur4SNFZ4kKvN7w==" + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafebabe1234567890abcdef" + }, + "outputs": {} + }, + "narrative": "A dusty string encoder used for scrambling old messages. Its gears are still operational." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "98273645102938475610" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "10293847561928374651" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation intermediate state: verified." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1234567890abcdef1234567890abcdef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "This token is merely a placeholder." + } + ], + "init": { + "inputs": { + "num1": "98273645102938475610", + "num2": "10293847561928374651" + }, + "outputs": { + "text_result": "Calculation intermediate state: verified.", + "hex_result": "1234567890abcdef1234567890abcdef", + "math_token": "This token is merely a placeholder." + } + }, + "narrative": "A heavy brass terminal emitting a low mechanical hum, waiting for someone to operate it." + }, + { + "id": "item_16_d854", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A tarnished silver pocket watch. Its delicate hands are frozen entirely in time." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_6", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_e881", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_e881", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "matter_synthesizer", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "text_rotN", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "blueprint" + }, + { + "source_id": "graph_shortest_path", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "n" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "dst" + }, + { + "source_id": "terminal_2", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "item_16_d854", + "target_id": "terminal_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_79ae61d4_narrative.json b/data/questions/10/narrative/skeleton_79ae61d4_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..3bc86bf21d730427de53ac28728118f5c31ba580 --- /dev/null +++ b/data/questions/10/narrative/skeleton_79ae61d4_narrative.json @@ -0,0 +1,611 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 12, + "win_node_id": "calc_inv_mod", + "win_condition": { + "type": "tool_output", + "node_id": "calc_inv_mod", + "output_port": "inv", + "output_type": "Big_Int", + "description": "Execute BigInt Modular Inverse and get the output from port 'inv'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "zip_unzip_file", + "text_bidi_sanitize", + "calc_gcd", + "num_base_convert", + "item_3" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "text_bidi_sanitize": { + "node_name": "Bidi Sanitizer", + "node_type": "Tool", + "template_id": "text_bidi_sanitize", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "item_3": { + "node_name": "", + "node_type": "Item", + "template_id": "item_3", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String", + "description": "The hex code" + } + } + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Gateway_01\", \"Router_X\", \"Switch_42\", \"Node_Omega\"]", + "cost": "154829" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "archive_data_secure.zip" + }, + "init_outputs": { + "files": "topology_graph.json" + } + }, + "text_bidi_sanitize": { + "init_inputs": { + "text": "Reviewing account ‮ 37482 ‬ details for anomalies." + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "827364519283746510293847", + "b": "192837465564738291029384" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "from_base": "16", + "to_base": "10" + }, + "init_outputs": {} + }, + "item_3": { + "init_inputs": {}, + "init_outputs": { + "content": "4a5b6c7d8e9f0123456789ab" + } + } + }, + "intro_narrative": "Detective, you've finally breached the hidden command center of the infamous criminal syndicate known as 'The Architects'. The dimly lit room is filled with humming server racks, scattered case files, and hastily abandoned equipment from their recent string of heists. A flashing red light on the main screen indicates a critical problem: their entire network is programmed to self-destruct in exactly one hour, a failsafe that threatens to erase all crucial evidence forever. Your ultimate objective is to access the final decryption mainframe and safely download the syndicate's master ledger before the countdown reaches zero. To do this, you must carefully examine the digital breadcrumbs they left behind. Analyze the tools scattered across the desks, operate their locked terminals, and piece together the correct sequence of evidence to break through their intricate security layers. The clock is ticking, and the city is counting on your sharp investigative skills to uncover the truth and bring them to justice.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "154829" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "0" + } + ], + "narrative": "This is the final decryption mainframe. It requires inputs from the forensic supercomputer and the city map analyzer to execute the final crack." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "154829" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1" + } + ], + "narrative": "This is the forensic supercomputer. It requires inputs from the city map analyzer, the police database terminal, and the frequency converter." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "topology_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "SltsfY6fASNFZ4mr" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Reviewing account 37482 details for anomalies." + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Gateway_01\", \"Router_X\", \"Switch_42\", \"Node_Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "154829" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Gateway_01\", \"Router_X\", \"Switch_42\", \"Node_Omega\"]", + "cost": "154829" + } + }, + "narrative": "This is the city map analyzer. It requires inputs from the locked archive, the decoder module, and the suspect's journal." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_data_secure.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SltsfY6fASNFZ4mr" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "topology_graph.json" + } + ], + "init": { + "inputs": { + "zip_id": "archive_data_secure.zip" + }, + "outputs": { + "files": "topology_graph.json" + } + }, + "narrative": "This is the locked archive. It requires input from the decoder module to bypass the security encryption." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "4a5b6c7d8e9f0123456789ab" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "SltsfY6fASNFZ4mr" + } + ], + "narrative": "This is the decoder module. It requires input from the evidence tag to process the raw data strings." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Reviewing account ‮ 37482 ‬ details for anomalies." + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "Reviewing account 37482 details for anomalies." + } + ], + "init": { + "inputs": { + "text": "Reviewing account ‮ 37482 ‬ details for anomalies." + }, + "outputs": {} + }, + "narrative": "A suspect's journal left on the desk, filled with cryptic notes and erratic handwriting." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "827364519283746510293847" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "192837465564738291029384" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "827364519283746510293847", + "b": "192837465564738291029384" + }, + "outputs": {} + }, + "narrative": "The police database terminal used to cross-reference known criminal activity logs." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1" + } + ], + "init": { + "inputs": { + "from_base": "16", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the frequency converter. It requires input from the police database terminal to recalibrate." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A cryptic keycard dropped by one of the fleeing suspects during the chaotic raid." + }, + { + "id": "item_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String", + "description": "The hex code", + "value": "4a5b6c7d8e9f0123456789ab" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "4a5b6c7d8e9f0123456789ab" + } + }, + "narrative": "An evidence tag recovered from one of the recent crime scenes in the downtown area." + } + ], + "edges": [ + { + "source_id": "calc_modexp", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "src" + }, + { + "source_id": "base64_encode", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "password" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "exp" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "base" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "s" + }, + { + "source_id": "item_8", + "target_id": "calc_gcd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_3", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "content", + "target_port": "hex" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_7e8ad00e_narrative.json b/data/questions/10/narrative/skeleton_7e8ad00e_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..2b8a64dd867540f1e7140c50ed64f763e7ca83bc --- /dev/null +++ b/data/questions/10/narrative/skeleton_7e8ad00e_narrative.json @@ -0,0 +1,605 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "item_7", + "win_condition": { + "type": "item_content", + "node_id": "item_7", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_7", + "checksum_crc32", + "terminal_1", + "calc_gcd", + "terminal_1_a097", + "container_2" + ], + "by_node": { + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "terminal_1_a097": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "container_2": { + "node_name": "", + "node_type": "Item", + "template_id": "container_2", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "def get_secret_value():\n return 1337" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal initialized successfully. Awaiting command.", + "hex_output": "aabbccddeeff00112233445566778899", + "item_dispenser": "A useless dusty token found in the slot." + } + }, + "calc_gcd": { + "init_inputs": { + "b": "8475029384756102938475629384756102" + }, + "init_outputs": {} + }, + "terminal_1_a097": { + "init_inputs": { + "slot_a": "Override sequence alpha-97", + "slot_b": "1029384756293847561029384756293847" + }, + "init_outputs": { + "text_output": "System Alert: Unauthorized access attempt logged.", + "hex_output": "deadbeefcafebabedeadbeefcafebabe", + "item_dispenser": "A rusted key that fits no lock." + } + }, + "container_2": { + "init_inputs": { + "fingerprint_input": "0102030405060708090a0b0c0d0e0f10" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The year is 2142, decades after the Great Collapse decimated human civilization. The surface above is an inhospitable wasteland of ash, radioactive storms, and rusting monuments to a forgotten era. You are a lone scavenger, driven by legends of a sanctuary untouched by the fallout. Your journey has brought you deep underground to Sub-Station Echo, a heavily fortified and long-abandoned military bunker. The air inside is stale and tastes of copper, while the failing emergency lights cast long, flickering shadows against the cold steel walls. Rumors suggest this very bunker holds the final coordinates of a functional haven, locked away behind layers of archaic technology and intricate security systems. To uncover the truth and secure your future, you must thoroughly explore the facility, reactivate dormant terminals, and piece together the scattered fragments of data left behind by the last personnel. Your ultimate objective is to extract the definitive records hidden within. With time running out and your air supply steadily dwindling, your survival depends entirely on your ability to decipher the complex network of devices in this remnant of a fallen world.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "def get_secret_value():\n return 1337" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def get_secret_value():\n return 1337" + } + }, + "narrative": "A small, weathered survivor's diary, securely bound and holding crucial information." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A scratched and dusted encrypted drive, containing hidden fragments of data." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A cracked old datapad used by the former inhabitants for logging access codes." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "aabbccddeeff00112233445566778899" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the reinforced vault. It requires input from the mainframe terminal to authenticate its heavy locks." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": 429976841 + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the rusty lockbox. It requires input from the data scanner to release its mechanism." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "19a0ed09" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 429976841 + } + ], + "init": { + "inputs": { + "hex": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + "outputs": {} + }, + "narrative": "A portable data scanner designed to process raw codes and retrieve system checksums." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "System Alert: Unauthorized access attempt logged." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialized successfully. Awaiting command." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "aabbccddeeff00112233445566778899" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A useless dusty token found in the slot." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal initialized successfully. Awaiting command.", + "hex_output": "aabbccddeeff00112233445566778899", + "item_dispenser": "A useless dusty token found in the slot." + } + }, + "narrative": "This is the mainframe terminal. It requires inputs from both the signal processor and the auxiliary console before it can boot up." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 429976841 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "8475029384756102938475629384756102" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "8475029384756102938475629384756102" + }, + "outputs": {} + }, + "narrative": "This is the signal processor. It requires input from the data scanner to calibrate its frequencies." + }, + { + "id": "terminal_1_a097", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Override sequence alpha-97" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "1029384756293847561029384756293847" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System Alert: Unauthorized access attempt logged." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeefcafebabedeadbeefcafebabe" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A rusted key that fits no lock." + } + ], + "init": { + "inputs": { + "slot_a": "Override sequence alpha-97", + "slot_b": "1029384756293847561029384756293847" + }, + "outputs": { + "text_output": "System Alert: Unauthorized access attempt logged.", + "hex_output": "deadbeefcafebabedeadbeefcafebabe", + "item_dispenser": "A rusted key that fits no lock." + } + }, + "narrative": "A scavenged auxiliary console, heavily modified with wires and exposed circuits." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "0102030405060708090a0b0c0d0e0f10" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "0102030405060708090a0b0c0d0e0f10" + }, + "outputs": {} + }, + "narrative": "A specialized bio-storage unit, designed to keep fragile samples securely isolated." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "container_3", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_1", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "slot_b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "terminal_1_a097", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "slot_a" + }, + { + "source_id": "container_2", + "target_id": "terminal_1_a097", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_8088a580_narrative.json b/data/questions/10/narrative/skeleton_8088a580_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..529c0255268d07eabc6375a7cf29e634dcffeba5 --- /dev/null +++ b/data/questions/10/narrative/skeleton_8088a580_narrative.json @@ -0,0 +1,510 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_3", + "win_condition": { + "type": "item_content", + "node_id": "item_3", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_3", + "csv_query", + "item_11", + "zip_unzip_file", + "text_bidi_sanitize" + ], + "by_node": { + "item_3": { + "node_name": "", + "node_type": "Item", + "template_id": "item_3", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String", + "description": "The hex code" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": {}, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "text_bidi_sanitize": { + "node_name": "Bidi Sanitizer", + "node_type": "Tool", + "template_id": "text_bidi_sanitize", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_3": { + "init_inputs": {}, + "init_outputs": { + "content": "8f3e2a1b9c4d5e6f7a8b9c0d1e2f3a4b" + } + }, + "csv_query": { + "init_inputs": {}, + "init_outputs": { + "rows": "[{\"id\": 4501, \"material\": \"Composite A\", \"density\": 2.5}, {\"id\": 4502, \"material\": \"Alloy B\", \"density\": 7.8}, {\"id\": 4503, \"material\": \"Polymer C\", \"density\": 1.2}]" + } + }, + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def process_data(data):\n return [x for x in data if x > 0]\nprint(\"Processing initiated\")" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "project_blueprints_v4.zip", + "password": "S3cure#Password!2024" + }, + "init_outputs": { + "files": "inventory_data.csv" + } + }, + "text_bidi_sanitize": { + "init_inputs": { + "text": "id, material, density" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are Detective Vance, tasked with infiltrating the abandoned hideout of 'The Silhouette,' a notorious cyber-criminal who recently vanished. The room before you is a chaotic mix of old-school physical clues and high-tech digital forensic equipment. Your objective is clear: navigate this maze of encrypted archives, fragmented scripts, and physical evidence to secure the master access code left behind in the final evidence locker. Time is of the essence, as the local network is set to self-destruct in one hour. You must gather the scattered files, decode the syndicate's traces, and piece together the digital breadcrumbs to crack the case.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "item_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String", + "description": "The hex code", + "value": "8f3e2a1b9c4d5e6f7a8b9c0d1e2f3a4b" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "8f3e2a1b9c4d5e6f7a8b9c0d1e2f3a4b" + } + }, + "narrative": "The Final Evidence Locker. A heavily reinforced steel lockbox bolted to the floor. It looks like it holds the final piece of the puzzle." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_f2f42c8a6a2f9865" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Time-Stamped Ledger. A black leather ledger with peculiar timezone markings scattered across its pages." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "[{\"id\": 4501, \"material\": \"Composite A\", \"density\": 2.5}, {\"id\": 4502, \"material\": \"Alloy B\", \"density\": 7.8}, {\"id\": 4503, \"material\": \"Polymer C\", \"density\": 1.2}]" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_f2f42c8a6a2f9865" + } + ], + "narrative": "The Evidence Fabricator. A high-tech 3D printing device used by the syndicate. It requires input from The Suspect Database to function." + }, + { + "id": "item_16_b950", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Suspicious Watch. A broken pocket watch stopped at a very specific time." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "inventory_data.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "id, material, density" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "Processing initiated\n" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"id\": 4501, \"material\": \"Composite A\", \"density\": 2.5}, {\"id\": 4502, \"material\": \"Alloy B\", \"density\": 7.8}, {\"id\": 4503, \"material\": \"Polymer C\", \"density\": 1.2}]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "rows": "[{\"id\": 4501, \"material\": \"Composite A\", \"density\": 2.5}, {\"id\": 4502, \"material\": \"Alloy B\", \"density\": 7.8}, {\"id\": 4503, \"material\": \"Polymer C\", \"density\": 1.2}]" + } + }, + "narrative": "The Suspect Database. A central terminal for cross-referencing criminal records. It requires inputs from The Forensic Script Terminal, The Archive Decrypter, and The Corrupted Text Restorer." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def process_data(data):\n return [x for x in data if x > 0]\nprint(\"Processing initiated\")" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Processing initiated\n" + } + ], + "narrative": "The Forensic Script Terminal. A command-line computer used to run custom analysis tools. It requires input from A Smuggled Floppy Disk to execute the routines." + }, + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def process_data(data):\n return [x for x in data if x > 0]\nprint(\"Processing initiated\")" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def process_data(data):\n return [x for x in data if x > 0]\nprint(\"Processing initiated\")" + } + }, + "narrative": "A Smuggled Floppy Disk. An old, unlabeled magnetic storage disk found hidden under the floorboards." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "project_blueprints_v4.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "S3cure#Password!2024" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "inventory_data.csv" + } + ], + "init": { + "inputs": { + "zip_id": "project_blueprints_v4.zip", + "password": "S3cure#Password!2024" + }, + "outputs": { + "files": "inventory_data.csv" + } + }, + "narrative": "The Archive Decrypter. A specialized software tool designed to brute-force and extract locked digital archives." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "id, material, density" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "id, material, density" + } + ], + "init": { + "inputs": { + "text": "id, material, density" + }, + "outputs": {} + }, + "narrative": "The Corrupted Text Restorer. A digital filtering tool that cleans up scrambled and malicious text files." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Hidden Keycard. A magnetic access card with a faded corporate logo." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "item_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "matter_synthesizer", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "item_16_b950", + "target_id": "matter_synthesizer", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "csv_query", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "blueprint" + }, + { + "source_id": "code_py_exec", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "where" + }, + { + "source_id": "item_11", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "zip_unzip_file", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "select" + }, + { + "source_id": "item_8", + "target_id": "zip_unzip_file", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_8f3fdca2_narrative.json b/data/questions/10/narrative/skeleton_8f3fdca2_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..adff39b36dcae555ee192dbd853f93b867a45f61 --- /dev/null +++ b/data/questions/10/narrative/skeleton_8f3fdca2_narrative.json @@ -0,0 +1,649 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "item_12", + "win_condition": { + "type": "item_content", + "node_id": "item_12", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_12", + "zip_unzip_file", + "zip_unzip_file_1664", + "text_rotN", + "zip_unzip_file_8c0b", + "code_py_exec", + "terminal_2" + ], + "by_node": { + "item_12": { + "node_name": "", + "node_type": "Item", + "template_id": "item_12", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String", + "description": "The hex code" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_1664": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "n": { + "type": "Big_Int", + "description": "Shift N" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_8c0b": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "code_py_exec": { + "node_name": "Python Executor", + "node_type": "Tool", + "template_id": "code_py_exec", + "init_inputs": { + "code": { + "type": "Code_Python", + "description": "Python code" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + } + } + }, + "initial_values": { + "item_12": { + "init_inputs": {}, + "init_outputs": { + "content": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "data_payload.json" + } + }, + "zip_unzip_file_1664": { + "init_inputs": { + "password": "CorrectHorseBatteryStaple" + }, + "init_outputs": { + "files": "confidential_report.docx" + } + }, + "text_rotN": { + "init_inputs": { + "text": "Ciphertext to be rotated significantly.", + "n": "98765432109876543210123" + }, + "init_outputs": {} + }, + "zip_unzip_file_8c0b": { + "init_inputs": { + "zip_id": "project_archive.zip" + }, + "init_outputs": { + "files": "main_executable.bin" + } + }, + "code_py_exec": { + "init_inputs": { + "code": "import math\nprint(math.sqrt(144))" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "112233445566778899001122", + "num2": "998877665544332211009988" + }, + "init_outputs": { + "text_result": "Operation completed with status OK.", + "hex_result": "deadbeefcafebabe12345678" + } + } + }, + "intro_narrative": "You are an elite cyber-infiltrator who just breached the sub-basement server room of Vanguard Corp. Your mission is to recover a critical encrypted hex code that proves their illicit activities. The server room is a maze of nested archives, legacy encryption modules, and automated security protocols. The corporate security forces are already mobilizing, giving you only a narrow window to untangle the web of extractions and terminal operations. Crack the system, secure the hex data, and get out before the lockdown is complete.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "item_12", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_12", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String", + "description": "The hex code", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + }, + "narrative": "This is the target drive. A highly secure storage volume that holds the final hex code you need." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "data_payload.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Rxewtgitmi id qt gdipits hxvcxuxrpcian." + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip", + "value": "" + } + ], + "narrative": "This is the final extractor. It requires inputs from the secondary extractor and the cipher module to fully unseal the ultimate archive." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "confidential_report.docx" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "12.0\n" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "data_payload.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "data_payload.json" + } + }, + "narrative": "This is the secondary extractor. It requires inputs from both the intermediate extractor and the python terminal to process the archive payload." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the hidden keycard. A small plastic slab left behind by a careless technician." + }, + { + "id": "zip_unzip_file_1664", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "main_executable.bin" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "CorrectHorseBatteryStaple" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "confidential_report.docx" + } + ], + "init": { + "inputs": { + "password": "CorrectHorseBatteryStaple" + }, + "outputs": { + "files": "confidential_report.docx" + } + }, + "narrative": "This is the intermediate extractor. It requires input from the primary extractor to continue the decryption chain." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Ciphertext to be rotated significantly." + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "98765432109876543210123" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Rxewtgitmi id qt gdipits hxvcxuxrpcian." + } + ], + "init": { + "inputs": { + "text": "Ciphertext to be rotated significantly.", + "n": "98765432109876543210123" + }, + "outputs": {} + }, + "narrative": "This is the cipher module. A legacy rotation cipher tool integrated directly into the mainframe network." + }, + { + "id": "zip_unzip_file_8c0b", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "project_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "12.0\n" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "main_executable.bin" + } + ], + "init": { + "inputs": { + "zip_id": "project_archive.zip" + }, + "outputs": { + "files": "main_executable.bin" + } + }, + "narrative": "This is the primary extractor. It requires input from the python terminal to bypass its initial lock." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "import math\nprint(math.sqrt(144))" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "12.0\n" + } + ], + "init": { + "inputs": { + "code": "import math\nprint(math.sqrt(144))" + }, + "outputs": {} + }, + "narrative": "This is the python terminal. A raw command-line interface capable of executing standard scripts." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "112233445566778899001122" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "998877665544332211009988" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Operation completed with status OK." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeefcafebabe12345678" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "112233445566778899001122", + "num2": "998877665544332211009988" + }, + "outputs": { + "text_result": "Operation completed with status OK.", + "hex_result": "deadbeefcafebabe12345678" + } + }, + "narrative": "This is the math terminal. A specialized workstation used for calculating complex cryptographic integers." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the timezone chip. A microchip holding geographical temporal coordinates." + } + ], + "edges": [ + { + "source_id": "zip_unzip_item", + "target_id": "item_12", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_file", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_8", + "target_id": "zip_unzip_file", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zip_unzip_file_1664", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "text_rotN", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_8c0b", + "target_id": "zip_unzip_file_1664", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "code_py_exec", + "target_id": "zip_unzip_file_8c0b", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "password" + }, + { + "source_id": "code_py_exec", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "password" + }, + { + "source_id": "terminal_2", + "target_id": "zip_unzip_item", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "item_16", + "target_id": "terminal_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_91be9b45_narrative.json b/data/questions/10/narrative/skeleton_91be9b45_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..5fa1272aeffd93d36cd6c9e8c9735b4dc231dbe5 --- /dev/null +++ b/data/questions/10/narrative/skeleton_91be9b45_narrative.json @@ -0,0 +1,689 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "item_9", + "win_condition": { + "type": "item_content", + "node_id": "item_9", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_9", + "terminal_2", + "num_base_convert", + "checksum_crc32", + "num_base_convert_84c6", + "zip_unzip_item", + "calc_bigmul", + "calc_modexp" + ], + "by_node": { + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "num_base_convert_84c6": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "config_initialization_v1.json" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal initialization pending...", + "hex_result": "48656c6c6f576f726c64" + } + }, + "num_base_convert": { + "init_inputs": { + "s": "847362519283746510293847", + "from_base": "10" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "init_outputs": {} + }, + "num_base_convert_84c6": { + "init_inputs": { + "s": "102938475665748392019283" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "secure_archive_data.zip", + "password": "StrongPassword!2024" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "b": "918273645056473829101122" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "2", + "exp": "334455667788990011223344", + "mod": "492873" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The neon-drenched depths of Sector 7 hold many secrets, but none as valuable as the lost corporate ledger of OmniCorp. As a rogue netrunner, you've infiltrated their abandoned subterranean data vault. The air is thick with the hum of decaying servers and the faint, erratic glow of holographic interfaces. Your objective is clear: breach the central mainframe and extract the secure datacache before the automated security systems reboot and lock you inside forever. To succeed, you must navigate a tangled web of obsolete cyber-tools, routing data streams through various archaic decryption modules to finally crack the system. Time is running out, and the ice is getting thicker.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "config_initialization_v1.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "config_initialization_v1.json" + } + }, + "narrative": "A physical, heavily encrypted datacache containing the OmniCorp ledger. This is the ultimate prize you came for." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "847362519283746510293847" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "102938475665748392019283" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal initialization pending..." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "48656c6c6f576f726c64" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal initialization pending...", + "hex_result": "48656c6c6f576f726c64" + } + }, + "narrative": "The central mainframe access terminal. It is the core of the vault's security and requires inputs from both the inversion protocol and the signal decrypter to initiate the final override." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "847362519283746510293847" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "94525689266143907475113391080728761742380935526" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "847362519283746510293847" + } + ], + "narrative": "An advanced inversion protocol device wrapped in exposed wires. It requires inputs from both the format translator and the amplification matrix to stabilize." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "847362519283746510293847" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 1701871101 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "847362519283746510293847" + } + ], + "init": { + "inputs": { + "s": "847362519283746510293847", + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "A dusty format translator module. It requires input from the primary integrity scanner to function properly." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "65707dfd" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1701871101 + } + ], + "init": { + "inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "outputs": {} + }, + "narrative": "A primary integrity scanner used to verify corrupted corporate files. The holographic display flickers softly in the dark." + }, + { + "id": "num_base_convert_84c6", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "102938475665748392019283" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": 550517095 + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "437707" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "102938475665748392019283" + } + ], + "init": { + "inputs": { + "s": "102938475665748392019283" + }, + "outputs": {} + }, + "narrative": "A heavy-duty signal decrypter console. It requires inputs from both the secondary integrity scanner and the quantum core processor to synthesize the datastream." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_archive_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "StrongPassword!2024" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "secure_archive_data.zip", + "password": "StrongPassword!2024" + }, + "outputs": {} + }, + "narrative": "An old data extraction drive left behind by previous netrunners. It hums with residual power." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "102938475665748392019283" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "918273645056473829101122" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "94525689266143907475113391080728761742380935526" + } + ], + "init": { + "inputs": { + "b": "918273645056473829101122" + }, + "outputs": {} + }, + "narrative": "A glowing amplification matrix designed to boost weak neural links. It requires input from the signal decrypter to amplify the network signal." + }, + { + "id": "checksum_crc32_7f9d", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "65707dfd" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "20d03967" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 550517095 + } + ], + "narrative": "A secondary integrity scanner mounted on the server rack. It requires input from the primary integrity scanner to begin its deep verification scan." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "2" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "334455667788990011223344" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "492873" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "437707" + } + ], + "init": { + "inputs": { + "base": "2", + "exp": "334455667788990011223344", + "mod": "492873" + }, + "outputs": {} + }, + "narrative": "An experimental quantum core processor encased in cooling liquid. It pulses with a strange, rhythmic energy." + } + ], + "edges": [ + { + "source_id": "terminal_2", + "target_id": "item_9", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "container" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num1" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "num_base_convert_84c6", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "zip_unzip_item", + "target_id": "terminal_2", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32_7f9d", + "target_id": "num_base_convert_84c6", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "from_base" + }, + { + "source_id": "checksum_crc32", + "target_id": "checksum_crc32_7f9d", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "num_base_convert_84c6", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "calc_modexp", + "target_id": "num_base_convert_84c6", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "to_base" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_9a97c16c_narrative.json b/data/questions/10/narrative/skeleton_9a97c16c_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..2a3e6d4cd16827400c919425987f2ce5b5e1c117 --- /dev/null +++ b/data/questions/10/narrative/skeleton_9a97c16c_narrative.json @@ -0,0 +1,499 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "container_4", + "win_condition": { + "type": "item_content", + "node_id": "container_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_4", + "item_7", + "terminal_1", + "checksum_crc32" + ], + "by_node": { + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_4": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "MCMXCVII_MMXXIV_MMXXVI_VENI_VIDI_VICI" + } + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "print(49927398716)" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal initialized. Waiting for upstream signal inputs.", + "hex_output": "112233445566778899aabbccddeeff00" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeef1234567890abcdef09876543" + }, + "init_outputs": {} + } + }, + "intro_narrative": "Welcome to the Archmage's Sanctum, a hidden subterranean chamber where ancient magic and intricate logic intricately intertwine. The legendary Archmage has sealed his most prized and powerful possession within the ultimate enchanted vessel, known throughout the realm as the Dragon Reliquary. To obtain what lies hidden inside, you must decipher cryptic ancient scripts, channel raw arcane power, and prove your undeniable worth to the various enchanted mechanisms scattered throughout the shadowy room. The air here crackles with residual energy, but time is rapidly running out. The sanctum's protective wards have begun to collapse, and soon the chamber will be sealed forever beneath the earth. Will you be able to unravel the deep mysteries, master the spellcraft required, and claim the ultimate prize before the final collapse? Your journey begins now in this room of wonders.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "false" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "MCMXCVII_MMXXIV_MMXXVI_VENI_VIDI_VICI" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "MCMXCVII_MMXXIV_MMXXVI_VENI_VIDI_VICI" + } + }, + "narrative": "This is the Dragon Reliquary. It requires input from the Truth Mirror to unlock its ancient seal." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "49927398716\n" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "This is the Truth Mirror. It requires input from the Spell Weaver to reveal hidden validities." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A heavy Golden Key artifact radiating a comforting warmth in the cold room." + }, + { + "id": "container_4_fcdf", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "49927398716\n" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Silver Chest. It requires input from the Spell Weaver to release its magical bindings." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print(49927398716)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "49927398716\n" + } + ], + "narrative": "This is the Spell Weaver, a magical device. It requires input from the Ancient Scroll to cast its magic." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "print(49927398716)" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "print(49927398716)" + } + }, + "narrative": "An old parchment glowing with faint arcane energy. The Ancient Scroll hums with raw potential." + }, + { + "id": "item_16_6710", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A translucent Sealed Crystal humming with trapped magic." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "false" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 2350157716 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialized. Waiting for upstream signal inputs." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "112233445566778899aabbccddeeff00" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal initialized. Waiting for upstream signal inputs.", + "hex_output": "112233445566778899aabbccddeeff00" + } + }, + "narrative": "This is the Altar of Judgement. It requires inputs from both the Truth Mirror and the Rune Stone to awaken." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeef1234567890abcdef09876543" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "8c148f94" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2350157716 + } + ], + "init": { + "inputs": { + "hex": "deadbeef1234567890abcdef09876543" + }, + "outputs": {} + }, + "narrative": "A heavy stone carved with mathematical runes. The Rune Stone waits for a seeker." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A small, flawlessly cut Mystic Gem pulsing with a soft violet light." + } + ], + "edges": [ + { + "source_id": "luhn_check", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_16", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "container_4_fcdf", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "code_py_exec", + "target_id": "container_4_fcdf", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "fingerprint_input" + }, + { + "source_id": "code_py_exec", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "number" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "item_16_6710", + "target_id": "container_4_fcdf", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_1", + "target_id": "item_16_6710", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "luhn_check", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "slot_a" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "item_8", + "target_id": "terminal_1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_9b06dad1_narrative.json b/data/questions/10/narrative/skeleton_9b06dad1_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..70e6c96100839a4d345c051735e78e0b501ce610 --- /dev/null +++ b/data/questions/10/narrative/skeleton_9b06dad1_narrative.json @@ -0,0 +1,620 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "container_4", + "win_condition": { + "type": "item_content", + "node_id": "container_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_4", + "terminal_2", + "calc_modexp", + "calc_modexp_1dc1", + "graph_shortest_path" + ], + "by_node": { + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "calc_modexp_1dc1": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "container_4": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "5f2a9c8e4b1d7e3a_ET_IN_ARKADIA_EGO" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "82736451928374651029", + "num2": "10928374651029384756" + }, + "init_outputs": { + "text_result": "System check complete. Waiting for authorization.", + "hex_result": "4a2b3c4d5e6f7890123456789abcdef0" + } + }, + "calc_modexp": { + "init_inputs": { + "base": "38475610293847561029", + "exp": "56473829101928374651" + }, + "init_outputs": {} + }, + "calc_modexp_1dc1": { + "init_inputs": { + "base": "91827364501928374651", + "exp": "28374651029384756102", + "mod": "492817" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_map.json", + "src": "Gateway_Node", + "dst": "Core_Server" + }, + "init_outputs": { + "path": "[\"Gateway_Node\", \"Router_7\", \"Switch_42\", \"Firewall_Inner\", \"Core_Server\"]", + "cost": "10542" + } + } + }, + "intro_narrative": "You have successfully infiltrated the subterranean server farm of OMNICORP. The silent alarm will trigger in exactly sixty minutes. Your objective is to bypass their experimental security grid and extract the highly classified prototype blueprints hidden within their master server. The air is cold, humming with the sound of server racks and blinking indicator lights. You must navigate their isolated network, uncover cryptographic tools, and forge the digital keys needed to access the core before the lockdown initiates.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "System check complete. Waiting for authorization." + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "5f2a9c8e4b1d7e3a_ET_IN_ARKADIA_EGO" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "5f2a9c8e4b1d7e3a_ET_IN_ARKADIA_EGO" + } + }, + "narrative": "The master server holding the ultimate prize. It requires input from the access terminal to unlock." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A digital security token emitting a faint synchronization signal." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "82736451928374651029" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "10928374651029384756" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "System check complete. Waiting for authorization." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "4a2b3c4d5e6f7890123456789abcdef0" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "82736451928374651029", + "num2": "10928374651029384756" + }, + "outputs": { + "text_result": "System check complete. Waiting for authorization.", + "hex_result": "4a2b3c4d5e6f7890123456789abcdef0" + } + }, + "narrative": "A sleek access terminal with a glowing command line interface." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "6243" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A heavy biometric vault. It requires input from the cryptographic processor to authenticate." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "6243" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "58653" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "6243" + } + ], + "narrative": "A cryptographic processor. It requires inputs from both the secondary key generator and the primary key generator." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A refined data packet containing classified user credentials." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "38475610293847561029" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "56473829101928374651" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "10542" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "6243" + } + ], + "init": { + "inputs": { + "base": "38475610293847561029", + "exp": "56473829101928374651" + }, + "outputs": {} + }, + "narrative": "A secondary key generator. It requires input from the network tracer." + }, + { + "id": "item_8_641f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A raw data packet hidden deep within the initial system logs." + }, + { + "id": "calc_modexp_1dc1", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "91827364501928374651" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "28374651029384756102" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "492817" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "58653" + } + ], + "init": { + "inputs": { + "base": "91827364501928374651", + "exp": "28374651029384756102", + "mod": "492817" + }, + "outputs": {} + }, + "narrative": "A primary key generator used by the corporate security team." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_map.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Gateway_Node" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Core_Server" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Gateway_Node\", \"Router_7\", \"Switch_42\", \"Firewall_Inner\", \"Core_Server\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "10542" + } + ], + "init": { + "inputs": { + "file_id": "network_map.json", + "src": "Gateway_Node", + "dst": "Core_Server" + }, + "outputs": { + "path": "[\"Gateway_Node\", \"Router_7\", \"Switch_42\", \"Firewall_Inner\", \"Core_Server\"]", + "cost": "10542" + } + }, + "narrative": "A sophisticated network tracer used for tracking data packet routes." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "container_3", + "target_id": "terminal_2", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "calc_inv_mod", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "item_8_641f", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp_1dc1", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_9b98ca62_narrative.json b/data/questions/10/narrative/skeleton_9b98ca62_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..b8836d0c25c3df4d6cd7c36d66814cd65433a1bd --- /dev/null +++ b/data/questions/10/narrative/skeleton_9b98ca62_narrative.json @@ -0,0 +1,582 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 12, + "win_node_id": "crypto_rsa_decrypt_hex", + "win_condition": { + "type": "tool_output", + "node_id": "crypto_rsa_decrypt_hex", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute RSA Decrypt and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "crypto_rsa_decrypt_hex", + "csv_query", + "hmac_sha256", + "calc_gcd_7a5a" + ], + "by_node": { + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "n": { + "type": "Big_Int", + "description": "Modulus n" + } + }, + "init_outputs": {} + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + }, + "select": { + "type": "Text_Generic", + "description": "Columns to select" + }, + "where": { + "type": "Text_Generic", + "description": "Where clause" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "hex_key": { + "type": "Hex_String", + "description": "Hex key" + }, + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + }, + "calc_gcd_7a5a": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "n": "928374651029384756102938475612" + }, + "init_outputs": {} + }, + "csv_query": { + "init_inputs": { + "file_id": "customer_transactions_2024.csv", + "select": "transaction_id, user, amount", + "where": "amount > 1000 AND status = 'completed'" + }, + "init_outputs": { + "rows": "[{\"transaction_id\": \"TX9823\", \"user\": \"alice_k\", \"amount\": 1200}, {\"transaction_id\": \"TX9941\", \"user\": \"bob_m\", \"amount\": 3400}, {\"transaction_id\": \"TX9982\", \"user\": \"charlie_d\", \"amount\": 1550}]" + } + }, + "hmac_sha256": { + "init_inputs": { + "hex_key": "4a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "text": "Authorize transfer of funds ID 8374" + }, + "init_outputs": {} + }, + "calc_gcd_7a5a": { + "init_inputs": { + "a": "485726381947582647382910384756", + "b": "293847561029384756102938475610" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are a rogue cyber-operative who has just infiltrated the subterranean server farm of 'OmniCorp', a shadowy tech conglomerate. They are about to launch a devastating global surveillance virus. The virus payload is locked behind a cascading encryption firewall. Alarms are blaring, and the lockdown protocols have been initiated. You have only minutes to navigate their complex security network, trace the data flows, and decrypt the master kill-switch before you are trapped forever and the virus goes live. Your handler 'Ghost' has provided you with remote access to some of the facility's initial nodes, but the rest is up to you. You must trace the data through various security checkpoints, linking terminals and processors to break the ultimate encryption.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "51594894e9b8d54054e5ae17e85baf25ec06223bd696ce519778c5a54b40d967" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "928374651029384756102938475612" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "1762273424" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u00074R?U-" + } + ], + "init": { + "inputs": { + "n": "928374651029384756102938475612" + }, + "outputs": {} + }, + "narrative": "This is the Master Decryption Interface. It requires inputs from both the Data Format Converter and the Secure Authenticator to finally breach the system's firewall." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": 1762273424 + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "1207457333" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1762273424" + } + ], + "narrative": "This is the Data Format Converter. It requires inputs from the Logic Synchronization Unit, the Quantum Inversion Core, and the Primary Integrity Checker to translate the encrypted signals." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "2" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "1207457333" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the Logic Synchronization Unit. It requires inputs from both the Quantum Inversion Core and the Biometric Math Co-processor to synchronize the algorithms." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 3350192045 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 1762273424 + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1207457333" + } + ], + "narrative": "This is the Quantum Inversion Core. It requires inputs from both the Primary Integrity Checker and the Secondary Integrity Checker to compute the modular shift." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "d856112f6b2ed06a37d67a3c97df7d49" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "690a2890" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1762273424 + } + ], + "narrative": "This is the Primary Integrity Checker. It requires input from the Signature Generator Module to scan the generated signature." + }, + { + "id": "checksum_crc32_2119", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "690a2890" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "c7afdfad" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3350192045 + } + ], + "narrative": "This is the Secondary Integrity Checker. It requires input from the Primary Integrity Checker to perform a deeper verification." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "[{\"transaction_id\": \"TX9823\", \"user\": \"alice_k\", \"amount\": 1200}, {\"transaction_id\": \"TX9941\", \"user\": \"bob_m\", \"amount\": 3400}, {\"transaction_id\": \"TX9982\", \"user\": \"charlie_d\", \"amount\": 1550}]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "d856112f6b2ed06a37d67a3c97df7d49" + } + ], + "narrative": "This is the Signature Generator Module. It requires input from the Mainframe Database Terminal to process the retrieved records." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "customer_transactions_2024.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "transaction_id, user, amount" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "amount > 1000 AND status = 'completed'" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"transaction_id\": \"TX9823\", \"user\": \"alice_k\", \"amount\": 1200}, {\"transaction_id\": \"TX9941\", \"user\": \"bob_m\", \"amount\": 3400}, {\"transaction_id\": \"TX9982\", \"user\": \"charlie_d\", \"amount\": 1550}]" + } + ], + "init": { + "inputs": { + "file_id": "customer_transactions_2024.csv", + "select": "transaction_id, user, amount", + "where": "amount > 1000 AND status = 'completed'" + }, + "outputs": { + "rows": "[{\"transaction_id\": \"TX9823\", \"user\": \"alice_k\", \"amount\": 1200}, {\"transaction_id\": \"TX9941\", \"user\": \"bob_m\", \"amount\": 3400}, {\"transaction_id\": \"TX9982\", \"user\": \"charlie_d\", \"amount\": 1550}]" + } + }, + "narrative": "An old but heavily fortified Mainframe Database Terminal." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "4a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Authorize transfer of funds ID 8374" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "51594894e9b8d54054e5ae17e85baf25ec06223bd696ce519778c5a54b40d967" + } + ], + "init": { + "inputs": { + "hex_key": "4a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "text": "Authorize transfer of funds ID 8374" + }, + "outputs": {} + }, + "narrative": "A sleek and standalone Secure Authenticator device." + }, + { + "id": "calc_gcd_7a5a", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "485726381947582647382910384756" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "293847561029384756102938475610" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "2" + } + ], + "init": { + "inputs": { + "a": "485726381947582647382910384756", + "b": "293847561029384756102938475610" + }, + "outputs": {} + }, + "narrative": "A specialized Biometric Math Co-processor for secure calculations." + } + ], + "edges": [ + { + "source_id": "num_base_convert", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "d" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "s" + }, + { + "source_id": "checksum_crc32_2119", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "checksum_crc32_2119", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "hash_md5", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "csv_query", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "text" + }, + { + "source_id": "hmac_sha256", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "calc_gcd_7a5a", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_a4248b22_narrative.json b/data/questions/10/narrative/skeleton_a4248b22_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..fcb98d79ecbf63430a16b5f6c7c0d62f195da963 --- /dev/null +++ b/data/questions/10/narrative/skeleton_a4248b22_narrative.json @@ -0,0 +1,717 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "regex_search", + "win_condition": { + "type": "tool_output", + "node_id": "regex_search", + "output_port": "matches", + "output_type": "Text_Generic", + "description": "Execute Regex Search and get the output from port 'matches'" + }, + "source_init": { + "source_nodes": [ + "regex_search", + "terminal_1", + "zip_unzip_file", + "json_get", + "calc_bigmul", + "terminal_1_ad07", + "graph_shortest_path" + ], + "by_node": { + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": {}, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "JSON file ID" + }, + "jsonpath": { + "type": "Text_Generic", + "description": "JSONPath expression" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "terminal_1_ad07": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "regex_search": { + "init_inputs": {}, + "init_outputs": { + "matches": "[\"found_pattern_001\", \"found_pattern_002\", \"found_pattern_003\", \"found_pattern_004\", \"found_pattern_005\"]" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System initialization sequence complete. Ready for input.", + "hex_output": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "item_dispenser": "Standard Item Dispenser Unit Alpha" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_archive_data_2024.zip" + }, + "init_outputs": { + "files": "extracted_payload_config.json" + } + }, + "json_get": { + "init_inputs": { + "file_id": "user_records_database_v9.json", + "jsonpath": "$.store.book[*].author" + }, + "init_outputs": { + "values": "[\"Nigel Rees\", \"Evelyn Waugh\", \"Herman Melville\", \"J. R. R. Tolkien\"]" + } + }, + "calc_bigmul": { + "init_inputs": { + "b": "847362519405837261509483726150" + }, + "init_outputs": {} + }, + "terminal_1_ad07": { + "init_inputs": { + "slot_a": "Manual_Override_Sequence_Initiated", + "slot_b": "594837261502938475610293847561" + }, + "init_outputs": { + "text_output": "SuperSecretPassword123!", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "item_dispenser": "Advanced Item Dispenser Unit Beta" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "city_traffic_network_graph.json", + "dst": "Sector_7_Terminal" + }, + "init_outputs": { + "path": "[\"Central_Hub\", \"Gateway_North\", \"Route_66\", \"Check_Point_Alpha\", \"Sector_7_Terminal\"]", + "cost": "12548" + } + } + }, + "intro_narrative": "You wake up in the dimly lit office of a renowned but missing private investigator. Dust motes dance in the pale light filtering through the blinds. The detective was close to solving a massive conspiracy, and the agency believes he left his final findings hidden within this very room. Time is running out before the perpetrators realize you are here. Your objective is to piece together his scattered tools, uncover the hidden evidence, and expose the truth before the shadowy syndicate returns to silence you for good.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "System initialization sequence complete. Ready for input." + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "extracted_payload_config.json" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "[\"Nigel Rees\", \"Evelyn Waugh\", \"Herman Melville\", \"J. R. R. Tolkien\"]" + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"found_pattern_001\", \"found_pattern_002\", \"found_pattern_003\", \"found_pattern_004\", \"found_pattern_005\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "matches": "[\"found_pattern_001\", \"found_pattern_002\", \"found_pattern_003\", \"found_pattern_004\", \"found_pattern_005\"]" + } + }, + "narrative": "A high-tech Evidence Scanner designed to find hidden anomalies. It requires inputs from the Mainframe Terminal, the Locked Briefcase, and the Archives Computer to function." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"Nigel Rees\", \"Evelyn Waugh\", \"Herman Melville\", \"J. R. R. Tolkien\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "10632704893504445957421001795730200" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System initialization sequence complete. Ready for input." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard Item Dispenser Unit Alpha" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System initialization sequence complete. Ready for input.", + "hex_output": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "item_dispenser": "Standard Item Dispenser Unit Alpha" + } + }, + "narrative": "The central Mainframe Terminal sits on a dusty desk. It requires inputs from both the Archives Computer and the Mechanical Calculator to process the data." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_archive_data_2024.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretPassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_payload_config.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_archive_data_2024.zip" + }, + "outputs": { + "files": "extracted_payload_config.json" + } + }, + "narrative": "A Locked Briefcase holding classified documents. It requires input from the Security Keypad to unlock." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "user_records_database_v9.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.store.book[*].author" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"Nigel Rees\", \"Evelyn Waugh\", \"Herman Melville\", \"J. R. R. Tolkien\"]" + } + ], + "init": { + "inputs": { + "file_id": "user_records_database_v9.json", + "jsonpath": "$.store.book[*].author" + }, + "outputs": { + "values": "[\"Nigel Rees\", \"Evelyn Waugh\", \"Herman Melville\", \"J. R. R. Tolkien\"]" + } + }, + "narrative": "An old Archives Computer containing digitized records from decades ago." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Strange Lens that seems capable of revealing hidden ink or invisible markings." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An Antique Compass with strange engravings on the back." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "12548" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "847362519405837261509483726150" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "10632704893504445957421001795730200" + } + ], + "init": { + "inputs": { + "b": "847362519405837261509483726150" + }, + "outputs": {} + }, + "narrative": "A heavy Mechanical Calculator with intricate brass gears. It requires input from the City Map Board to compute the final coordinates." + }, + { + "id": "terminal_1_ad07", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Manual_Override_Sequence_Initiated" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "594837261502938475610293847561" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "SuperSecretPassword123!" + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Advanced Item Dispenser Unit Beta" + } + ], + "init": { + "inputs": { + "slot_a": "Manual_Override_Sequence_Initiated", + "slot_b": "594837261502938475610293847561" + }, + "outputs": { + "text_output": "SuperSecretPassword123!", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "item_dispenser": "Advanced Item Dispenser Unit Beta" + } + }, + "narrative": "A standard Security Keypad securely attached to the wall next to a reinforced door." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "city_traffic_network_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[\"Nigel Rees\", \"Evelyn Waugh\", \"Herman Melville\", \"J. R. R. Tolkien\"]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Sector_7_Terminal" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Central_Hub\", \"Gateway_North\", \"Route_66\", \"Check_Point_Alpha\", \"Sector_7_Terminal\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "12548" + } + ], + "init": { + "inputs": { + "file_id": "city_traffic_network_graph.json", + "dst": "Sector_7_Terminal" + }, + "outputs": { + "path": "[\"Central_Hub\", \"Gateway_North\", \"Route_66\", \"Check_Point_Alpha\", \"Sector_7_Terminal\"]", + "cost": "12548" + } + }, + "narrative": "A City Map Board covered in red strings and thumbtacks. It requires input from the Archives Computer to determine the correct route." + }, + { + "id": "item_16_54c0", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Dusty Pocket Watch showing multiple different timezones." + } + ], + "edges": [ + { + "source_id": "terminal_1", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "pattern" + }, + { + "source_id": "zip_unzip_file", + "target_id": "regex_search", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "json_get", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "text" + }, + { + "source_id": "item_8", + "target_id": "json_get", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "json_get", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "slot_a" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "slot_b" + }, + { + "source_id": "terminal_1_ad07", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "password" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "json_get", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "src" + }, + { + "source_id": "item_16_54c0", + "target_id": "graph_shortest_path", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_ac5cd29c_narrative.json b/data/questions/10/narrative/skeleton_ac5cd29c_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..d65fd554968994d952ec324dfc8fc6a5887802a6 --- /dev/null +++ b/data/questions/10/narrative/skeleton_ac5cd29c_narrative.json @@ -0,0 +1,511 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_8", + "win_condition": { + "type": "item_content", + "node_id": "item_8", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_8", + "terminal_1", + "calc_gcd", + "num_base_convert" + ], + "by_node": { + "item_8": { + "node_name": "", + "node_type": "Item", + "template_id": "item_8", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hidden_Item", + "description": "The integer" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_8": { + "init_inputs": {}, + "init_outputs": { + "content": "437481758470817328469123657125" + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Standard input for terminal verification." + }, + "init_outputs": { + "text_output": "Operation complete. Terminal is ready for input.", + "hex_output": "deadbeef12345678deadbeef12345678", + "item_dispenser": "A dusty box containing absolutely nothing of value." + } + }, + "calc_gcd": { + "init_inputs": { + "b": "4857201938475629103847" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "s": "2938475610293847561029", + "from_base": "10", + "to_base": "10" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The sudden disappearance of private investigator Arthur Black has left the city's underbelly in chaos. You've broken into his abandoned office, a room thick with dust and the smell of stale tobacco. Arthur was on the verge of cracking a massive case involving a local smuggling ring, but his crucial findings are locked away behind a series of cryptic devices and hidden safes. The clock is ticking—the same dangerous people who made Arthur disappear are likely coming to destroy his files. Your objective is to follow his trail of breadcrumbs, piece together his scattered evidence, and recover his final, damning document before the truth is lost forever.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer", + "value": "437481758470817328469123657125" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "437481758470817328469123657125" + } + }, + "narrative": "The final Confession Letter, sealed with a wax stamp. It holds the ultimate truth of the mystery." + }, + { + "id": "item_8_9e9c", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavily redacted police report detailing the initial raid on the warehouse." + }, + { + "id": "item_8_e7fd", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A hasty witness statement scribbled on the back of a greasy diner napkin." + }, + { + "id": "item_8_4200", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A blurry photograph of a shadowy figure standing near the docks at midnight." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A torn travel itinerary that lists flights across multiple timezones." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Operation complete. Terminal is ready for input." + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A reinforced Evidence Safe hidden behind a dusty bookshelf. It requires input from the Detective's Computer to authorize access and unlock." + }, + { + "id": "item_16_d0f0", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A cracked pocket watch recovered from the crime scene, its hands suspiciously frozen in time." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Standard input for terminal verification." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Operation complete. Terminal is ready for input." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeef12345678deadbeef12345678" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A dusty box containing absolutely nothing of value." + } + ], + "init": { + "inputs": { + "slot_a": "Standard input for terminal verification." + }, + "outputs": { + "text_output": "Operation complete. Terminal is ready for input.", + "hex_output": "deadbeef12345678deadbeef12345678", + "item_dispenser": "A dusty box containing absolutely nothing of value." + } + }, + "narrative": "The Detective's Computer sitting quietly on the mahogany desk. It requires input from the Frequency Analyzer to bypass its lock screen." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "2938475610293847561029" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "4857201938475629103847" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "4857201938475629103847" + }, + "outputs": {} + }, + "narrative": "A heavy, brass-fitted Frequency Analyzer. It requires input from the Signal Decoder to isolate the correct frequency hidden in the noise." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "2938475610293847561029" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "2938475610293847561029" + } + ], + "init": { + "inputs": { + "s": "2938475610293847561029", + "from_base": "10", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "An antique Signal Decoder left behind by the missing detective. It looks like it was used to translate strange underground broadcasts." + } + ], + "edges": [ + { + "source_id": "item_8_9e9c", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_e7fd", + "target_id": "item_8_9e9c", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_4200", + "target_id": "item_8_e7fd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_4200", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_4", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16_d0f0", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_1", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "slot_b" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_aca48fe9_narrative.json b/data/questions/10/narrative/skeleton_aca48fe9_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..1dfe10aa3f56b37496873cf97e82e7ec53495a04 --- /dev/null +++ b/data/questions/10/narrative/skeleton_aca48fe9_narrative.json @@ -0,0 +1,628 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "terminal_2", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_2", + "output_port": "text_result", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_result'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "checksum_crc32", + "checksum_crc32_a857", + "graph_shortest_path", + "text_rotN", + "calc_bigmul" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "checksum_crc32_a857": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "SOPHIA_IS_THE_KEY_THE_HOLY_GRAIL_WAITS", + "hex_result": "e4d3c2b1a09876543210fedcba987654", + "math_token": "Math_Token_Sigma_42" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "init_outputs": {} + }, + "checksum_crc32_a857": { + "init_inputs": { + "hex": "aabbccddeeff00112233445566778899" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "regional_transport_map.json", + "dst": "Central_Hub_Station" + }, + "init_outputs": { + "path": "[\"North_Gate\", \"Sector_1\", \"Bridge_Crossing\", \"Tunnel_Entry\", \"Sector_4\", \"Central_Hub_Station\"]", + "cost": "84521" + } + }, + "text_rotN": { + "init_inputs": { + "text": "Confidential blueprint data for review." + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "928374651029384756102938475610", + "b": "192837465564738291019283746556" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The world ended decades ago, swallowed by nuclear fire and endless ash storms. You are a Scavenger, surviving in the radioactive ruins of what used to be a bustling metropolis. Rumors speak of 'Eden Vault,' a pristine underground bunker stockpiled with clean water and pre-war technology. You've finally found the heavy blast doors, but they are sealed tight by an archaic fail-safe system. The antechamber is littered with strange mechanisms, degraded tech, and cryptic logs left by the vault's paranoid architect. You must scavenge the room, reactivate the dormant machines, and decipher the override codes before your radiation suit's filters fail completely. Your survival depends on making sense of this mechanical graveyard.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "84521" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "84521" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "SOPHIA_IS_THE_KEY_THE_HOLY_GRAIL_WAITS" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "e4d3c2b1a09876543210fedcba987654" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Math_Token_Sigma_42" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "SOPHIA_IS_THE_KEY_THE_HOLY_GRAIL_WAITS", + "hex_result": "e4d3c2b1a09876543210fedcba987654", + "math_token": "Math_Token_Sigma_42" + } + }, + "narrative": "The bunker override terminal. It requires inputs from the multi-format decoder and the wasteland navigation mainframe to initiate the unlock sequence." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "84521" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": 2052146080 + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 1701871101 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "84521" + } + ], + "narrative": "The multi-format decoder. It requires inputs from the primary data verifier, the secondary data verifier, and the wasteland navigation mainframe." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "65707dfd" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1701871101 + } + ], + "init": { + "inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "outputs": {} + }, + "narrative": "The primary data verifier. The main validation module with a cracked amber screen." + }, + { + "id": "checksum_crc32_a857", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "aabbccddeeff00112233445566778899" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "7a5143a0" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2052146080 + } + ], + "init": { + "inputs": { + "hex": "aabbccddeeff00112233445566778899" + }, + "outputs": {} + }, + "narrative": "The secondary data verifier. A backup validation module covered in radioactive ash." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A torn blueprint. It details some old underground bunker schematics." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "regional_transport_map.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Oazrupqzfumx nxgqbduzf pmfm rad dqhuqi." + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Central_Hub_Station" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"North_Gate\", \"Sector_1\", \"Bridge_Crossing\", \"Tunnel_Entry\", \"Sector_4\", \"Central_Hub_Station\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "84521" + } + ], + "init": { + "inputs": { + "file_id": "regional_transport_map.json", + "dst": "Central_Hub_Station" + }, + "outputs": { + "path": "[\"North_Gate\", \"Sector_1\", \"Bridge_Crossing\", \"Tunnel_Entry\", \"Sector_4\", \"Central_Hub_Station\"]", + "cost": "84521" + } + }, + "narrative": "The wasteland navigation mainframe. It requires input from the mechanical cipher wheel to function." + }, + { + "id": "item_8_5e57", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A dusty logbook. Its pages are brittle, faded, and covered in ash." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Confidential blueprint data for review." + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "179025414799054910724492614110087623589435522320524227499160" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Oazrupqzfumx nxgqbduzf pmfm rad dqhuqi." + } + ], + "init": { + "inputs": { + "text": "Confidential blueprint data for review." + }, + "outputs": {} + }, + "narrative": "The mechanical cipher wheel. It requires input from the rusted calculation engine to align its gears." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "928374651029384756102938475610" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "192837465564738291019283746556" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "179025414799054910724492614110087623589435522320524227499160" + } + ], + "init": { + "inputs": { + "a": "928374651029384756102938475610", + "b": "192837465564738291019283746556" + }, + "outputs": {} + }, + "narrative": "The rusted calculation engine. A bulky machine with large, heavy number dials." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A tarnished pocket watch. It has somehow survived the nuclear blast." + } + ], + "edges": [ + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "checksum_crc32_a857", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "from_base" + }, + { + "source_id": "item_8", + "target_id": "checksum_crc32_a857", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "item_8_5e57", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "text_rotN", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "calc_bigmul", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "n" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "s" + }, + { + "source_id": "item_16", + "target_id": "calc_bigmul", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_ad7b1cee_narrative.json b/data/questions/10/narrative/skeleton_ad7b1cee_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..ad0d51bac4a3cf1526a98d2f8a52467b555102e8 --- /dev/null +++ b/data/questions/10/narrative/skeleton_ad7b1cee_narrative.json @@ -0,0 +1,631 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "item_6", + "win_condition": { + "type": "item_content", + "node_id": "item_6", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_6", + "terminal_2", + "calc_bigmul", + "calc_bigmul_868b", + "calc_modexp", + "calc_modexp_3843", + "checksum_crc32" + ], + "by_node": { + "item_6": { + "node_name": "", + "node_type": "Item", + "template_id": "item_6", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_IV_AES", + "description": "AES IV" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "calc_bigmul_868b": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_modexp_3843": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_6": { + "init_inputs": {}, + "init_outputs": { + "content": "e4a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "System initialization complete. Waiting for input...", + "hex_result": "0a1b2c3d4e5f67890123456789abcdef" + } + }, + "calc_bigmul": { + "init_inputs": { + "a": "847563920184756293048" + }, + "init_outputs": {} + }, + "calc_bigmul_868b": { + "init_inputs": { + "a": "574839201847562930485", + "b": "930485726152438495061" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "mod": "104729" + }, + "init_outputs": {} + }, + "calc_modexp_3843": { + "init_inputs": { + "exp": "283746519283746519283", + "mod": "543210" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "11223344556677889900aabbccddeeff" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in a dimly lit, abandoned detective's office. The air is thick with dust, and the rhythmic sound of rain against the windowpane sets a somber tone. You have no memory of how you got here, but a hastily scribbled note on the desk tells you that a rogue hacker group has hidden a highly dangerous virus code inside a securely locked briefcase. Your objective is to navigate the complex web of encrypted devices left behind by the missing detective and obtain the contents of the locked briefcase before the virus is unleashed upon the city's power grid. The room is filled with strange computational tools, cryptographic machines, and hidden clues. You must deduce their connections, decipher the data flow, and find the correct sequence to unravel the mystery and save the city.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "item_6", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_6", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_IV_AES", + "description": "AES IV", + "value": "e4a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "e4a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5" + } + }, + "narrative": "A locked briefcase." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A strange keycard." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "847563920184756293048" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "534879672152017757534731660963624358834585" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "System initialization complete. Waiting for input..." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "0a1b2c3d4e5f67890123456789abcdef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "System initialization complete. Waiting for input...", + "hex_result": "0a1b2c3d4e5f67890123456789abcdef" + } + }, + "narrative": "This is a master console. It requires inputs from the final multiplier and the primary multiplier." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "847563920184756293048" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "1" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "847563920184756293048" + } + ], + "init": { + "inputs": { + "a": "847563920184756293048" + }, + "outputs": {} + }, + "narrative": "This is a final multiplier. It requires input from the frequency analyzer." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "23092" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "534879672152017757534731660963624358834585" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is a frequency analyzer. It requires inputs from the primary multiplier and the secondary decryptor." + }, + { + "id": "calc_bigmul_868b", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "574839201847562930485" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "930485726152438495061" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "534879672152017757534731660963624358834585" + } + ], + "init": { + "inputs": { + "a": "574839201847562930485", + "b": "930485726152438495061" + }, + "outputs": {} + }, + "narrative": "A primary multiplier." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "93915" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "534879672152017757534731660963624358834585" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "23092" + } + ], + "init": { + "inputs": { + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "This is a secondary decryptor. It requires inputs from the cipher relay and the primary multiplier." + }, + { + "id": "calc_modexp_3843", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": 1090510515 + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "283746519283746519283" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "543210" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "93915" + } + ], + "init": { + "inputs": { + "exp": "283746519283746519283", + "mod": "543210" + }, + "outputs": {} + }, + "narrative": "This is a cipher relay. It requires input from the data validator." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An encrypted data fragment." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "11223344556677889900aabbccddeeff" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "40ffdeb3" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1090510515 + } + ], + "init": { + "inputs": { + "hex": "11223344556677889900aabbccddeeff" + }, + "outputs": {} + }, + "narrative": "An old data validator." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "item_6", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num1" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "calc_bigmul_868b", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num2" + }, + { + "source_id": "calc_bigmul_868b", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "calc_modexp_3843", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "base" + }, + { + "source_id": "calc_bigmul_868b", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "exp" + }, + { + "source_id": "item_8", + "target_id": "calc_bigmul_868b", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_3843", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "base" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_ad968827_narrative.json b/data/questions/10/narrative/skeleton_ad968827_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..7ec7fddef46bfaa117327aac4e2cc4affcd4ffd5 --- /dev/null +++ b/data/questions/10/narrative/skeleton_ad968827_narrative.json @@ -0,0 +1,501 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_5", + "win_condition": { + "type": "item_content", + "node_id": "item_5", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_5", + "terminal_2", + "unicode_norm", + "hex_decode" + ], + "by_node": { + "item_5": { + "node_name": "", + "node_type": "Item", + "template_id": "item_5", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "form": { + "type": "Text_Generic", + "description": "Form" + } + }, + "init_outputs": {} + }, + "hex_decode": { + "node_name": "Hex to Text Decoder", + "node_type": "Tool", + "template_id": "hex_decode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_5": { + "init_inputs": {}, + "init_outputs": { + "content": "5f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "847362519405827364519283", + "num2": "102938475610293847561029" + }, + "init_outputs": { + "text_result": "Operation result: Partial computation pending.", + "hex_result": "112233445566778899aabbccddeeff00", + "math_token": "Useless math token placeholder" + } + }, + "unicode_norm": { + "init_inputs": { + "form": "NFC" + }, + "init_outputs": {} + }, + "hex_decode": { + "init_inputs": { + "hex": "5347567362473867563239796247513d" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the dark, humming halls of the abandoned Orion Station. Red emergency lights bathe the corridor, and a mechanical voice repeats a lockdown warning. The oxygen scrubbers are failing, and the only way to override the bulkheads is to obtain the master encryption key. To do this, you must navigate through a series of forgotten terminals, intercept garbled data signals, and crack open the station's secure storage units before the air runs out. Your survival depends on piecing together the broken systems of the facility.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "item_5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "5f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "5f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c" + } + }, + "narrative": "This is the core encryption drive. A highly secure data storage device that holds the master lockdown key." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the second containment capsule. A reinforced vessel used for isolating sensitive research materials." + }, + { + "id": "item_8_9e54", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the first containment capsule. A small cylindrical device with a thick glass viewing window." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the time-log module. A metallic component that stores chronal synchronization records." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "48656c6c6f20576f726c64" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the secure storage vault. It requires input from the secondary decryptor to authenticate its locking mechanism." + }, + { + "id": "base64_decode", + "name": "Base64 Decoder", + "description": "Decode base64 to hex bytes.", + "type": "Tool", + "template_id": "base64_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "data", + "type": "Text_Generic", + "description": "Base64 string", + "value": "SGVsbG8gV29ybGQ=" + } + ], + "outputs": [ + { + "name": "bytes_hex", + "type": "Hex_String", + "description": "Decoded bytes as Hex", + "value": "48656c6c6f20576f726c64" + } + ], + "narrative": "This is the secondary decryptor. It requires input from the text purifier to complete its cryptographic translation cycle." + }, + { + "id": "container_1_299b", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "112233445566778899aabbccddeeff00" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the primary biometric locker. It requires input from the diagnostic terminal to authorize access and open the latch." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "847362519405827364519283" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "102938475610293847561029" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Operation result: Partial computation pending." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "112233445566778899aabbccddeeff00" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Useless math token placeholder" + } + ], + "init": { + "inputs": { + "num1": "847362519405827364519283", + "num2": "102938475610293847561029" + }, + "outputs": { + "text_result": "Operation result: Partial computation pending.", + "hex_result": "112233445566778899aabbccddeeff00", + "math_token": "Useless math token placeholder" + } + }, + "narrative": "This is the diagnostic terminal. A mainframe control unit blinking with standby lights, waiting for commands." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "SGVsbG8gV29ybGQ=" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "SGVsbG8gV29ybGQ=" + } + ], + "init": { + "inputs": { + "form": "NFC" + }, + "outputs": {} + }, + "narrative": "This is the text purifier. It requires input from the signal interceptor to process and standardize the data patterns." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "5347567362473867563239796247513d" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "SGVsbG8gV29ybGQ=" + } + ], + "init": { + "inputs": { + "hex": "5347567362473867563239796247513d" + }, + "outputs": {} + }, + "narrative": "This is the signal interceptor. An old device designed to convert raw broadcast signals into readable formats." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_9e54", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_9e54", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "base64_decode", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "bytes_hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "container_1_299b", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_1_299b", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "unicode_norm", + "target_id": "base64_decode", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "data" + }, + { + "source_id": "hex_decode", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_b29cc351_narrative.json b/data/questions/10/narrative/skeleton_b29cc351_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..88cbe19901b4a0c94bbe0a0f53e93dd0ac89d757 --- /dev/null +++ b/data/questions/10/narrative/skeleton_b29cc351_narrative.json @@ -0,0 +1,388 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_7", + "win_condition": { + "type": "item_content", + "node_id": "item_7", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_7", + "hex_encode" + ], + "by_node": { + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "hex_encode": { + "node_name": "Text to Hex Encoder", + "node_type": "Tool", + "template_id": "hex_encode", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "def compute_target():\n base = 1000\n modifier = 337\n return base + modifier\n\nprint(compute_target())" + } + }, + "hex_encode": { + "init_inputs": { + "text": "Begin the encoding process with this specific string payload." + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken abruptly aboard the derelict drift-ship 'Horizon-Zero', the emergency life support lighting flickering in the cold void of space. The vessel's central AI has inexplicably locked down all navigational drives and initiated a silent self-destruct sequence. Time is running out as the hull begins to groan under the stress of impending system failure. Your only chance of survival is to retrieve the master override code from the ship's locked command terminal before the destruction is absolute. However, the path to the bridge is sealed, and you must scavenge through the ruined laboratory sectors to piece together the necessary credentials. The debris floating in the zero-gravity environment hints at a sudden and violent evacuation. You need to explore the remaining equipment, bypass the biometric security, and uncover the hidden modules scattered across the ship. Stay sharp and act quickly—the AI is watching, and the clock is ticking down to zero.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "def compute_target():\n base = 1000\n modifier = 337\n return base + modifier\n\nprint(compute_target())" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def compute_target():\n base = 1000\n modifier = 337\n return base + modifier\n\nprint(compute_target())" + } + }, + "narrative": "The central AI command terminal. It holds the final override code needed to completely abort the self-destruct sequence." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A specialized bypass chip designed specifically for high-security mainframe access." + }, + { + "id": "item_8_d5ce", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A quantum decryption module used for breaking advanced military-grade ciphers." + }, + { + "id": "item_8_3804", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A damaged circuit board with sparking relays, pulled from an automated repair drone." + }, + { + "id": "item_8_3632", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An auxiliary storage drive encased in protective glass, holding vital system schematics." + }, + { + "id": "item_8_77d9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A secondary logic processor humming with latent energy, salvaged from a broken droid." + }, + { + "id": "item_8_87ff", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A fragmented memory core, glowing faintly with residual data from the ship's database." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A temporal log datapad containing heavily encrypted sector coordinates and flight logs." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "426567696e2074686520656e636f64696e672070726f636573732077697468207468697320737065636966696320737472696e67207061796c6f61642e" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A secure stasis pod. It requires input from the biometric encoding console to disengage its heavy locking mechanism." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Begin the encoding process with this specific string payload." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "426567696e2074686520656e636f64696e672070726f636573732077697468207468697320737065636966696320737472696e67207061796c6f61642e" + } + ], + "init": { + "inputs": { + "text": "Begin the encoding process with this specific string payload." + }, + "outputs": {} + }, + "narrative": "A sleek biometric encoding console. It processes basic clearance credentials for ship personnel." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_d5ce", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_3804", + "target_id": "item_8_d5ce", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_3632", + "target_id": "item_8_3804", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_77d9", + "target_id": "item_8_3632", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_87ff", + "target_id": "item_8_77d9", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_87ff", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "hex_encode", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_b5a1661b_narrative.json b/data/questions/10/narrative/skeleton_b5a1661b_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..7ebe8ebf707bc9136303b65e159ab5a5ebf24698 --- /dev/null +++ b/data/questions/10/narrative/skeleton_b5a1661b_narrative.json @@ -0,0 +1,677 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 12, + "win_node_id": "calc_gcd", + "win_condition": { + "type": "tool_output", + "node_id": "calc_gcd", + "output_port": "gcd", + "output_type": "Big_Int", + "description": "Execute BigInt GCD Calculator and get the output from port 'gcd'" + }, + "source_init": { + "source_nodes": [ + "num_base_convert", + "num_base_convert_28d2", + "calc_gcd_a306", + "num_base_convert_6659", + "terminal_1", + "graph_shortest_path" + ], + "by_node": { + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "num_base_convert_28d2": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "calc_gcd_a306": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "num_base_convert_6659": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "num_base_convert": { + "init_inputs": { + "s": "4823901823746102938475" + }, + "init_outputs": {} + }, + "num_base_convert_28d2": { + "init_inputs": { + "to_base": "10" + }, + "init_outputs": {} + }, + "calc_gcd_a306": { + "init_inputs": { + "a": "5678901234567890123450" + }, + "init_outputs": {} + }, + "num_base_convert_6659": { + "init_inputs": { + "s": "4567890123456789012370", + "from_base": "10", + "to_base": "10" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "System initialization sequence started.", + "slot_b": "5647382910293847561029" + }, + "init_outputs": { + "text_output": "Terminal processing completed successfully.", + "hex_output": "a1b2c3d4e5f60718" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_topology.json", + "src": "Server_Node_01", + "dst": "Client_Node_99" + }, + "init_outputs": { + "path": "[\"Server_Node_01\", \"Switch_A\", \"Router_X\", \"Client_Node_99\"]", + "cost": "10" + } + } + }, + "intro_narrative": "You are trapped in the sub-basement of the Zenith Corporation's black-site data center. The air is growing thin, and the lockdown protocols have sealed the main blast doors. The facility's central AI, 'Watcher', has gone dormant, leaving the systems in a fragmented state. Your only way out is to manually override the Master Lock system. However, the cryptographic keys are distributed across various legacy subsystems and network nodes. You must power up the old terminals, trace the data paths through the server racks, and synthesize the correct override codes before the oxygen scrubbers fail completely.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "23270028805140977979667088274651029635325625" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "4567890123456789012370" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "5" + } + ], + "narrative": "This is the Master Lock interface controlling the blast doors. It requires synchronized inputs from the Quantum Core and the Legacy Encoder to release the seal." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "4823901823746102938475" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "4823901823746102938475" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "23270028805140977979667088274651029635325625" + } + ], + "narrative": "The Quantum Core, a massive cylindrical processor humming with energy. It requires data inputs from the Signal Transcoder and the Frequency Modulator to execute its cycle." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A physical security token. It contains a high-density numeric sequence etched into its surface." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "4823901823746102938475" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "4823901823746102938475" + } + ], + "init": { + "inputs": { + "s": "4823901823746102938475" + }, + "outputs": {} + }, + "narrative": "The Signal Transcoder, used for translating network protocols. It requires inputs from the Sub-Processor and the Network Router to function." + }, + { + "id": "num_base_convert_28d2", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "4823901823746102938475" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "4823901823746102938475" + } + ], + "init": { + "inputs": { + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The Frequency Modulator, a panel filled with oscillating dials. It requires data inputs from the Signal Transcoder and the Sub-Processor." + }, + { + "id": "calc_gcd_a306", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "5678901234567890123450" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "4567890123456789012370" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "10" + } + ], + "init": { + "inputs": { + "a": "5678901234567890123450" + }, + "outputs": {} + }, + "narrative": "The Sub-Processor unit, responsible for handling preliminary logic gates. It requires raw data input from the Legacy Encoder." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A small data chip labeled with timezone configuration protocols." + }, + { + "id": "num_base_convert_6659", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "4567890123456789012370" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "4567890123456789012370" + } + ], + "init": { + "inputs": { + "s": "4567890123456789012370", + "from_base": "10", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The Legacy Encoder. An archaic input terminal with a flickering green CRT monitor." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "System initialization sequence started." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "5647382910293847561029" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal processing completed successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f60718" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "System initialization sequence started.", + "slot_b": "5647382910293847561029" + }, + "outputs": { + "text_output": "Terminal processing completed successfully.", + "hex_output": "a1b2c3d4e5f60718" + } + }, + "narrative": "The Admin Console. A standard keyboard interface with a bio-metric dispenser slot." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Server_Node_01" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Client_Node_99" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Server_Node_01\", \"Switch_A\", \"Router_X\", \"Client_Node_99\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "10" + } + ], + "init": { + "inputs": { + "file_id": "network_topology.json", + "src": "Server_Node_01", + "dst": "Client_Node_99" + }, + "outputs": { + "path": "[\"Server_Node_01\", \"Switch_A\", \"Router_X\", \"Client_Node_99\"]", + "cost": "10" + } + }, + "narrative": "The Network Router. A wall-mounted display showing the facility's topology and node connections." + } + ], + "edges": [ + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "item_8", + "target_id": "calc_bigmul", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "num_base_convert_28d2", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "num_base_convert", + "target_id": "num_base_convert_28d2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "s" + }, + { + "source_id": "calc_gcd_a306", + "target_id": "num_base_convert_28d2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_gcd_a306", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "num_base_convert_6659", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "terminal_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "num_base_convert_6659", + "target_id": "calc_gcd_a306", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "to_base" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_b86b9591_narrative.json b/data/questions/10/narrative/skeleton_b86b9591_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..2dad763c20ec14a60604e79fd29814960fa001b5 --- /dev/null +++ b/data/questions/10/narrative/skeleton_b86b9591_narrative.json @@ -0,0 +1,617 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 12, + "win_node_id": "terminal_1", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_1", + "output_port": "text_output", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_output'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "json_get", + "zip_unzip_file", + "csv_query", + "zip_unzip_file_efc0" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "jsonpath": { + "type": "Text_Generic", + "description": "JSONPath expression" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + }, + "select": { + "type": "Text_Generic", + "description": "Columns to select" + }, + "where": { + "type": "Text_Generic", + "description": "Where clause" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "zip_unzip_file_efc0": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "qwertyuiopasdfghjklzxcvbnm1234567890", + "hex_output": "48656c6c6f20576f726c6421205468697320697320486578", + "item_dispenser": "|0⟩_|1⟩_|+⟩_|-⟩_|ψ⟩_⟨φ|" + } + }, + "json_get": { + "init_inputs": { + "jsonpath": "$.items[*].name" + }, + "init_outputs": { + "values": "[\"Potion\", \"Ether\", \"Phoenix Down\", \"Antidote\"]" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "config_data.json" + } + }, + "csv_query": { + "init_inputs": { + "file_id": "user_credentials.csv", + "select": "passcode", + "where": "user_id = 'admin'" + }, + "init_outputs": { + "rows": "CorrectBatteryStaple2024" + } + }, + "zip_unzip_file_efc0": { + "init_inputs": { + "zip_id": "archive_level_1.zip" + }, + "init_outputs": { + "files": "archive_level_2.zip" + } + } + }, + "intro_narrative": "You awaken in a dim, abandoned underground laboratory, the air thick with dust and the faint hum of ancient machinery. The reinforced steel doors are sealed shut, and the only light comes from the flickering glow of long-forgotten monitors. Your objective is to reactivate the facility's main mainframe to unlock the exit and escape this subterranean trap. Surrounding you are scattered clues, locked archives, and dormant terminals left behind by the mysterious researchers who once worked here. Every workstation seems to be part of a larger, convoluted security system designed to protect their most crucial findings. You'll need to piece together their secrets, trace the digital labyrinth they left behind, and figure out exactly how these strange mechanisms interact with one another. Time is ticking, and the ambient temperature is slowly dropping. You must navigate through the fragmented data and mechanical locks before the backup power completely fails.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"Potion\", \"Ether\", \"Phoenix Down\", \"Antidote\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 2076069670 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "qwertyuiopasdfghjklzxcvbnm1234567890" + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "48656c6c6f20576f726c6421205468697320697320486578" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "|0⟩_|1⟩_|+⟩_|-⟩_|ψ⟩_⟨φ|" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "qwertyuiopasdfghjklzxcvbnm1234567890", + "hex_output": "48656c6c6f20576f726c6421205468697320697320486578", + "item_dispenser": "|0⟩_|1⟩_|+⟩_|-⟩_|ψ⟩_⟨φ|" + } + }, + "narrative": "This is the main mainframe, the central hub of the laboratory. It requires inputs from both the manifest extractor and the data verifier to unlock the final sequence." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "config_data.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.items[*].name" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"Potion\", \"Ether\", \"Phoenix Down\", \"Antidote\"]" + } + ], + "init": { + "inputs": { + "jsonpath": "$.items[*].name" + }, + "outputs": { + "values": "[\"Potion\", \"Ether\", \"Phoenix Down\", \"Antidote\"]" + } + }, + "narrative": "This is the manifest extractor, a specialized parsing script running on an old monitor. It requires input from the second encrypted archive to filter out the noise and find the right entries." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "d94f7011cd140a83972911998536e8bb" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "7bbe4f26" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2076069670 + } + ], + "narrative": "This is the data verifier, a robust error-checking tool. It requires input from the digital hasher to ensure nothing has been corrupted." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_level_2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "CorrectBatteryStaple2024" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "config_data.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "config_data.json" + } + }, + "narrative": "This is the second encrypted archive, heavily protected by layered security protocols. It requires inputs from both the first encrypted archive and the personnel database to open." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "d94f7011cd140a83972911998536e8bb" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the bio-locked safe, built flush into the cold concrete wall. It requires input from the digital hasher to authenticate." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "CorrectBatteryStaple2024" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "d94f7011cd140a83972911998536e8bb" + } + ], + "narrative": "This is the digital hasher, a specialized encryption mechanism. It requires input from the personnel database to scramble the text correctly." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "user_credentials.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "passcode" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "user_id = 'admin'" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "CorrectBatteryStaple2024" + } + ], + "init": { + "inputs": { + "file_id": "user_credentials.csv", + "select": "passcode", + "where": "user_id = 'admin'" + }, + "outputs": { + "rows": "CorrectBatteryStaple2024" + } + }, + "narrative": "This is the personnel database. A dusty but functioning terminal containing vast amounts of staff records." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A dusty folder tucked away in a desk drawer. It seems to hold forgotten physical documents." + }, + { + "id": "zip_unzip_file_efc0", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_level_1.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "CorrectBatteryStaple2024" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "archive_level_2.zip" + } + ], + "init": { + "inputs": { + "zip_id": "archive_level_1.zip" + }, + "outputs": { + "files": "archive_level_2.zip" + } + }, + "narrative": "This is the first encrypted archive, serving as an initial layer of security. It requires input from the personnel database to proceed." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A timezone log. A heavily annotated little notebook tracking the global shifts of the research team." + } + ], + "edges": [ + { + "source_id": "json_get", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "slot_a" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "zip_unzip_file", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "container_2", + "target_id": "checksum_crc32", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "hash_md5", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "csv_query", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "text" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "zip_unzip_file_efc0", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "csv_query", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "password" + }, + { + "source_id": "hash_md5", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "csv_query", + "target_id": "zip_unzip_file_efc0", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "password" + }, + { + "source_id": "item_16", + "target_id": "hash_md5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_b9837ca3_narrative.json b/data/questions/10/narrative/skeleton_b9837ca3_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..731e5d6445c5cf6583bce27de3a50af01d62b007 --- /dev/null +++ b/data/questions/10/narrative/skeleton_b9837ca3_narrative.json @@ -0,0 +1,661 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "container_4", + "win_condition": { + "type": "item_content", + "node_id": "container_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_4", + "csv_query", + "crypto_rsa_decrypt_hex", + "luhn_check", + "terminal_2", + "zip_unzip_file", + "calc_gcd" + ], + "by_node": { + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": {}, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "n": { + "type": "Big_Int", + "description": "Modulus n" + }, + "d": { + "type": "Big_Int", + "description": "Private exponent d" + } + }, + "init_outputs": {} + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_4": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "4d6_2d8_3d10_1d20_CRITICAL_HIT" + } + }, + "csv_query": { + "init_inputs": {}, + "init_outputs": { + "rows": "[{\"id\": 101, \"status\": \"active\", \"value\": 500}, {\"id\": 102, \"status\": \"pending\", \"value\": 150}, {\"id\": 103, \"status\": \"closed\", \"value\": 0}]" + } + }, + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "n": "928374651029384756192837465019283746", + "d": "102938475619283746501928374651928374" + }, + "init_outputs": {} + }, + "luhn_check": { + "init_inputs": { + "number": "4532015112830366" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "8837465192837465192837465" + }, + "init_outputs": { + "text_result": "Partial calculation result pending confirmation.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_backup_2023.zip", + "password": "SuperSecurePassword123!" + }, + "init_outputs": { + "files": "extracted_config_data.json" + } + }, + "calc_gcd": { + "init_inputs": { + "a": "562837461928374651029384756102", + "b": "102938475619283746510293847561" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You find yourself trapped in the subterranean workshop of the infamous Clockwork Alchemist. The room is filled with the hiss of escaping steam, the rhythmic ticking of countless gears, and the heavy scent of oiled brass. The Alchemist has vanished, leaving his most prized invention sealed inside the Grand Alchemical Vault at the center of the room. To escape this labyrinth of cogs and pistons, you must navigate a complex web of steam-powered machinery and mechanical analytical engines. Various contraptions lie dormant around the room, waiting for the correct sequences to hum back to life. Your objective is to decipher the workshop's interconnected systems, process the necessary data through these arcane machines, and ultimately disengage the master locks of the vault before the central boiler reaches a critical limit.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "[{\"id\": 101, \"status\": \"active\", \"value\": 500}, {\"id\": 102, \"status\": \"pending\", \"value\": 150}, {\"id\": 103, \"status\": \"closed\", \"value\": 0}]" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "4d6_2d8_3d10_1d20_CRITICAL_HIT" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "4d6_2d8_3d10_1d20_CRITICAL_HIT" + } + }, + "narrative": "This is the Grand Alchemical Vault. It requires input from the Archive Projector to disengage its final locks." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "extracted_config_data.json" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "true" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "\u001bP\u0002s\u0010%$г" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"id\": 101, \"status\": \"active\", \"value\": 500}, {\"id\": 102, \"status\": \"pending\", \"value\": 150}, {\"id\": 103, \"status\": \"closed\", \"value\": 0}]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "rows": "[{\"id\": 101, \"status\": \"active\", \"value\": 500}, {\"id\": 102, \"status\": \"pending\", \"value\": 150}, {\"id\": 103, \"status\": \"closed\", \"value\": 0}]" + } + }, + "narrative": "This is the Archive Projector. It requires inputs from the Pneumatic Tube Decoder, the Steam-powered Validator, and the Cipherscope to sift through the archives." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Brass Lockbox. It requires input from the Mainframe Engine to disengage its mechanical interface." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Clockwork Gear. A masterfully crafted brass gear, seemingly a vital component of a larger mechanism." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "65707dfd" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "928374651029384756192837465019283746" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "102938475619283746501928374651928374" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u001bP\u0002s\u0010%$г" + } + ], + "init": { + "inputs": { + "n": "928374651029384756192837465019283746", + "d": "102938475619283746501928374651928374" + }, + "outputs": {} + }, + "narrative": "This is the Cipherscope. It requires input from the Aether Analyzer to reveal hidden messages through its lenses." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "4532015112830366" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "true" + } + ], + "init": { + "inputs": { + "number": "4532015112830366" + }, + "outputs": {} + }, + "narrative": "The Steam-powered Validator. A humming device filled with pressurized steam, designed to verify mechanical sequences." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "65707dfd" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1701871101 + } + ], + "narrative": "This is the Aether Analyzer. It requires input from the Mainframe Engine to process its delicate readings." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "8837465192837465192837465" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial calculation result pending confirmation." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "8837465192837465192837465" + }, + "outputs": { + "text_result": "Partial calculation result pending confirmation.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "narrative": "This is the Mainframe Engine. It requires input from the Differential Gear Calculator to function." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_backup_2023.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecurePassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_config_data.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_backup_2023.zip", + "password": "SuperSecurePassword123!" + }, + "outputs": { + "files": "extracted_config_data.json" + } + }, + "narrative": "The Pneumatic Tube Decoder. A sprawling network of copper tubes meant for extracting and routing documents." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "562837461928374651029384756102" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "102938475619283746510293847561" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "562837461928374651029384756102", + "b": "102938475619283746510293847561" + }, + "outputs": {} + }, + "narrative": "The Differential Gear Calculator. A complex array of interlocking brass gears and dials used for mathematical computations." + } + ], + "edges": [ + { + "source_id": "csv_query", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "fingerprint_input" + }, + { + "source_id": "container_2", + "target_id": "csv_query", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "item_8", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "where" + }, + { + "source_id": "luhn_check", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "select" + }, + { + "source_id": "checksum_crc32", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "terminal_2", + "target_id": "checksum_crc32", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "zip_unzip_file", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "terminal_2", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_2", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_be9fd232_narrative.json b/data/questions/10/narrative/skeleton_be9fd232_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..65e7f628bb07c393e14c8b60c650820eb77b875d --- /dev/null +++ b/data/questions/10/narrative/skeleton_be9fd232_narrative.json @@ -0,0 +1,554 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "text_bidi_sanitize", + "win_condition": { + "type": "tool_output", + "node_id": "text_bidi_sanitize", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute Bidi Sanitizer and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "hmac_sha256", + "terminal_2", + "container_3", + "checksum_crc32", + "item_1" + ], + "by_node": { + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": { + "fingerprint_input": { + "type": "Big_Int", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + } + } + }, + "initial_values": { + "hmac_sha256": { + "init_inputs": { + "text": "Standard operational protocol initialization sequence." + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "827364918273645019283746", + "num2": "109283746510928374651092" + }, + "init_outputs": { + "text_result": "Access granted: Partial calculation data available.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "math_token": "A rusted token indicating a previous calculation attempt." + } + }, + "container_3": { + "init_inputs": { + "fingerprint_input": "556677889900112233445566" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeefcafe1234567890ab" + }, + "init_outputs": {} + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "314159265358979323846264" + } + } + }, + "intro_narrative": "The H.M.S. Aetherius drifts silently through the clouds, its engines cold and its halls echoing with the groans of settling metal. As the Chief Artificer, you stand before the Main Engineering Console, surrounded by a maze of brass pipes, ticking gears, and steam valves. The ship's central cogitation engine has seized up due to corrupted data in the command buffer, leaving the vessel vulnerable to the turbulent skies. To restart the heart of the ship, you must manually route the steam pressure and logic flows through the backup auxiliary systems. The air is thick with the smell of ozone and grease. You must align the mechanical calculators, verify the pressure gauges, and decrypt the startup sequence before the pressure in the boiler reaches critical mass.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "\bD%R~" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "\bD%R~" + } + ], + "narrative": "The Command Teletype. It waits to print the final startup code. It requires input from The Cipher Engine." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "d726671538e4132ef08189f700e0e7cdfc194c3036df66a8927715e839fe0ce7" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "314159265358979323846264" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": 3226999843 + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\bD%R~" + } + ], + "narrative": "The Cipher Engine, a massive assembly of spinning rotors and clicking tumblers. It requires inputs from The Resonance Chamber, The Pressure Gauge, and The Master Gear." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "654d59e5f6960d581031765306c7472a8e68579fce676277284163a87d17060a" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Standard operational protocol initialization sequence." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "d726671538e4132ef08189f700e0e7cdfc194c3036df66a8927715e839fe0ce7" + } + ], + "init": { + "inputs": { + "text": "Standard operational protocol initialization sequence." + }, + "outputs": {} + }, + "narrative": "The Resonance Chamber, a copper-coil wrapped vessel humming with potential energy. It processes data from The Compression Piston." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Access granted: Partial calculation data available." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "654d59e5f6960d581031765306c7472a8e68579fce676277284163a87d17060a" + } + ], + "narrative": "The Compression Piston, a hydraulic device designed to condense information. It requires input from The Arithmometer." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "827364918273645019283746" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "109283746510928374651092" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Access granted: Partial calculation data available." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "A rusted token indicating a previous calculation attempt." + } + ], + "init": { + "inputs": { + "num1": "827364918273645019283746", + "num2": "109283746510928374651092" + }, + "outputs": { + "text_result": "Access granted: Partial calculation data available.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "math_token": "A rusted token indicating a previous calculation attempt." + } + }, + "narrative": "The Arithmometer, a complex mechanical calculator with brass levers set to specific coordinates." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Ignition Spark, a small device emitting a faint electrical buzz." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "556677889900112233445566" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "556677889900112233445566" + }, + "outputs": {} + }, + "narrative": "The Biometric Locker, a steel container featuring a glass plate for fingerprint verification." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeefcafe1234567890ab" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "c0581c23" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3226999843 + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafe1234567890ab" + }, + "outputs": {} + }, + "narrative": "The Pressure Gauge, a precision instrument measuring the integrity of the system's steam flow." + }, + { + "id": "item_8_dcad", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Maintenance Key, a heavy iron key used for accessing service panels." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "314159265358979323846264" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "314159265358979323846264" + } + }, + "narrative": "The Master Gear, a large golden cogwheel etched with universal constants." + } + ], + "edges": [ + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "hmac_sha256", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "hash_sha256", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "terminal_2", + "target_id": "hash_sha256", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "item_8", + "target_id": "hmac_sha256", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "container_3", + "target_id": "terminal_2", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "checksum_crc32", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "d" + }, + { + "source_id": "item_8_dcad", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_1", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "n" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_c08e708b_narrative.json b/data/questions/10/narrative/skeleton_c08e708b_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..7e80bf0616a53447d3cf14b94cd58e606ccaeaf3 --- /dev/null +++ b/data/questions/10/narrative/skeleton_c08e708b_narrative.json @@ -0,0 +1,520 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_14", + "win_condition": { + "type": "item_content", + "node_id": "item_14", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_14", + "graph_shortest_path", + "hash_sha256", + "zip_unzip_file" + ], + "by_node": { + "item_14": { + "node_name": "", + "node_type": "Item", + "template_id": "item_14", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_IV_AES", + "description": "AES IV" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "hash_sha256": { + "node_name": "SHA-256 Hasher", + "node_type": "Tool", + "template_id": "hash_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + } + } + }, + "initial_values": { + "item_14": { + "init_inputs": {}, + "init_outputs": { + "content": "8f3b2e1a9d4c7b0f6a5e2d1c8b3a4f9e" + } + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Alpha", + "dst": "Node_Omega" + }, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\", \"Node_Omega\"]", + "cost": "3847562910384756291038" + } + }, + "hash_sha256": { + "init_inputs": { + "text": "Initiate system integrity check sequence 4829" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "topology_data.zip", + "password": "complex_password_123" + }, + "init_outputs": { + "files": "network_graph.json" + } + } + }, + "intro_narrative": "You have infiltrated the underground server facility of the elusive shadow syndicate known as 'Blacksite'. The air is frigid, filled with the deafening hum of liquid-cooled mainframes and illuminated only by the harsh, pulsating blue light of server racks. Your objective is critical: retrieve the syndicate's encrypted ledger before their automated scrubbers delete everything. The ledger is protected by a labyrinth of both physical biometric vaults and complex digital cryptographic layers. With the facility's security lockdown already initiated, you have exactly twenty minutes until a total sector purge. You must trace network routes, decrypt archives, and bypass physical lockboxes to extract the master data core. Every second counts, and the system is designed to trap intruders in an endless loop of encryption.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "item_14", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_14", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_IV_AES", + "description": "AES IV", + "value": "8f3b2e1a9d4c7b0f6a5e2d1c8b3a4f9e" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "8f3b2e1a9d4c7b0f6a5e2d1c8b3a4f9e" + } + }, + "narrative": "The master data core. Capturing this will secure the target files and complete your mission." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "5b224e6f64655f416c706861222c20224e6f64655f42657461222c20224e6f64655f47616d6d61222c20224e6f64655f44656c7461222c20224e6f64655f457073696c6f6e222c20224e6f64655f5a657461222c20224e6f64655f4f6d656761225d" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A primary biometric vault set into the server rack. It requires input from the text encoder to bypass its final safeguards." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "d7029134c2c24bdf476866402386a410111e4ec84d967827e752dde614beb6f6" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A secondary biometric lockbox. It requires input from the hash calculator to authorize its release mechanism." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An advanced security token shielded inside a rigid protective casing." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\", \"Node_Omega\"]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "5b224e6f64655f416c706861222c20224e6f64655f42657461222c20224e6f64655f47616d6d61222c20224e6f64655f44656c7461222c20224e6f64655f457073696c6f6e222c20224e6f64655f5a657461222c20224e6f64655f4f6d656761225d" + } + ], + "narrative": "A text encoder module. It requires input from the network routing module to successfully translate the data." + }, + { + "id": "item_8_f01a", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A secondary security token with a slightly damaged magnetic strip." + }, + { + "id": "item_8_46ce", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A primary security token lying abandoned on the supervisor's desk." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_Omega" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\", \"Node_Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "3847562910384756291038" + } + ], + "init": { + "inputs": { + "src": "Node_Alpha", + "dst": "Node_Omega" + }, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\", \"Node_Omega\"]", + "cost": "3847562910384756291038" + } + }, + "narrative": "A network routing module. It requires input from the archive extractor to properly map out the system pathways." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Initiate system integrity check sequence 4829" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "d7029134c2c24bdf476866402386a410111e4ec84d967827e752dde614beb6f6" + } + ], + "init": { + "inputs": { + "text": "Initiate system integrity check sequence 4829" + }, + "outputs": {} + }, + "narrative": "A standalone hash calculator terminal used for cryptographic operations." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "topology_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "complex_password_123" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "network_graph.json" + } + ], + "init": { + "inputs": { + "zip_id": "topology_data.zip", + "password": "complex_password_123" + }, + "outputs": { + "files": "network_graph.json" + } + }, + "narrative": "An archive extractor utility program found running on a secondary monitor." + } + ], + "edges": [ + { + "source_id": "container_1", + "target_id": "item_14", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "container_2", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "hex_encode", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8_f01a", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_46ce", + "target_id": "item_8_f01a", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "hex_encode", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "text" + }, + { + "source_id": "hash_sha256", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_c615ec73_narrative.json b/data/questions/10/narrative/skeleton_c615ec73_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..f8b566cc2a4db0d1d925b69f0bbb7c360372e609 --- /dev/null +++ b/data/questions/10/narrative/skeleton_c615ec73_narrative.json @@ -0,0 +1,625 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 12, + "win_node_id": "calc_gcd", + "win_condition": { + "type": "tool_output", + "node_id": "calc_gcd", + "output_port": "gcd", + "output_type": "Big_Int", + "description": "Execute BigInt GCD Calculator and get the output from port 'gcd'" + }, + "source_init": { + "source_nodes": [ + "calc_gcd_55c6", + "calc_bigmul_9237", + "checksum_crc32", + "calc_modexp_51d4", + "calc_bigmul_2377", + "iban_validate" + ], + "by_node": { + "calc_gcd_55c6": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "calc_bigmul_9237": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_modexp_51d4": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_bigmul_2377": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "iban_validate": { + "node_name": "IBAN Validator", + "node_type": "Tool", + "template_id": "iban_validate", + "init_inputs": { + "iban": { + "type": "Text_Generic", + "description": "IBAN string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "calc_gcd_55c6": { + "init_inputs": { + "a": "8472615394058271635492817" + }, + "init_outputs": {} + }, + "calc_bigmul_9237": { + "init_inputs": { + "b": "57483920184756392018475" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "48656c6c6f20576f726c6421" + }, + "init_outputs": {} + }, + "calc_modexp_51d4": { + "init_inputs": { + "base": "16", + "mod": "104729" + }, + "init_outputs": {} + }, + "calc_bigmul_2377": { + "init_inputs": { + "a": "3948572615029384756102938", + "b": "5827163549281736450293847" + }, + "init_outputs": {} + }, + "iban_validate": { + "init_inputs": { + "iban": "GB82WEST12345698765432" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are a rogue cyber-operative who just infiltrated the Blacksite Zero, a clandestine data bunker operated by a shadow corporation known as the Aegis Syndicate. They are holding irrefutable evidence of a global conspiracy, locked away behind a formidable network of interconnected servers, cryptographic engines, and physical fabricators. The facility's automated defense protocols have just initiated a purge sequence; you have less than an hour before the room floods with neurotoxin. To expose the truth and escape with your life, you must trace the complex data pathways and manually override the systems to breach the mainframe core. Pay close attention to how the terminals communicate—every piece of data must flow in the right direction to crack the final lock.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "333955538" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "63" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "7" + } + ], + "narrative": "This is the mainframe core. It requires inputs from both the sector firewall and the neural decryptor to achieve complete system override." + }, + { + "id": "calc_gcd_55c6", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "8472615394058271635492817" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "1479847320309833158465092620442317625" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "63" + } + ], + "init": { + "inputs": { + "a": "8472615394058271635492817" + }, + "outputs": {} + }, + "narrative": "This is the sector firewall. It requires input from the quantum processor to bypass the security layers." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool", + "value": "synthesized_item_60a33e6cf5151f2d" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "63" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1479847320309833158465092620442317625" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 472456355 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "333955538" + } + ], + "narrative": "This is the neural decryptor. It requires inputs from the quantum processor, the sector firewall, and the integrity scanner to initiate the sequence." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "54489" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "27158643401600931535999791158625" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "1479847320309833158465092620442317625" + } + ], + "narrative": "This is the quantum processor. It requires inputs from both the data multiplier and the algorithm engine." + }, + { + "id": "calc_bigmul_9237", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": 472456355 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "57483920184756392018475" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "27158643401600931535999791158625" + } + ], + "init": { + "inputs": { + "b": "57483920184756392018475" + }, + "outputs": {} + }, + "narrative": "This is the data multiplier. It requires input from the integrity scanner to function." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "48656c6c6f20576f726c6421" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "1c291ca3" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 472456355 + } + ], + "init": { + "inputs": { + "hex": "48656c6c6f20576f726c6421" + }, + "outputs": {} + }, + "narrative": "A robust integrity scanner embedded in the wall." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "False" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_60a33e6cf5151f2d" + } + ], + "narrative": "This is the nano-fabricator. It requires input from the financial tracker to authorize construction." + }, + { + "id": "calc_modexp_51d4", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "16" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "23008978413991297246945167329484059209116680022486" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "54489" + } + ], + "init": { + "inputs": { + "base": "16", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "This is the algorithm engine. It requires input from the deep-state server to process its complex equations." + }, + { + "id": "calc_bigmul_2377", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "3948572615029384756102938" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "5827163549281736450293847" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "23008978413991297246945167329484059209116680022486" + } + ], + "init": { + "inputs": { + "a": "3948572615029384756102938", + "b": "5827163549281736450293847" + }, + "outputs": {} + }, + "narrative": "A massive deep-state server humming with dark energy." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "GB82WEST12345698765432" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "init": { + "inputs": { + "iban": "GB82WEST12345698765432" + }, + "outputs": {} + }, + "narrative": "An offshore financial tracker terminal." + } + ], + "edges": [ + { + "source_id": "calc_gcd_55c6", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "exp" + }, + { + "source_id": "calc_bigmul_9237", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "calc_gcd_55c6", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul_9237", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "matter_synthesizer", + "target_id": "calc_modexp", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "trigger_item" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd_55c6", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "calc_modexp_51d4", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "calc_bigmul_2377", + "target_id": "calc_modexp_51d4", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "exp" + }, + { + "source_id": "iban_validate", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "blueprint" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_c9ca2c76_narrative.json b/data/questions/10/narrative/skeleton_c9ca2c76_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..d6eb2986e774a703d605d0a7970d8301547cd0d5 --- /dev/null +++ b/data/questions/10/narrative/skeleton_c9ca2c76_narrative.json @@ -0,0 +1,612 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "crypto_rsa_decrypt_hex", + "win_condition": { + "type": "tool_output", + "node_id": "crypto_rsa_decrypt_hex", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute RSA Decrypt and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "calc_gcd", + "calc_inv_mod_4b42", + "calc_modexp", + "zip_unzip_file" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "calc_inv_mod_4b42": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Source_A1", + "dst": "Node_Dest_Z9" + }, + "init_outputs": { + "path": "[\"Node_Source_A1\", \"Node_Inter_B2\", \"Node_Inter_C3\", \"Node_Dest_Z9\"]", + "cost": "48291038475629103847" + } + }, + "calc_gcd": { + "init_inputs": { + "b": "7483920184756293018475" + }, + "init_outputs": {} + }, + "calc_inv_mod_4b42": { + "init_inputs": { + "mod": "837461" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "12", + "exp": "9384756201928374651092", + "mod": "562819" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_graph_data.zip", + "password": "Unlock_Password_123" + }, + "init_outputs": { + "files": "topology_graph.json" + } + } + }, + "intro_narrative": "You have breached the high tower of the Clockwork Architect. The air is thick with the smell of ozone and grease. Around you, gears grind in a rhythmic slumber, waiting to be awakened. The Architect left his greatest secret locked behind a series of interconnected mechanisms. To escape before the steam pressure reaches critical levels, you must decipher the flow of data through these brass and copper machines, restoring the sequence to the Grand Engine.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "789c8b56f2cb4f498d0fce2f2d4a4e8d773454d251808878e695a416c53b19a109381bc3055c528b4be2a32c956201f42215b1" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "48291038475629103847" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "1" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0001+Er." + } + ], + "narrative": "The Grand Analytical Engine. The masterpiece of the room. To reveal the final exit code, it requires synchronized inputs from the Central Synchronization Unit, the Aether Navigation Table, and the Pneumatic Steam Press." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "808708" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1" + } + ], + "narrative": "The Central Synchronization Unit. A hub of ticking metronomes. It requires inputs from both the Differential Gearbox and the Harmonic Tuner to stabilize the system." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "topology_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Source_A1" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_Dest_Z9" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Source_A1\", \"Node_Inter_B2\", \"Node_Inter_C3\", \"Node_Dest_Z9\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "48291038475629103847" + } + ], + "init": { + "inputs": { + "src": "Node_Source_A1", + "dst": "Node_Dest_Z9" + }, + "outputs": { + "path": "[\"Node_Source_A1\", \"Node_Inter_B2\", \"Node_Inter_C3\", \"Node_Dest_Z9\"]", + "cost": "48291038475629103847" + } + }, + "narrative": "The Aether Navigation Table. A complex map of pipes and valves. It requires the extracted schematics from the Sealed Brass Canister to plot the correct energy flow." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "362623" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "7483920184756293018475" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "7483920184756293018475" + }, + "outputs": {} + }, + "narrative": "The Differential Gearbox. A set of interlocking brass gears. It requires the energy output from the Boiler Pressure Engine to calculate the common ratio." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "[\"Node_Source_A1\", \"Node_Inter_B2\", \"Node_Inter_C3\", \"Node_Dest_Z9\"]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c8b56f2cb4f498d0fce2f2d4a4e8d773454d251808878e695a416c53b19a109381bc3055c528b4be2a32c956201f42215b1" + } + ], + "narrative": "The Pneumatic Steam Press. A heavy industrial compressor. It requires the validation result from the Identification Validator to condense the data." + }, + { + "id": "calc_inv_mod_4b42", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "48291038475629103847" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "837461" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "808708" + } + ], + "init": { + "inputs": { + "mod": "837461" + }, + "outputs": {} + }, + "narrative": "The Harmonic Tuner. A delicate device for adjusting resonance. It requires the calculated flow cost from the Aether Navigation Table to calibrate its frequency." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "[\"Node_Source_A1\", \"Node_Inter_B2\", \"Node_Inter_C3\", \"Node_Dest_Z9\"]" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "[\"Node_Source_A1\", \"Node_Inter_B2\", \"Node_Inter_C3\", \"Node_Dest_Z9\"]" + } + ], + "narrative": "The Identification Validator. A mechanical card reader designed to verify sequences. It requires the path data from the Aether Navigation Table to perform its check." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "12" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "9384756201928374651092" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "562819" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "362623" + } + ], + "init": { + "inputs": { + "base": "12", + "exp": "9384756201928374651092", + "mod": "562819" + }, + "outputs": {} + }, + "narrative": "The Boiler Pressure Engine. A massive furnace roaring with contained power. It awaits specific operational parameters to generate force." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_graph_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Unlock_Password_123" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "topology_graph.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_graph_data.zip", + "password": "Unlock_Password_123" + }, + "outputs": { + "files": "topology_graph.json" + } + }, + "narrative": "A sealed brass canister covered in rotating tumblers. It appears to hold vital schematics." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An ornate chronometer found resting on a velvet cushion. Its hands move backward." + } + ], + "edges": [ + { + "source_id": "calc_inv_mod", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "d" + }, + { + "source_id": "graph_shortest_path", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "n" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "zlib_deflate", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "calc_inv_mod_4b42", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod_4b42", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "luhn_check", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "text" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "number" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_16", + "target_id": "calc_modexp", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_caf1254d_narrative.json b/data/questions/10/narrative/skeleton_caf1254d_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..b39fa34849b79979243fa6634254164829a8d0c2 --- /dev/null +++ b/data/questions/10/narrative/skeleton_caf1254d_narrative.json @@ -0,0 +1,569 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "item_11", + "win_condition": { + "type": "item_content", + "node_id": "item_11", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_11", + "terminal_2", + "calc_gcd_fd3a", + "checksum_crc32", + "calc_inv_mod", + "item_1" + ], + "by_node": { + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_gcd_fd3a": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + } + } + }, + "initial_values": { + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def verify_initialization():\n return 'System parameters loaded successfully'" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal interface initialized. Waiting for user input.", + "hex_result": "deadbeefcafebabe1234567890abcdef" + } + }, + "calc_gcd_fd3a": { + "init_inputs": { + "b": "8475629384756102938475629384" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "29384756102938475629103847", + "mod": "104729" + }, + "init_outputs": {} + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "928374651029384756102938475629" + } + } + }, + "intro_narrative": "The rain beats heavily against the window of the abandoned warehouse, now serving as the hideout for the city's most elusive cyber-criminal, 'The Architect'. As a lead detective, you've finally tracked down his operational base. The room hums with the sound of active servers and cooling fans. Somewhere in this tangled web of forensic evidence and custom-built decryption hardware lies a secure Python script—the final piece of evidence needed to crack his financial network and bring him to justice. The safe containing it is heavily locked down. You must carefully examine the scattered clues, analyze the data devices, and follow the digital breadcrumbs he carelessly left behind. Time is running out before his automated protocols wipe everything.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def verify_initialization():\n return 'System parameters loaded successfully'" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def verify_initialization():\n return 'System parameters loaded successfully'" + } + }, + "narrative": "A heavily armored Evidence Safe holding the final piece of evidence." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": 1701871101 + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal interface initialized. Waiting for user input." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeefcafebabe1234567890abcdef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal interface initialized. Waiting for user input.", + "hex_result": "deadbeefcafebabe1234567890abcdef" + } + }, + "narrative": "This is the Main Server Terminal. It requires inputs from both the Data Correlator and the Evidence Scanner." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A concealed hidden drawer beneath the suspect's desk." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An antique wall clock ticking away in the silent room." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "86116" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "928374651029384756102938475629" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is a Data Correlator. It requires inputs from both the Cryptographic Multiplier and the Victim's Notepad." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "86116" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "1" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "86116" + } + ], + "narrative": "This is a Cryptographic Multiplier. It requires inputs from both the Cypher Decoder and the Initial Filter Device." + }, + { + "id": "calc_gcd_fd3a", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 1701871101 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "8475629384756102938475629384" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "8475629384756102938475629384" + }, + "outputs": {} + }, + "narrative": "This is an Initial Filter Device. It requires input from the Evidence Scanner." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "65707dfd" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1701871101 + } + ], + "init": { + "inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "outputs": {} + }, + "narrative": "A portable Evidence Scanner used for extracting digital signatures." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "29384756102938475629103847" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "86116" + } + ], + "init": { + "inputs": { + "a": "29384756102938475629103847", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "A specialized Cypher Decoder left behind by the hacker." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "928374651029384756102938475629" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "928374651029384756102938475629" + } + }, + "narrative": "A blood-stained Victim's Notepad containing scribbled figures." + } + ], + "edges": [ + { + "source_id": "terminal_2", + "target_id": "item_11", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "item_8", + "target_id": "terminal_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num1" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "calc_gcd_fd3a", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd_fd3a", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num2" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "item_1", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "b" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_cb08b5ce_narrative.json b/data/questions/10/narrative/skeleton_cb08b5ce_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..fd6a2c994e278ecd94fc223585169f9ca4fd3a9c --- /dev/null +++ b/data/questions/10/narrative/skeleton_cb08b5ce_narrative.json @@ -0,0 +1,502 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "container_4", + "win_condition": { + "type": "item_content", + "node_id": "container_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_4", + "terminal_1", + "text_bidi_sanitize", + "base64_decode" + ], + "by_node": { + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "text_bidi_sanitize": { + "node_name": "Bidi Sanitizer", + "node_type": "Tool", + "template_id": "text_bidi_sanitize", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "base64_decode": { + "node_name": "Base64 Decoder", + "node_type": "Tool", + "template_id": "base64_decode", + "init_inputs": { + "data": { + "type": "Text_Generic", + "description": "Base64 string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_4": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "π_e_φ_√2_ln3_sin1_cos0" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System diagnostic complete. All subsystems operational.", + "hex_output": "426c75657072696e743a2047656e657269632043756265", + "item_dispenser": "A slightly dented coin with no apparent value." + } + }, + "text_bidi_sanitize": { + "init_inputs": { + "text": "Suspicious input with ‮ reversed ‬ control characters." + }, + "init_outputs": {} + }, + "base64_decode": { + "init_inputs": { + "data": "SW5pdGlhbCBjb25maWd1cmF0aW9uIGxvYWRlZCBzdWNjZXNzZnVsbHku" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You stand in the dim light of the suspect's safehouse—a cluttered apartment that smells of ozone and stale coffee. This was the headquarters of the 'Ghost,' a hacker who vanished with the city's encryption keys. The room is filled with jury-rigged servers and strange fabrication devices. The police are minutes away, but you need to secure the evidence locked inside the main vault before they arrive and seize everything. The equipment is dormant, waiting for the right sequence of data to come to life. You must trace the flow of information, process the evidence, and synthesize the physical keys needed to crack the final lock.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Blueprint: Generic Cube" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "π_e_φ_√2_ln3_sin1_cos0" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "π_e_φ_√2_ln3_sin1_cos0" + } + }, + "narrative": "A heavy titanium vault sitting in the center of the room. It requires the specific verification code revealed by the Code Translator to accept the fingerprint scan." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "426c75657072696e743a2047656e657269632043756265" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "Blueprint: Generic Cube" + } + ], + "narrative": "The Code Translator, a utility running on a secondary monitor. It waits for the encrypted hexadecimal string output from the Mainframe Console." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A small, encrypted microchip extracted from the magnetic strip of the security card." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_68b5b7854e2b4ad1" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A freshly synthesized security card with a magnetic strip, still warm from the fabrication process." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Blueprint: Generic Cube" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_68b5b7854e2b4ad1" + } + ], + "narrative": "A 3D Printer and fabricator designed for espionage gear. It requires a blueprint file generated by the Code Translator to begin construction." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Suspicious input with reversed control characters." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 1781220858 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System diagnostic complete. All subsystems operational." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "426c75657072696e743a2047656e657269632043756265" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A slightly dented coin with no apparent value." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System diagnostic complete. All subsystems operational.", + "hex_output": "426c75657072696e743a2047656e657269632043756265", + "item_dispenser": "A slightly dented coin with no apparent value." + } + }, + "narrative": "The Mainframe Console, the heart of the operation. It requires simultaneous inputs from both the Integrity Scanner and the Evidence Cleaner to unlock its secure partition." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "496e697469616c20636f6e66696775726174696f6e206c6f61646564207375636365737366756c6c792e" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "6a2b45fa" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1781220858 + } + ], + "narrative": "The Integrity Scanner, a device used to verify data fidelity. It requires the raw data output from the Signal Decrypter to process the checksum." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Suspicious input with ‮ reversed ‬ control characters." + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "Suspicious input with reversed control characters." + } + ], + "init": { + "inputs": { + "text": "Suspicious input with ‮ reversed ‬ control characters." + }, + "outputs": {} + }, + "narrative": "The Evidence Cleaner, a specialized software tool designed to scrub and format corrupted text logs found at the crime scene." + }, + { + "id": "item_16_ddd0", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An Old Almanac found under the desk, containing various reference dates and timezone charts marked with red ink." + }, + { + "id": "base64_decode", + "name": "Base64 Decoder", + "description": "Decode base64 to hex bytes.", + "type": "Tool", + "template_id": "base64_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "data", + "type": "Text_Generic", + "description": "Base64 string", + "value": "SW5pdGlhbCBjb25maWd1cmF0aW9uIGxvYWRlZCBzdWNjZXNzZnVsbHku" + } + ], + "outputs": [ + { + "name": "bytes_hex", + "type": "Hex_String", + "description": "Decoded bytes as Hex", + "value": "496e697469616c20636f6e66696775726174696f6e206c6f61646564207375636365737366756c6c792e" + } + ], + "init": { + "inputs": { + "data": "SW5pdGlhbCBjb25maWd1cmF0aW9uIGxvYWRlZCBzdWNjZXNzZnVsbHku" + }, + "outputs": {} + }, + "narrative": "The Signal Decrypter, a standalone decoding unit used to intercept and translate raw transmission signals." + } + ], + "edges": [ + { + "source_id": "hex_decode", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "matter_synthesizer", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex" + }, + { + "source_id": "hex_decode", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "blueprint" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "slot_a" + }, + { + "source_id": "item_16_ddd0", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "base64_decode", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "bytes_hex", + "target_port": "hex" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_d94b6b54_narrative.json b/data/questions/10/narrative/skeleton_d94b6b54_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..5d54613b53ea1e8b79e4a420bc0c295b32ba8c11 --- /dev/null +++ b/data/questions/10/narrative/skeleton_d94b6b54_narrative.json @@ -0,0 +1,539 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "item_11", + "win_condition": { + "type": "item_content", + "node_id": "item_11", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_11", + "terminal_2", + "graph_shortest_path", + "item_9" + ], + "by_node": { + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + } + } + }, + "initial_values": { + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def optimize_route(nodes):\n return sorted(nodes, key=lambda x: x.get('cost', 0))" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "8492018374650192837465019283" + }, + "init_outputs": { + "text_result": "Calculation initialized, waiting for second operand.", + "hex_result": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Sector_A_Gateway", + "dst": "Sector_Z_Vault" + }, + "init_outputs": { + "path": "[\"Sector_A_Gateway\", \"Node_104\", \"Node_209\", \"Relay_Station_5\", \"Sublevel_B\", \"Checkpoint_Delta\", \"Sector_Z_Vault\"]", + "cost": "48291" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "secure_network_topology.json" + } + } + }, + "intro_narrative": "You've infiltrated the server room of Aethelgard Biometrics, a shadowy defense contractor accused of developing illegal surveillance AI. The air is freezing, kept that way to cool the rows of humming server racks. Your objective is 'Project Chimera', a prototype code hidden somewhere in this facility. The security systems are air-gapped and layered; you'll need to use the tools at hand to bypass encryption protocols, analyze network traffic, and unlock the physical vaults. You have limited time before the silent alarm brings security teams to your location.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def optimize_route(nodes):\n return sorted(nodes, key=lambda x: x.get('cost', 0))" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def optimize_route(nodes):\n return sorted(nodes, key=lambda x: x.get('cost', 0))" + } + }, + "narrative": "The 'Project Chimera' source code drive. This is the primary objective we came to retrieve." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A titanium-reinforced Biometric Safe embedded in the wall. It requires the hex result generated by the Mainframe Terminal to verify identity and open." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A dedicated Integer Module. A small hardware component used for variable storage." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Timezone Chip. It contains specific localization data required for system synchronization." + }, + { + "id": "container_2_2c69", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "12360b8ecfd2e7e7035a67f76ce5ba6aea74efdaacfb679810d09d525d4dc820" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A portable Secure Briefcase found on the floor. It requires the hash signature output from the Hashing Algorithm to release its magnetic locks." + }, + { + "id": "item_16_2738", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An Encrypted Drive. A standard issue data storage unit with high-level encryption." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Calculation initialized, waiting for second operand." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "12360b8ecfd2e7e7035a67f76ce5ba6aea74efdaacfb679810d09d525d4dc820" + } + ], + "narrative": "A cryptographic Hashing Algorithm interface. It processes data to create digital fingerprints. It requires the text result output from the Mainframe Terminal to generate the necessary hash." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "8492018374650192837465019283" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "48291" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation initialized, waiting for second operand." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "8492018374650192837465019283" + }, + "outputs": { + "text_result": "Calculation initialized, waiting for second operand.", + "hex_result": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + }, + "narrative": "The facility's Mainframe Terminal. It controls the security protocols. It requires the path cost calculated by the Network Analyzer to complete its authentication sequence." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "secure_network_topology.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Sector_A_Gateway" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Sector_Z_Vault" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Sector_A_Gateway\", \"Node_104\", \"Node_209\", \"Relay_Station_5\", \"Sublevel_B\", \"Checkpoint_Delta\", \"Sector_Z_Vault\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "48291" + } + ], + "init": { + "inputs": { + "src": "Sector_A_Gateway", + "dst": "Sector_Z_Vault" + }, + "outputs": { + "path": "[\"Sector_A_Gateway\", \"Node_104\", \"Node_209\", \"Relay_Station_5\", \"Sublevel_B\", \"Checkpoint_Delta\", \"Sector_Z_Vault\"]", + "cost": "48291" + } + }, + "narrative": "A portable Network Analyzer tool used for tracing connections. It requires the topology data from the Network Map to determine the shortest route cost." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "secure_network_topology.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "secure_network_topology.json" + } + }, + "narrative": "A digital Network Map. It displays the layout of the facility's nodes and edges." + } + ], + "edges": [ + { + "source_id": "container_2", + "target_id": "item_11", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_2_2c69", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16_2738", + "target_id": "container_2_2c69", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "hash_sha256", + "target_id": "container_2_2c69", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_2", + "target_id": "item_16_2738", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_2", + "target_id": "hash_sha256", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num2" + }, + { + "source_id": "item_9", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_db9768c4_narrative.json b/data/questions/10/narrative/skeleton_db9768c4_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..d74eb510de90e136b6b66b7a4f120c2dee297800 --- /dev/null +++ b/data/questions/10/narrative/skeleton_db9768c4_narrative.json @@ -0,0 +1,490 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "item_11", + "win_condition": { + "type": "item_content", + "node_id": "item_11", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_11", + "csv_query", + "unicode_norm", + "luhn_check" + ], + "by_node": { + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "form": { + "type": "Text_Generic", + "description": "Form" + } + }, + "init_outputs": {} + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "import json\n\ndef process_data(data):\n return json.dumps(data)\n\nprint('Script initialized successfully')" + } + }, + "csv_query": { + "init_inputs": { + "file_id": "financial_records_2023.csv" + }, + "init_outputs": { + "rows": "[{\"id\": 101, \"item\": \"Widget A\", \"cost\": 50}, {\"id\": 102, \"item\": \"Widget B\", \"cost\": 75}, {\"id\": 103, \"item\": \"Widget C\", \"cost\": 120}, {\"id\": 104, \"item\": \"Widget D\", \"cost\": 90}, {\"id\": 105, \"item\": \"Widget E\", \"cost\": 200}]" + } + }, + "unicode_norm": { + "init_inputs": { + "text": "Zoë façade û ñ", + "form": "NFC" + }, + "init_outputs": {} + }, + "luhn_check": { + "init_inputs": { + "number": "4532015890123456" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The agency's safehouse has been compromised. You have breached the server room, but the failsafe protocols have engaged. The extraction data has been fragmented and locked behind a series of cryptographic and biometric safeguards. To retrieve the final payload, you must manipulate the legacy hardware and security scripts left behind by the previous sysadmin. The cleaners are en route—you have fifteen minutes to decode the system and secure the asset.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "import json\n\ndef process_data(data):\n return json.dumps(data)\n\nprint('Script initialized successfully')" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "import json\n\ndef process_data(data):\n return json.dumps(data)\n\nprint('Script initialized successfully')" + } + }, + "narrative": "This is the Omega Payload, the final executable containing the extraction coordinates. It is currently locked within the system's core architecture." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "789c8bae56ca4c51b252303430d45150ca2c49cd057294c23353d2534b141c958062c9f9c525403153835a1d05b862234cc54e488acd4d91151b632a7646526c688462b409a66a1724d596288a4d3115bb2229363230a88d0500e50e3c7e" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Primary Biometric Vault, a heavy reinforced container. It requires a specific hash signal from the Compression Engine to disengage its magnetic locks." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A dedicated Timezone Synchronization Module. A piece of hardware used to regulate server timestamps." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "[{\"id\": 101, \"item\": \"Widget A\", \"cost\": 50}, {\"id\": 102, \"item\": \"Widget B\", \"cost\": 75}, {\"id\": 103, \"item\": \"Widget C\", \"cost\": 120}, {\"id\": 104, \"item\": \"Widget D\", \"cost\": 90}, {\"id\": 105, \"item\": \"Widget E\", \"cost\": 200}]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c8bae56ca4c51b252303430d45150ca2c49cd057294c23353d2534b141c958062c9f9c525403153835a1d05b862234cc54e488acd4d91151b632a7646526c688462b409a66a1724d596288a4d3115bb2229363230a88d0500e50e3c7e" + } + ], + "narrative": "This is the Compression Engine. It compresses raw database entries into security hashes. It requires input from the Log Query Terminal to generate the correct fingerprint." + }, + { + "id": "container_2_0c39", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "789c8bae56ca4c51b252303430d45150ca2c49cd057294c23353d2534b141c958062c9f9c525403153835a1d05b862234cc54e488acd4d91151b632a7646526c688462b409a66a1724d596288a4d3115bb2229363230a88d0500e50e3c7e" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Secondary Lockbox, marked with hazard stripes. It requires a specific hash signal from the Compression Engine to verify identity and open." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A decrypted Integer Key. It appears to be a variable extracted from a legacy storage device." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "financial_records_2023.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "Zoë façade û ñ" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "false" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"id\": 101, \"item\": \"Widget A\", \"cost\": 50}, {\"id\": 102, \"item\": \"Widget B\", \"cost\": 75}, {\"id\": 103, \"item\": \"Widget C\", \"cost\": 120}, {\"id\": 104, \"item\": \"Widget D\", \"cost\": 90}, {\"id\": 105, \"item\": \"Widget E\", \"cost\": 200}]" + } + ], + "init": { + "inputs": { + "file_id": "financial_records_2023.csv" + }, + "outputs": { + "rows": "[{\"id\": 101, \"item\": \"Widget A\", \"cost\": 50}, {\"id\": 102, \"item\": \"Widget B\", \"cost\": 75}, {\"id\": 103, \"item\": \"Widget C\", \"cost\": 120}, {\"id\": 104, \"item\": \"Widget D\", \"cost\": 90}, {\"id\": 105, \"item\": \"Widget E\", \"cost\": 200}]" + } + }, + "narrative": "This is the Log Query Terminal, designed to filter through massive data files. It requires inputs from both the Text Normalizer and the ID Validator to execute a precise search." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Zoë façade û ñ" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "Zoë façade û ñ" + } + ], + "init": { + "inputs": { + "text": "Zoë façade û ñ", + "form": "NFC" + }, + "outputs": {} + }, + "narrative": "The Text Normalizer. A utility script used to strip formatting and standardize character sets from raw text inputs." + }, + { + "id": "item_8_a749", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Legacy Hard Drive labeled 'Sector 7 Data'. It contains raw, unformatted integer data." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "4532015890123456" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "4532015890123456" + }, + "outputs": {} + }, + "narrative": "The ID Validator. A security tool that verifies the structural validity of identification numbers using checksum algorithms." + } + ], + "edges": [ + { + "source_id": "container_2", + "target_id": "item_11", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "zlib_deflate", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "container_2_0c39", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_8", + "target_id": "container_2_0c39", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "zlib_deflate", + "target_id": "container_2_0c39", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "csv_query", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "text" + }, + { + "source_id": "unicode_norm", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "select" + }, + { + "source_id": "item_8_a749", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "luhn_check", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "where" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_dc1b3170_narrative.json b/data/questions/10/narrative/skeleton_dc1b3170_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..64285d7243854e92742dafc7d5b15fde988ac86e --- /dev/null +++ b/data/questions/10/narrative/skeleton_dc1b3170_narrative.json @@ -0,0 +1,524 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 10, + "win_node_id": "matter_synthesizer", + "win_condition": { + "type": "tool_output", + "node_id": "matter_synthesizer", + "output_port": "output_slot", + "output_type": "Item", + "description": "Execute Matter Synthesizer and get the output from port 'output_slot'" + }, + "source_init": { + "source_nodes": [ + "matter_synthesizer", + "crypto_rsa_decrypt_hex", + "item_7", + "calc_gcd_1a05", + "calc_bigmul" + ], + "by_node": { + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": {}, + "init_outputs": { + "output_slot": { + "type": "Item", + "description": "Synthesized Object" + } + } + }, + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "n": { + "type": "Big_Int", + "description": "Modulus n" + } + }, + "init_outputs": {} + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "calc_gcd_1a05": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "matter_synthesizer": { + "init_inputs": {}, + "init_outputs": { + "output_slot": "This artifact appears to be a rejected prototype with no function." + } + }, + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "n": "847563920184756293048576129304857692" + }, + "init_outputs": {} + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "print('Initialization_Sequence_Alpha_Complete')" + } + }, + "calc_gcd_1a05": { + "init_inputs": { + "b": "293847561029384756192837465102938475" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "564738291056473829101234567890123456", + "b": "918273645091827364509876543210987654" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The infamous 'Cryptic Killer' has struck again, leaving behind nothing but a sealed laboratory filled with bizarre computational devices. As the lead detective on the case, you've tracked the suspect to this underground bunker, but the reinforced door has locked behind you. The killer loves to play twisted games, turning crucial physical evidence into mathematical riddles and complex digital ciphers. Somewhere hidden within this room's mainframe is the final piece of evidence needed to crack the case wide open. You must navigate through these heavy-duty calculators, decryption terminals, and scattered handwritten notes. Analyze the clues carefully, figure out how to chain the machinery together, and synthesize the ultimate proof before the trail goes cold forever.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "\u001c+n\bVӂ" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_c8648e3174a7d1a5" + } + ], + "init": { + "inputs": {}, + "outputs": { + "output_slot": "This artifact appears to be a rejected prototype with no function." + } + }, + "narrative": "This is the Evidence Fabricator. It requires input from the RSA Decryption Terminal. Once processed, it will reconstruct the final piece of physical evidence." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "496e697469616c697a6174696f6e5f53657175656e63655f416c7068615f436f6d706c6574650a" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "847563920184756293048576129304857692" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "1" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u001c+n\bVӂ" + } + ], + "init": { + "inputs": { + "n": "847563920184756293048576129304857692" + }, + "outputs": {} + }, + "narrative": "This is the RSA Decryption Terminal. It needs inputs from both the Hexadecimal Encoder and the Master GCD Calculator to unlock the cipher." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Initialization_Sequence_Alpha_Complete\n" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "496e697469616c697a6174696f6e5f53657175656e63655f416c7068615f436f6d706c6574650a" + } + ], + "narrative": "This is the Hexadecimal Encoder. It processes data from the Python Execution Console to convert the text format." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "1" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "518584289051357552801425315180571985862231071821431345571333485751812224" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the Master GCD Calculator. It requires inputs from both the Primary GCD Calculator and the Big Number Multiplier." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print('Initialization_Sequence_Alpha_Complete')" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Initialization_Sequence_Alpha_Complete\n" + } + ], + "narrative": "This is the Python Execution Console. It requires input from the Python Script to run the code." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "print('Initialization_Sequence_Alpha_Complete')" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "print('Initialization_Sequence_Alpha_Complete')" + } + }, + "narrative": "A torn piece of paper containing what looks like a Python Script." + }, + { + "id": "calc_gcd_1a05", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "518584289051357552801425315180571985862231071821431345571333485751812224" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "293847561029384756192837465102938475" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "293847561029384756192837465102938475" + }, + "outputs": {} + }, + "narrative": "This is the Primary GCD Calculator. It requires input from the Big Number Multiplier to begin its calculations." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A classic pocket watch belonging to the missing detective. It might hold some clues." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "564738291056473829101234567890123456" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "918273645091827364509876543210987654" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "518584289051357552801425315180571985862231071821431345571333485751812224" + } + ], + "init": { + "inputs": { + "a": "564738291056473829101234567890123456", + "b": "918273645091827364509876543210987654" + }, + "outputs": {} + }, + "narrative": "A heavy-duty Big Number Multiplier designed for crunching massive cryptographic integers." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A faded security keycard found tucked inside a drawer." + } + ], + "edges": [ + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "blueprint" + }, + { + "source_id": "hex_encode", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "calc_gcd", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "d" + }, + { + "source_id": "code_py_exec", + "target_id": "hex_encode", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "text" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "calc_gcd_1a05", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "item_16", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd_1a05", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "item_8", + "target_id": "calc_gcd_1a05", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_dd7f341b_narrative.json b/data/questions/10/narrative/skeleton_dd7f341b_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..023db1cd351630f2d108d523c531c361c8fdbfb0 --- /dev/null +++ b/data/questions/10/narrative/skeleton_dd7f341b_narrative.json @@ -0,0 +1,395 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_5", + "win_condition": { + "type": "item_content", + "node_id": "item_5", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_5", + "iban_validate" + ], + "by_node": { + "item_5": { + "node_name": "", + "node_type": "Item", + "template_id": "item_5", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "iban_validate": { + "node_name": "IBAN Validator", + "node_type": "Tool", + "template_id": "iban_validate", + "init_inputs": { + "iban": { + "type": "Text_Generic", + "description": "IBAN string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_5": { + "init_inputs": {}, + "init_outputs": { + "content": "e4d2a1b9c8f3e5d6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0" + } + }, + "iban_validate": { + "init_inputs": { + "iban": "DE45732010040056128900" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the dark, humming server room of the abandoned orbital station 'Aegis-VII'. The station's rogue AI has locked down all sectors, threatening to vent the life support systems into the cold vacuum of space. Your only chance of survival is to extract the master override key hidden within the mainframe's physical storage arrays. Scattered around you are offline memory cores, sealed biometric vaults, and disconnected routing terminals. You must logically restore the station's data flow, decrypt the system's fail-safes, and secure the override before your oxygen runs out.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "item_5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "e4d2a1b9c8f3e5d6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "e4d2a1b9c8f3e5d6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0" + } + }, + "narrative": "A heavily encrypted Mainframe Access Drive containing the final system override." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is Data Core Alpha, a glowing cylindrical memory unit." + }, + { + "id": "item_8_36c1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is Data Core Beta, a dormant memory core pulsing with a faint blue light." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Temporal Sync Module, an old device displaying shifting chronal waves." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "789c734bcc294e0500057601ec" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Biometric Secure Vault. It requires input from the Data Compression Terminal to unlock its reinforced doors." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "False" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c734bcc294e0500057601ec" + } + ], + "narrative": "This is the Data Compression Terminal. It requires input from the Financial Routing Validator to process the algorithms." + }, + { + "id": "item_8_7f42", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is Data Core Gamma, a fractured memory cylinder emitting a low hum." + }, + { + "id": "item_16_0761", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Chronos Interface, an inactive temporal control board." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "DE45732010040056128900" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "init": { + "inputs": { + "iban": "DE45732010040056128900" + }, + "outputs": {} + }, + "narrative": "This is the Financial Routing Validator, an old corporate network terminal used to verify secure interstellar transactions." + }, + { + "id": "item_16_75ba", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the System Clock Display, a digital readout showing the station's localized time." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_36c1", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_36c1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "zlib_deflate", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8_7f42", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_16_0761", + "target_id": "item_8_7f42", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "iban_validate", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "text" + }, + { + "source_id": "item_16_75ba", + "target_id": "iban_validate", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_e2d68aa4_narrative.json b/data/questions/10/narrative/skeleton_e2d68aa4_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..ad6890e69cc2ce2666dd92e6938477b19bf2ad6b --- /dev/null +++ b/data/questions/10/narrative/skeleton_e2d68aa4_narrative.json @@ -0,0 +1,475 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "container_4", + "win_condition": { + "type": "item_content", + "node_id": "container_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_4", + "text_xor_hex", + "hash_sha256", + "zip_unzip_item" + ], + "by_node": { + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "text_xor_hex": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_a": { + "type": "Hex_String", + "description": "Hex A" + }, + "hex_b": { + "type": "Hex_String", + "description": "Hex B" + } + }, + "init_outputs": {} + }, + "hash_sha256": { + "node_name": "SHA-256 Hasher", + "node_type": "Tool", + "template_id": "hash_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_4": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "XylophoneQuasarNebulaZephyrKaleidoscope" + } + }, + "text_xor_hex": { + "init_inputs": { + "hex_a": "123456789abcdef0123456789abcdef0", + "hex_b": "0fedcba9876543210fedcba987654321" + }, + "init_outputs": {} + }, + "hash_sha256": { + "init_inputs": { + "text": "Initiating the hashing sequence with this text." + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "confidential_data.zip", + "password": "access_granted_2024" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You stand in the sleek, dimly lit office of the 'Shadow Broker,' an elusive financial criminal known for laundering money through complex digital channels. The air is cold, humming with the sound of server racks hidden behind mahogany panels. You have infiltrated this secure facility with one goal: open the Master Vault and secure the ledger that proves the syndicate's guilt. The room is filled with specialized cryptographic tools and security devices. You must decipher the flow of data, decrypt the security protocols, and bypass the biometric locks before the security team arrives. Every device here is part of a larger puzzle; understanding how they connect is the key to your success.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "False" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "XylophoneQuasarNebulaZephyrKaleidoscope" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "XylophoneQuasarNebulaZephyrKaleidoscope" + } + }, + "narrative": "The Master Vault. The massive titanium door shielding the syndicate's darkest secrets. It requires a positive validation signal from the Financial Verification System to release its magnetic seals." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A sensitive folder containing classified routing numbers and time-sensitive financial data." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "Hdmd0R3ZndEd2Z3RHdmd0Q==" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "The Financial Verification System. A terminal connected to the global banking network. It requires the encoded string from the Protocol Encoder to validate the international bank account number." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "48b59d414c331f54b0128b02a4c0f24e1cad85c5fff1203986e60c4b0b63df20" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Biometric Safe. A heavy steel box protected by a digital fingerprint scanner. It requires the calculated hash output from the Biometric Hashing Console to disengage the lock." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "1dd99dd11dd99dd11dd99dd11dd99dd1" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "Hdmd0R3ZndEd2Z3RHdmd0Q==" + } + ], + "narrative": "The Protocol Encoder. A dedicated server module that translates raw data into transmission formats. It requires the decrypted hex output from the Signal Decryption Unit to generate a compatible string." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A sealed security box. It appears to hold physical components required for further access." + }, + { + "id": "item_16_fc90", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A digital storage unit labeled 'Recovered Media'. It contains locked files." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "123456789abcdef0123456789abcdef0" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "0fedcba9876543210fedcba987654321" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "1dd99dd11dd99dd11dd99dd11dd99dd1" + } + ], + "init": { + "inputs": { + "hex_a": "123456789abcdef0123456789abcdef0", + "hex_b": "0fedcba9876543210fedcba987654321" + }, + "outputs": {} + }, + "narrative": "The Signal Decryption Unit. A hardware device used to merge and decipher two separate hexadecimal signal sources." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Initiating the hashing sequence with this text." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "48b59d414c331f54b0128b02a4c0f24e1cad85c5fff1203986e60c4b0b63df20" + } + ], + "init": { + "inputs": { + "text": "Initiating the hashing sequence with this text." + }, + "outputs": {} + }, + "narrative": "The Biometric Hashing Console. A security device that converts text input into a secure SHA-256 fingerprint hash." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "confidential_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "access_granted_2024" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "confidential_data.zip", + "password": "access_granted_2024" + }, + "outputs": {} + }, + "narrative": "The Encrypted Archives Terminal. A workstation designed specifically to extract files from password-protected digital evidence found on site." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "iban_validate", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "fingerprint_input" + }, + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "base64_encode", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "iban" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_16_fc90", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "text_xor_hex", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "hash_sha256", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16_fc90", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_e945ba46_narrative.json b/data/questions/10/narrative/skeleton_e945ba46_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..55a5201e78cf2a2f129d7ec057b5d8fbc9f48faa --- /dev/null +++ b/data/questions/10/narrative/skeleton_e945ba46_narrative.json @@ -0,0 +1,623 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "hex_decode", + "win_condition": { + "type": "tool_output", + "node_id": "hex_decode", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute Hex to Text Decoder and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "hex_encode", + "terminal_2", + "container_1", + "calc_gcd", + "matter_synthesizer", + "graph_shortest_path", + "item_9" + ], + "by_node": { + "hex_encode": { + "node_name": "Text to Hex Encoder", + "node_type": "Tool", + "template_id": "hex_encode", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + } + } + }, + "initial_values": { + "hex_encode": { + "init_inputs": { + "text": "Initiate secure transmission protocol alpha." + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num2": "82736459102938475610293847" + }, + "init_outputs": { + "text_result": "Operation pending: awaiting secondary numerical input.", + "hex_result": "1a2b3c4d5e6f7890aabbccdd" + } + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "f1e2d3c4b5a6978877665544" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "39485726150493827160594837" + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "Blueprint: Hyper-Dense Alloy Cube v2.0" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Alpha_Station", + "dst": "Omega_Outpost" + }, + "init_outputs": { + "path": "[\"Alpha_Station\", \"Node_89\", \"Relay_X\", \"Junction_5\", \"Omega_Outpost\"]", + "cost": "84392" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "galactic_map_data.json" + } + } + }, + "intro_narrative": "You have awakened in the forgotten Sanctum of Archmage Velrys. The air hums with latent arcane energy, and the heavy stone doors have sealed themselves shut behind you. Dust motes dance in the shafts of moonlight piercing through the shattered ceiling. According to legend, the Archmage concealed his true name—a word of immense power—within the sanctum's ancient mechanisms. To escape this magical prison, you must decipher the artifacts scattered around the room and translate the final incantation. The mystical tools, runic devices, and glowing relics left behind by the mad wizard are your only hope. Unravel the threads of magic, understand the connections between these strange devices, and find the hidden truth to unlock the way out before the sanctum's defensive wards consume you entirely.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "496e69746961746520736563757265207472616e736d697373696f6e2070726f746f636f6c20616c7068612e" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "Initiate secure transmission protocol alpha." + } + ], + "narrative": "A towering stone slab covered in shifting runes. It requires input from the Whispering Scribe to reveal the final spell." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Initiate secure transmission protocol alpha." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "496e69746961746520736563757265207472616e736d697373696f6e2070726f746f636f6c20616c7068612e" + } + ], + "init": { + "inputs": { + "text": "Initiate secure transmission protocol alpha." + }, + "outputs": {} + }, + "narrative": "The Whispering Scribe is an enchanted quill and parchment that automatically transcribes thoughts into arcane symbols." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Ethereal Core is a pulsating magical anomaly radiating pure, unshaped ethereal energy across the room." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Chronos Crystal is a glowing gemstone deeply infused with ancient temporal magic and cosmic vibrations." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "82736459102938475610293847" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Operation pending: awaiting secondary numerical input." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7890aabbccdd" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num2": "82736459102938475610293847" + }, + "outputs": { + "text_result": "Operation pending: awaiting secondary numerical input.", + "hex_result": "1a2b3c4d5e6f7890aabbccdd" + } + }, + "narrative": "The Altar of Equations is a mystical calculating station used for numeromancy. It requires input from the GCD Astrolabe." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_02875d63d7290b93" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "f1e2d3c4b5a6978877665544" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "f1e2d3c4b5a6978877665544" + }, + "outputs": {} + }, + "narrative": "The Sealed Reliquary is a heavy locked chest secured with advanced magical warding and complex spells." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "39485726150493827160594837" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "84392" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "39485726150493827160594837" + }, + "outputs": {} + }, + "narrative": "The GCD Astrolabe is a brass astronomical device used to align mystical frequencies. It requires input from the Leyline Map Reader." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Blueprint: Hyper-Dense Alloy Cube v2.0" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_02875d63d7290b93" + } + ], + "init": { + "inputs": { + "blueprint": "Blueprint: Hyper-Dense Alloy Cube v2.0" + }, + "outputs": {} + }, + "narrative": "The Forge of Creation is a glowing magical anvil capable of manifesting physical objects from pure arcane blueprints." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "galactic_map_data.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Alpha_Station" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Omega_Outpost" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Alpha_Station\", \"Node_89\", \"Relay_X\", \"Junction_5\", \"Omega_Outpost\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "84392" + } + ], + "init": { + "inputs": { + "src": "Alpha_Station", + "dst": "Omega_Outpost" + }, + "outputs": { + "path": "[\"Alpha_Station\", \"Node_89\", \"Relay_X\", \"Junction_5\", \"Omega_Outpost\"]", + "cost": "84392" + } + }, + "narrative": "The Leyline Map Reader is an ancient navigational compass. It requires input from the Cartographer's Satchel to chart a path." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "galactic_map_data.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "galactic_map_data.json" + } + }, + "narrative": "The Cartographer's Satchel is a weathered leather bag containing ancient charts of the world's magical leylines." + } + ], + "edges": [ + { + "source_id": "hex_encode", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_8", + "target_id": "hex_encode", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "container_1", + "target_id": "terminal_2", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num1" + }, + { + "source_id": "matter_synthesizer", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "item_9", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_ea421e92_narrative.json b/data/questions/10/narrative/skeleton_ea421e92_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..ea85b7236a540e220742878405e31496909090cd --- /dev/null +++ b/data/questions/10/narrative/skeleton_ea421e92_narrative.json @@ -0,0 +1,445 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 11, + "win_node_id": "crypto_rsa_decrypt_hex", + "win_condition": { + "type": "tool_output", + "node_id": "crypto_rsa_decrypt_hex", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute RSA Decrypt and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "crypto_rsa_decrypt_hex", + "item_2" + ], + "by_node": { + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "n": { + "type": "Big_Int", + "description": "Modulus n" + } + }, + "init_outputs": {} + }, + "item_2": { + "node_name": "", + "node_type": "Item", + "template_id": "item_2", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Text_Generic", + "description": "The text" + } + } + } + } + }, + "initial_values": { + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "n": "2984710394857263819475826493018273645" + }, + "init_outputs": {} + }, + "item_2": { + "init_inputs": {}, + "init_outputs": { + "content": "Start processing textual data for bidi sanitization." + } + } + }, + "intro_narrative": "You awaken aboard the abandoned space station 'Helios-9', drifting aimlessly in the outer rim. The emergency lights cast long, eerie shadows down the metallic corridors, and the hum of the central AI has gone completely silent. A rogue containment protocol has sealed the blast doors, trapping you in the command sector. Oxygen levels are slowly dropping, and your only hope of survival is to manually override the station's mainframe and initiate a reboot sequence. However, the system's security architecture was designed to withstand a digital siege. You'll need to locate various scattered components, decipher corrupted logs, and piece together fractured data systems to unlock the core. Every tool and device you find must be used in a precise sequence to bypass the rigorous cryptographic safeguards. Time is running out. Can you restore power and escape before the station becomes your tomb?", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "2f06aa3978bb3e1788d3cdb5b03022451c9616dcc5d735a2e906c4791d08d72f" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "2984710394857263819475826493018273645" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": 4175946346 + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0002\u001138t0i0" + } + ], + "init": { + "inputs": { + "n": "2984710394857263819475826493018273645" + }, + "outputs": {} + }, + "narrative": "The mainframe core unlocker. It requires inputs from both the integrity validator and the security authenticator to breach the AI." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "b5d0c41fb771ef209853ce5c8d55eb7f" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "f8e7e26a" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 4175946346 + } + ], + "narrative": "An integrity validator. It requires input from the data condenser to verify structural soundness." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Start processing textual data for bidi sanitization." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "b5d0c41fb771ef209853ce5c8d55eb7f" + } + ], + "narrative": "This is a data condenser. It processes data from the text filter module to generate a footprint." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A damaged memory chip extracted from a deactivated android. It contains fragmented files." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "b5d0c41fb771ef209853ce5c8d55eb7f" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Start processing textual data for bidi sanitization." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "2f06aa3978bb3e1788d3cdb5b03022451c9616dcc5d735a2e906c4791d08d72f" + } + ], + "narrative": "This is a security authenticator. It needs inputs from both the data condenser and the text filter module to authorize clearance." + }, + { + "id": "item_8_8909", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An old security keycard belonging to the chief engineer. The magnetic strip is worn." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Start processing textual data for bidi sanitization." + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "Start processing textual data for bidi sanitization." + } + ], + "narrative": "This is a text filter module. It requires input from the discarded datapad to process the raw logs." + }, + { + "id": "item_8_9cf5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A biometric bypass relay used to spoof scanner signatures. It is cracked but functional." + }, + { + "id": "item_8_891e", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A dormant power cell used for auxiliary systems. It holds a faint, residual charge." + }, + { + "id": "item_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Text_Generic", + "description": "The text", + "value": "Start processing textual data for bidi sanitization." + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "Start processing textual data for bidi sanitization." + } + }, + "narrative": "A discarded datapad found near the airlock. Its screen flickers with corrupted logs." + } + ], + "edges": [ + { + "source_id": "checksum_crc32", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "d" + }, + { + "source_id": "hash_md5", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_8", + "target_id": "hash_md5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "hmac_sha256", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "item_8_8909", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "item_8_9cf5", + "target_id": "hmac_sha256", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "hash_md5", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "hmac_sha256", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "item_8_891e", + "target_id": "item_8_9cf5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_2", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "content", + "target_port": "text" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_f344f8a8_narrative.json b/data/questions/10/narrative/skeleton_f344f8a8_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..74ff8800b6ca222a800e852695bb0b2eb704320d --- /dev/null +++ b/data/questions/10/narrative/skeleton_f344f8a8_narrative.json @@ -0,0 +1,586 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 9, + "win_node_id": "item_8", + "win_condition": { + "type": "item_content", + "node_id": "item_8", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_8", + "terminal_1", + "regex_search", + "code_py_exec", + "zip_unzip_file", + "container_3" + ], + "by_node": { + "item_8": { + "node_name": "", + "node_type": "Item", + "template_id": "item_8", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hidden_Item", + "description": "The integer" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "pattern": { + "type": "Text_Generic", + "description": "Regex pattern" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "code_py_exec": { + "node_name": "Python Executor", + "node_type": "Tool", + "template_id": "code_py_exec", + "init_inputs": { + "code": { + "type": "Code_Python", + "description": "Python code" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": { + "fingerprint_input": { + "type": "Big_Int", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_8": { + "init_inputs": {}, + "init_outputs": { + "content": "THAT_S_ONE_SMALL_STEP_FOR_A_MAN_1969" + } + }, + "terminal_1": { + "init_inputs": { + "slot_b": "9283746510293847561029384" + }, + "init_outputs": { + "text_output": "Standard terminal output message sequence initiated.", + "hex_output": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6", + "item_dispenser": "Dispensed meaningless token item." + } + }, + "regex_search": { + "init_inputs": { + "pattern": "[a-zA-Z0-9_]{5,15}" + }, + "init_outputs": { + "matches": "[\"found_item_1\", \"match_result_2\", \"pattern_hit_3\"]" + } + }, + "code_py_exec": { + "init_inputs": { + "code": "print('Initializing Python execution environment...')\nx = 100\ny = 200\nprint(f'Calculated sum: {x + y}')" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "project_archive_v2.zip", + "password": "SecurePassword123!" + }, + "init_outputs": { + "files": "extracted_manifest.json" + } + }, + "container_3": { + "init_inputs": { + "fingerprint_input": "5566778899001122334455667" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The sky has been ash-gray for two decades. You are a Scavenger exploring the ruins of Outpost Echo, a rumored pre-collapse data center. Your ultimate prize is the Final Datapad, which supposedly contains coordinates to the last clean water reservoir on the continent. However, the outpost's systems are deadlocked in a web of corrupted files and heavy biometric locks. You must comb through the rusted machinery, scavenging data disks, bypassing old terminals, and piecing together fragmented codes. Every lockbox and old console is a piece of the puzzle. Restore the flow of data, bypass the security vaults, and claim the datapad to secure humanity's survival.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer", + "value": "THAT_S_ONE_SMALL_STEP_FOR_A_MAN_1969" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "THAT_S_ONE_SMALL_STEP_FOR_A_MAN_1969" + } + }, + "narrative": "A heavily armored datapad containing the ultimate access codes for the bunker." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A slightly scorched data disk recovered from the ruins." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Main Vault. It requires input from the Mainframe Terminal to unlock its mechanisms." + }, + { + "id": "item_8_ff6f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A small, dust-covered memory chip with eroded contact pins." + }, + { + "id": "item_16_ca05", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An old, rusted data disk found in the wasteland debris." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"found_item_1\", \"match_result_2\", \"pattern_hit_3\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "9283746510293847561029384" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Standard terminal output message sequence initiated." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Dispensed meaningless token item." + } + ], + "init": { + "inputs": { + "slot_b": "9283746510293847561029384" + }, + "outputs": { + "text_output": "Standard terminal output message sequence initiated.", + "hex_output": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6", + "item_dispenser": "Dispensed meaningless token item." + } + }, + "narrative": "This is the Mainframe Terminal. It requires input from the Network Scanner to initiate its systems." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "[a-zA-Z0-9_]{5,15}" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "extracted_manifest.json" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "Initializing Python execution environment...\nCalculated sum: 300\n" + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"found_item_1\", \"match_result_2\", \"pattern_hit_3\"]" + } + ], + "init": { + "inputs": { + "pattern": "[a-zA-Z0-9_]{5,15}" + }, + "outputs": { + "matches": "[\"found_item_1\", \"match_result_2\", \"pattern_hit_3\"]" + } + }, + "narrative": "This is the Network Scanner. It requires inputs from both the Diagnostic Console and the Archive Extractor to function." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print('Initializing Python execution environment...')\nx = 100\ny = 200\nprint(f'Calculated sum: {x + y}')" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Initializing Python execution environment...\nCalculated sum: 300\n" + } + ], + "init": { + "inputs": { + "code": "print('Initializing Python execution environment...')\nx = 100\ny = 200\nprint(f'Calculated sum: {x + y}')" + }, + "outputs": {} + }, + "narrative": "An old diagnostic console salvaged from a military outpost." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "project_archive_v2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_manifest.json" + } + ], + "init": { + "inputs": { + "zip_id": "project_archive_v2.zip", + "password": "SecurePassword123!" + }, + "outputs": { + "files": "extracted_manifest.json" + } + }, + "narrative": "A rugged field laptop used for archive extraction." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "5566778899001122334455667" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "5566778899001122334455667" + }, + "outputs": {} + }, + "narrative": "A battered metal lockbox left behind by previous scavengers." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_8_ff6f", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_16_ca05", + "target_id": "item_8_ff6f", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "regex_search", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "slot_a" + }, + { + "source_id": "code_py_exec", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "text" + }, + { + "source_id": "zip_unzip_file", + "target_id": "regex_search", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "container_3", + "target_id": "zip_unzip_file", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/10/narrative/skeleton_f59bfe1e_narrative.json b/data/questions/10/narrative/skeleton_f59bfe1e_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..50b6f3681057b434003b67c9199aa97523b6d4bf --- /dev/null +++ b/data/questions/10/narrative/skeleton_f59bfe1e_narrative.json @@ -0,0 +1,645 @@ +{ + "metadata": { + "total_nodes": 10, + "total_edges": 13, + "win_node_id": "crypto_rsa_decrypt_hex", + "win_condition": { + "type": "tool_output", + "node_id": "crypto_rsa_decrypt_hex", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute RSA Decrypt and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "calc_inv_mod", + "graph_shortest_path", + "text_xor_hex", + "container_4" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "text_xor_hex": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_a": { + "type": "Hex_String", + "description": "Hex A" + }, + "hex_b": { + "type": "Hex_String", + "description": "Hex B" + } + }, + "init_outputs": {} + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Calculation logic initialized successfully.", + "hex_result": "492a8d3b1e7c5f0a492a8d3b1e7c5f0a492a8d3b1e7c5f0a492a8d3b1e7c5f0a", + "math_token": "MATH_TOKEN_SEQ_9921" + } + }, + "calc_inv_mod": { + "init_inputs": { + "mod": "104729" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_graph_v4.json", + "src": "Data_Center_North", + "dst": "Edge_Node_South" + }, + "init_outputs": { + "path": "[\"Data_Center_North\", \"Switch_Core_01\", \"Router_Edge_A\", \"Edge_Node_South\"]", + "cost": "16" + } + }, + "text_xor_hex": { + "init_inputs": { + "hex_a": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "hex_b": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6" + }, + "init_outputs": {} + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "device_fp_hash_x92834" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You have successfully infiltrated the underground data bunker of a notorious dark web syndicate. The server room is bathed in harsh blue LED lights, humming with the sheer processing power of stolen classified data. Your objective is to extract a highly sensitive government dossier before the automated counter-intrusion software wipes the drives completely. The system is layered with complex digital locks, encrypted firewalls, and fragmented security protocols. You must navigate the interconnected server nodes, route the correct data streams, and fully bypass the security matrix to retrieve the file and escape before you are discovered.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "492a8d3b1e7c5f0a492a8d3b1e7c5f0a492a8d3b1e7c5f0a492a8d3b1e7c5f0a" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "16" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": 2866354172 + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0000" + } + ], + "narrative": "This is the Main Decryption Console. It requires inputs from the Security Terminal, the Secondary Validator, and the Network Router to finally breach the encrypted file." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "96580" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": 293885266 + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation logic initialized successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "492a8d3b1e7c5f0a492a8d3b1e7c5f0a492a8d3b1e7c5f0a492a8d3b1e7c5f0a" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "MATH_TOKEN_SEQ_9921" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Calculation logic initialized successfully.", + "hex_result": "492a8d3b1e7c5f0a492a8d3b1e7c5f0a492a8d3b1e7c5f0a492a8d3b1e7c5f0a", + "math_token": "MATH_TOKEN_SEQ_9921" + } + }, + "narrative": "This is the Security Terminal. It requires inputs from both the Primary Validator and the Signal Converter before it can grant access." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "492a8d3b1e7c5f0a492a8d3b1e7c5f0a492a8d3b1e7c5f0a492a8d3b1e7c5f0a" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "aad917fc" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2866354172 + } + ], + "narrative": "This is the Secondary Validator. It requires input from the Security Terminal to continue the sequential verification process." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A dusty Timezone Log left behind by a careless administrator." + }, + { + "id": "checksum_crc32_c153", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "bb99ff99bb99dd3355ddffdd99ff99bb" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "11845552" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 293885266 + } + ], + "narrative": "This is the Primary Validator. It requires input from the Data Combiner to run its structural integrity checks." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "96580" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 293885266 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "96580" + } + ], + "narrative": "This is the Signal Converter. It requires inputs from the Quantum Inverter, the Primary Validator, and the Network Router to function properly." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 293885266 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "96580" + } + ], + "init": { + "inputs": { + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "This is the Quantum Inverter. It requires input from the Primary Validator to successfully reverse the digital frequency." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_graph_v4.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Data_Center_North" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Edge_Node_South" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Data_Center_North\", \"Switch_Core_01\", \"Router_Edge_A\", \"Edge_Node_South\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "16" + } + ], + "init": { + "inputs": { + "file_id": "network_graph_v4.json", + "src": "Data_Center_North", + "dst": "Edge_Node_South" + }, + "outputs": { + "path": "[\"Data_Center_North\", \"Switch_Core_01\", \"Router_Edge_A\", \"Edge_Node_South\"]", + "cost": "16" + } + }, + "narrative": "A Network Router displaying an intricate web of active server connections." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "bb99ff99bb99dd3355ddffdd99ff99bb" + } + ], + "init": { + "inputs": { + "hex_a": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "hex_b": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6" + }, + "outputs": {} + }, + "narrative": "A Data Combiner module used to seamlessly merge raw digital fragments." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "device_fp_hash_x92834" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "device_fp_hash_x92834" + }, + "outputs": {} + }, + "narrative": "A heavy Biometric Vault securely embedded into the main server rack." + } + ], + "edges": [ + { + "source_id": "terminal_2", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex_cipher" + }, + { + "source_id": "checksum_crc32", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "d" + }, + { + "source_id": "item_16", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32_c153", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num2" + }, + { + "source_id": "terminal_2", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num1" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "s" + }, + { + "source_id": "checksum_crc32_c153", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "checksum_crc32_c153", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "n" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "from_base" + }, + { + "source_id": "text_xor_hex", + "target_id": "checksum_crc32_c153", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "container_4", + "target_id": "num_base_convert", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_0284d300_narrative.json b/data/questions/15/narrative/skeleton_0284d300_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..f3963f9acca145b3d762b89c4d025e5e91b43856 --- /dev/null +++ b/data/questions/15/narrative/skeleton_0284d300_narrative.json @@ -0,0 +1,758 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 15, + "win_node_id": "hex_encode", + "win_condition": { + "type": "tool_output", + "node_id": "hex_encode", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute Text to Hex Encoder and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "base64_decode", + "num_base_convert", + "graph_shortest_path", + "item_7", + "luhn_check", + "calc_bigmul_153f" + ], + "by_node": { + "base64_decode": { + "node_name": "Base64 Decoder", + "node_type": "Tool", + "template_id": "base64_decode", + "init_inputs": { + "data": { + "type": "Text_Generic", + "description": "Base64 string" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + }, + "calc_bigmul_153f": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "base64_decode": { + "init_inputs": { + "data": "U2VjcmV0SW5pdGlhbGl6YXRpb25EYXRhU3RyZWFtMTIzNDU2" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "from_base": "10" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "core_network_topology_v4.json", + "dst": "Datacenter_Region_East_Backup" + }, + "init_outputs": { + "path": "[\"Gateway_Node_Alpha\", \"Router_Cluster_07\", \"Switch_Fabric_99\", \"Firewall_Edge_Secure\", \"Datacenter_Region_East_Backup\"]", + "cost": "16" + } + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "print('Gateway_Node_Alpha')" + } + }, + "luhn_check": { + "init_inputs": { + "number": "4556737586899855" + }, + "init_outputs": {} + }, + "calc_bigmul_153f": { + "init_inputs": { + "a": "83746510293847561029384756", + "b": "38475610293847561029837465" + }, + "init_outputs": {} + } + }, + "intro_narrative": "Welcome to the forgotten Sanctum of Eldoria. You are an apprentice mage who has accidentally wandered into the archmage's forbidden laboratory. The door has sealed itself shut behind you, and the magical wards are slowly draining the oxygen from the room. To escape, you must reawaken the ancient magical artifacts scattered around the room and reconstruct the master's final spell. The magic flows in mysterious ways, and many objects will only reveal their true nature when infused with the energy of others. Pay close attention to how the magical essence must be channeled between the relics. Time is running out.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "SecretInitializationDataStream123456" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "536563726574496e697469616c697a6174696f6e4461746153747265616d313233343536" + } + ], + "narrative": "This is the Rune Translator. It requires input from the Ancient Cipher Scroll to function and reveal the final path." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "536563726574496e697469616c697a6174696f6e4461746153747265616d313233343536" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "SecretInitializationDataStream123456" + } + ], + "narrative": "This is the Ancient Cipher Scroll. It requires input from the Moonlight Altar to decipher its secrets." + }, + { + "id": "base64_decode", + "name": "Base64 Decoder", + "description": "Decode base64 to hex bytes.", + "type": "Tool", + "template_id": "base64_decode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "data", + "type": "Text_Generic", + "description": "Base64 string", + "value": "U2VjcmV0SW5pdGlhbGl6YXRpb25EYXRhU3RyZWFtMTIzNDU2" + } + ], + "outputs": [ + { + "name": "bytes_hex", + "type": "Hex_String", + "description": "Decoded bytes as Hex", + "value": "536563726574496e697469616c697a6174696f6e4461746153747265616d313233343536" + } + ], + "init": { + "inputs": { + "data": "U2VjcmV0SW5pdGlhbGl6YXRpb25EYXRhU3RyZWFtMTIzNDU2" + }, + "outputs": {} + }, + "narrative": "A serene Moonlight Altar covered in forgotten inscriptions." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A fragile Crystal Vial that seems to hold a swirling mist." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "89cb7a7afe61c9a8a878a98def99122d0c7b895f1140" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Sealed Golden Chest. It requires input from the Elemental Transmuter to shatter its protective ward." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "51555169496572351235601425533589379179675962058936640" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "16" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "89cb7a7afe61c9a8a878a98def99122d0c7b895f1140" + } + ], + "init": { + "inputs": { + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the Elemental Transmuter. It requires inputs from both the Astrolabe of Destiny and the Arcane Amplifier to stabilize its magic." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "core_network_topology_v4.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Gateway_Node_Alpha\n" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Datacenter_Region_East_Backup" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Gateway_Node_Alpha\", \"Router_Cluster_07\", \"Switch_Fabric_99\", \"Firewall_Edge_Secure\", \"Datacenter_Region_East_Backup\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "16" + } + ], + "init": { + "inputs": { + "file_id": "core_network_topology_v4.json", + "dst": "Datacenter_Region_East_Backup" + }, + "outputs": { + "path": "[\"Gateway_Node_Alpha\", \"Router_Cluster_07\", \"Switch_Fabric_99\", \"Firewall_Edge_Secure\", \"Datacenter_Region_East_Backup\"]", + "cost": "16" + } + }, + "narrative": "This is the Astrolabe of Destiny. It requires input from the Spell Weaver's Loom to chart the correct stellar path." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print('Gateway_Node_Alpha')" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Gateway_Node_Alpha\n" + } + ], + "narrative": "This is the Spell Weaver's Loom. It requires input from the Torn Spellbook Page to weave the incantation." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "print('Gateway_Node_Alpha')" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "print('Gateway_Node_Alpha')" + } + }, + "narrative": "A Torn Spellbook Page containing faint, glowing magical writings." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "true" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Ironbound Vault. It requires input from the Oracle's Pendulum to unlock its heavy doors." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Dusty Grimoire that has not been opened in centuries." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "4556737586899855" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "true" + } + ], + "init": { + "inputs": { + "number": "4556737586899855" + }, + "outputs": {} + }, + "narrative": "An Oracle's Pendulum, traditionally used for truth divination." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "3222198093535771952225089095849336198729747628683540" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "16" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "51555169496572351235601425533589379179675962058936640" + } + ], + "narrative": "This is the Arcane Amplifier. It requires inputs from both the Astrolabe of Destiny and the Magical Resonator to channel its immense power." + }, + { + "id": "calc_bigmul_153f", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "83746510293847561029384756" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "38475610293847561029837465" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "3222198093535771952225089095849336198729747628683540" + } + ], + "init": { + "inputs": { + "a": "83746510293847561029384756", + "b": "38475610293847561029837465" + }, + "outputs": {} + }, + "narrative": "A Magical Resonator humming softly with dormant energy." + }, + { + "id": "item_8_26bf", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A small Hidden Compartment tucked away in the shadows of the laboratory." + } + ], + "edges": [ + { + "source_id": "hex_decode", + "target_id": "hex_encode", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "base64_decode", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "bytes_hex", + "target_port": "hex" + }, + { + "source_id": "item_16", + "target_id": "base64_decode", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "container_3", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "num_base_convert", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "fingerprint_input" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "to_base" + }, + { + "source_id": "code_py_exec", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "src" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "container_4", + "target_id": "code_py_exec", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "item_8", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "luhn_check", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "calc_bigmul_153f", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "item_8_26bf", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_031b58b6_narrative.json b/data/questions/15/narrative/skeleton_031b58b6_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..385d60a6271b16580ba03a980a8649a3e9c49947 --- /dev/null +++ b/data/questions/15/narrative/skeleton_031b58b6_narrative.json @@ -0,0 +1,765 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 14, + "win_node_id": "item_1", + "win_condition": { + "type": "item_content", + "node_id": "item_1", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_1", + "crypto_rsa_decrypt_hex", + "hmac_sha256", + "checksum_crc32", + "calc_modexp", + "terminal_2" + ], + "by_node": { + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "d": { + "type": "Big_Int", + "description": "Private exponent d" + } + }, + "init_outputs": {} + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + } + } + }, + "initial_values": { + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "4810293847561029384756192837463582" + } + }, + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "d": "9283746510293847561029384756129834" + }, + "init_outputs": {} + }, + "hmac_sha256": { + "init_inputs": { + "text": "Initiating HMAC calculation sequence with secure payload." + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "abcdef1234567890abcdef1234567890" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "314159265358979323846264338327", + "exp": "271828182845904523536028747135", + "mod": "104729" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "1000000000000000000012345", + "num2": "2000000000000000000023456" + }, + "init_outputs": { + "text_result": "Terminal calculation output pending verification.", + "hex_result": "00112233445566778899aabbccddeeff", + "math_token": "Math_Auth_Token_V1" + } + } + }, + "intro_narrative": "The surface world burned decades ago, leaving humanity to survive in subterranean bunkers. You are a scavenger who has stumbled upon Outpost Delta, a legendary military installation rumored to hold an untainted water purifier. The air is stale, and the emergency lights flicker ominously. Your Geiger counter clicks erratically, warning you that time is short. To secure the purifier and escape, you must navigate the outpost's ancient security systems, restore power to the forgotten consoles, and unlock the heavy blast doors before the radiation levels become lethal.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "4810293847561029384756192837463582" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "4810293847561029384756192837463582" + } + }, + "narrative": "The final escape hatch leading to the surface. Its thick steel wheel is cold to the touch, representing your only way out of this irradiated outpost." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavily encrypted data module salvaged from the ruins of the lower levels." + }, + { + "id": "item_8_3cbb", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A corroded memory drive caked in irradiated dust and dried mud." + }, + { + "id": "item_8_aff5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A dusty datapad with a cracked screen that barely functions." + }, + { + "id": "item_8_558e", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A broken transmitter unit, its wires exposed and sparking." + }, + { + "id": "item_8_41f4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A rusted scrap metal box that has been roughly welded shut." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A faded blueprint detailing the outpost's original schematics." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "L" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The heavy blast door sealing off the most secure sector. It requires input from the central decryption console to disengage its locks." + }, + { + "id": "item_8_bb8d", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A buried cache protruding from the radioactive dirt in the corner." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "18f543cadb380b000b607d0d2bbdf1ff173186d0718ab5e56183d9d64ef71b4c" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "99941" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "9283746510293847561029384756129834" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "L" + } + ], + "init": { + "inputs": { + "d": "9283746510293847561029384756129834" + }, + "outputs": {} + }, + "narrative": "The central decryption console, an old-world military computer still humming with power. It requires inputs from both the authorization scanner and the quantum processor to function." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "07d06023" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Initiating HMAC calculation sequence with secure payload." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "18f543cadb380b000b607d0d2bbdf1ff173186d0718ab5e56183d9d64ef71b4c" + } + ], + "init": { + "inputs": { + "text": "Initiating HMAC calculation sequence with secure payload." + }, + "outputs": {} + }, + "narrative": "The authorization scanner, a wall-mounted verification system. It requires input from the diagnostic tool to authenticate the signals." + }, + { + "id": "container_4_ce5e", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Terminal calculation output pending verification." + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The medical safe, a reinforced container holding old-world supplies. It requires input from the wasteland terminal to open." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "abcdef1234567890abcdef1234567890" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "07d06023" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 131096611 + } + ], + "init": { + "inputs": { + "hex": "abcdef1234567890abcdef1234567890" + }, + "outputs": {} + }, + "narrative": "The diagnostic tool, a handheld device once used by engineers for checking data integrity." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "314159265358979323846264338327" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "271828182845904523536028747135" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "99941" + } + ], + "init": { + "inputs": { + "base": "314159265358979323846264338327", + "exp": "271828182845904523536028747135", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "The quantum processor, a rugged computation module salvaged from a server rack." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1000000000000000000012345" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "2000000000000000000023456" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal calculation output pending verification." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "00112233445566778899aabbccddeeff" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Math_Auth_Token_V1" + } + ], + "init": { + "inputs": { + "num1": "1000000000000000000012345", + "num2": "2000000000000000000023456" + }, + "outputs": { + "text_result": "Terminal calculation output pending verification.", + "hex_result": "00112233445566778899aabbccddeeff", + "math_token": "Math_Auth_Token_V1" + } + }, + "narrative": "The wasteland terminal, a flickering console with a green phosphor display waiting for operator commands." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_3cbb", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_aff5", + "target_id": "item_8_3cbb", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_558e", + "target_id": "item_8_aff5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_41f4", + "target_id": "item_8_558e", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_41f4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_4", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_8_bb8d", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "fingerprint_input" + }, + { + "source_id": "hmac_sha256", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "container_4_ce5e", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "checksum_crc32", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "calc_modexp", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "n" + }, + { + "source_id": "terminal_2", + "target_id": "container_4_ce5e", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "fingerprint_input" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_0a051ed6_narrative.json b/data/questions/15/narrative/skeleton_0a051ed6_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..9cef58d913f3ee789608ba96be3656e3d80d65fb --- /dev/null +++ b/data/questions/15/narrative/skeleton_0a051ed6_narrative.json @@ -0,0 +1,809 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "container_4", + "win_condition": { + "type": "item_content", + "node_id": "container_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_4", + "zip_unzip_file", + "zip_unzip_file_20d2", + "zip_unzip_file_f151", + "iban_validate_eba0", + "item_9", + "csv_query" + ], + "by_node": { + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_20d2": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_f151": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "iban_validate_eba0": { + "node_name": "IBAN Validator", + "node_type": "Tool", + "template_id": "iban_validate", + "init_inputs": { + "iban": { + "type": "Text_Generic", + "description": "IBAN string" + } + }, + "init_outputs": {} + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + }, + "select": { + "type": "Text_Generic", + "description": "Columns to select" + }, + "where": { + "type": "Text_Generic", + "description": "Where clause" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + } + } + }, + "initial_values": { + "container_4": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "{7c9e8b3a-1f4d-4a2e-9c6b-8e5f7d3a2c1b}" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_manifest_data.xml" + } + }, + "zip_unzip_file_20d2": { + "init_inputs": {}, + "init_outputs": { + "files": "server_access_logs.log" + } + }, + "zip_unzip_file_f151": { + "init_inputs": { + "password": "CorrectHorseBatteryStaple123!" + }, + "init_outputs": { + "files": "blueprint_schematics_v2.pdf" + } + }, + "iban_validate_eba0": { + "init_inputs": { + "iban": "FR7630006000011234567890189" + }, + "init_outputs": {} + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "user_config_profile.json" + } + }, + "csv_query": { + "init_inputs": { + "file_id": "inventory_Q4_2023.csv", + "select": "Item_ID, Quantity, Warehouse_Location", + "where": "Quantity < 50" + }, + "init_outputs": { + "rows": "[{\"Item_ID\": \"ITM-9001\", \"Quantity\": \"12\", \"Warehouse_Location\": \"Zone-A\"}, {\"Item_ID\": \"ITM-4520\", \"Quantity\": \"0\", \"Warehouse_Location\": \"Zone-B\"}, {\"Item_ID\": \"ITM-3310\", \"Quantity\": \"45\", \"Warehouse_Location\": \"Zone-C\"}]" + } + } + }, + "intro_narrative": "You've infiltrated the abandoned office of a notorious corporate whistleblower, known only as 'The Architect'. Your mission is to uncover the final piece of evidence locked away inside their most secure vault. The room is filled with strange terminals, decryption rigs, and old files, forming a complex web of security measures. You must navigate this maze of digital and physical locks before the authorities arrive. Piece together the scattered clues and trace the data flow to succeed.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Qlwdp" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "{7c9e8b3a-1f4d-4a2e-9c6b-8e5f7d3a2c1b}" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "{7c9e8b3a-1f4d-4a2e-9c6b-8e5f7d3a2c1b}" + } + }, + "narrative": "This is The Main Vault. A heavily armored safe embedded in the wall. It requires input from The Shift Decoder to disengage its biometric lock." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is The Timezone Document. A mysterious torn paper revealing a critical timezone reference." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_manifest_data.xml" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "False" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip", + "value": "" + } + ], + "narrative": "This is The Final Extractor. A powerful decryption rig humming with energy. It requires inputs from both The Third Archive Extractor and The Text Cleaner to operate." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "False" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": 107475483 + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Qlwdp" + } + ], + "narrative": "This is The Shift Decoder. An old-school cipher machine with rotating gears. It requires inputs from both The Text Cleaner and The Integrity Checker to decipher the message." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool", + "value": "synthesized_item_60a33e6cf5151f2d" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "60a33e6cf5151f2d52eddae9685cfa270426aa89d8dbc7dfb854606f1d1a40fe" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "0667f21b" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 107475483 + } + ], + "narrative": "This is The Integrity Checker. A dusty validation computer. It requires input from The Hash Generator to validate the data integrity." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "False" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "60a33e6cf5151f2d52eddae9685cfa270426aa89d8dbc7dfb854606f1d1a40fe" + } + ], + "narrative": "This is The Hash Generator. A dedicated cryptoprocessor with blinking red lights. It requires input from The Text Cleaner to compute the digital footprint." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "False" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_60a33e6cf5151f2d" + } + ], + "narrative": "This is The 3D Printer. A state-of-the-art rapid prototyping machine. It requires input from The Text Cleaner to synthesize the physical blueprint." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "False" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "False" + } + ], + "narrative": "This is The Text Cleaner. A script sanitization tool running on a dirty monitor. It requires input from The Account Verifier to scrub the hidden formatting." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "server_access_logs.log" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[{\"Item_ID\": \"ITM-9001\", \"Quantity\": \"12\", \"Warehouse_Location\": \"Zone-A\"}, {\"Item_ID\": \"ITM-4520\", \"Quantity\": \"0\", \"Warehouse_Location\": \"Zone-B\"}, {\"Item_ID\": \"ITM-3310\", \"Quantity\": \"45\", \"Warehouse_Location\": \"Zone-C\"}]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_manifest_data.xml" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_manifest_data.xml" + } + }, + "narrative": "This is The Third Archive Extractor. A sophisticated application for cracking nested archives. It requires inputs from both The Second Archive Extractor and The Database Terminal to unlock the inner files." + }, + { + "id": "zip_unzip_file_20d2", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "blueprint_schematics_v2.pdf" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "False" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "server_access_logs.log" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "server_access_logs.log" + } + }, + "narrative": "This is The Second Archive Extractor. A midrange archive extraction utility. It requires inputs from both The First Archive Extractor and The Text Cleaner to process the next layer." + }, + { + "id": "zip_unzip_file_f151", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "user_config_profile.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "CorrectHorseBatteryStaple123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "blueprint_schematics_v2.pdf" + } + ], + "init": { + "inputs": { + "password": "CorrectHorseBatteryStaple123!" + }, + "outputs": { + "files": "blueprint_schematics_v2.pdf" + } + }, + "narrative": "This is The First Archive Extractor. A basic unzipping program on an old laptop. It requires input from The Encrypted USB Drive to begin the extraction." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "True" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "This is The Account Verifier. A terminal used for checking financial structures. It requires input from The Initial Bank Terminal to confirm the routing." + }, + { + "id": "iban_validate_eba0", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "FR7630006000011234567890189" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "True" + } + ], + "init": { + "inputs": { + "iban": "FR7630006000011234567890189" + }, + "outputs": {} + }, + "narrative": "This is The Initial Bank Terminal. A standalone kiosk previously used for entering basic bank details." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "user_config_profile.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "user_config_profile.json" + } + }, + "narrative": "This is The Encrypted USB Drive. A small black flash drive with a faded corporate logo." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "inventory_Q4_2023.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "Item_ID, Quantity, Warehouse_Location" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "Quantity < 50" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"Item_ID\": \"ITM-9001\", \"Quantity\": \"12\", \"Warehouse_Location\": \"Zone-A\"}, {\"Item_ID\": \"ITM-4520\", \"Quantity\": \"0\", \"Warehouse_Location\": \"Zone-B\"}, {\"Item_ID\": \"ITM-3310\", \"Quantity\": \"45\", \"Warehouse_Location\": \"Zone-C\"}]" + } + ], + "init": { + "inputs": { + "file_id": "inventory_Q4_2023.csv", + "select": "Item_ID, Quantity, Warehouse_Location", + "where": "Quantity < 50" + }, + "outputs": { + "rows": "[{\"Item_ID\": \"ITM-9001\", \"Quantity\": \"12\", \"Warehouse_Location\": \"Zone-A\"}, {\"Item_ID\": \"ITM-4520\", \"Quantity\": \"0\", \"Warehouse_Location\": \"Zone-B\"}, {\"Item_ID\": \"ITM-3310\", \"Quantity\": \"45\", \"Warehouse_Location\": \"Zone-C\"}]" + } + }, + "narrative": "This is The Database Terminal. A server rack interface displaying endless rows of financial records." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "text_rotN", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "fingerprint_input" + }, + { + "source_id": "checksum_crc32", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "n" + }, + { + "source_id": "hash_sha256", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "matter_synthesizer", + "target_id": "checksum_crc32", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "trigger_item" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "hash_sha256", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "blueprint" + }, + { + "source_id": "zip_unzip_file", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_20d2", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_f151", + "target_id": "zip_unzip_file_20d2", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "iban_validate", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "text" + }, + { + "source_id": "iban_validate_eba0", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "iban" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file_20d2", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "item_9", + "target_id": "zip_unzip_file_f151", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + }, + { + "source_id": "csv_query", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "password" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_121d3bf9_narrative.json b/data/questions/15/narrative/skeleton_121d3bf9_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..9968fd90bf6f4a0114f617969b31c79b43cc6b9b --- /dev/null +++ b/data/questions/15/narrative/skeleton_121d3bf9_narrative.json @@ -0,0 +1,923 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "item_11", + "win_condition": { + "type": "item_content", + "node_id": "item_11", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_11", + "terminal_2", + "checksum_crc32", + "calc_bigmul_d7aa", + "container_1", + "calc_bigmul_5754", + "num_base_convert_bcf4", + "calc_bigmul_5e7e", + "num_base_convert_658d", + "checksum_crc32_99fd" + ], + "by_node": { + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_bigmul_d7aa": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "calc_bigmul_5754": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "num_base_convert_bcf4": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "calc_bigmul_5e7e": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "num_base_convert_658d": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "checksum_crc32_99fd": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def execute_task():\n return 'Task Initialized'\nprint(execute_task())" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "System initialized successfully. Ready for data processing.", + "hex_result": "48656c6c6f20576f726c6421" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "init_outputs": {} + }, + "calc_bigmul_d7aa": { + "init_inputs": { + "b": "847562910384756291038475629103" + }, + "init_outputs": {} + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "aabbccddeeff00112233445566778899" + }, + "init_outputs": {} + }, + "calc_bigmul_5754": { + "init_inputs": { + "a": "394857261529384756102938475610" + }, + "init_outputs": {} + }, + "num_base_convert_bcf4": { + "init_inputs": { + "to_base": "10" + }, + "init_outputs": {} + }, + "calc_bigmul_5e7e": { + "init_inputs": { + "a": "582039485716253495827162534958", + "b": "102938475610293847561029384756" + }, + "init_outputs": {} + }, + "num_base_convert_658d": { + "init_inputs": { + "s": "918273645019283746501928374650", + "from_base": "10", + "to_base": "10" + }, + "init_outputs": {} + }, + "checksum_crc32_99fd": { + "init_inputs": { + "hex": "cafe1234cafe1234cafe1234cafe1234" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The rain lashes against the windows of the precinct. You are Detective Hayes, and you've spent the last six months tracking the 'Ghost Syndicate', a notorious crime ring that leaves no digital footprint. Tonight, you've finally infiltrated their abandoned safehouse, discovering a web of specialized forensic tools, outdated electronics, and encrypted servers. Time is running out before they realize their lair has been compromised. Your ultimate objective is to extract the master evidence drive, which contains the final proof needed to bring the entire syndicate down. To get it, you'll need to power up the station's mainframe and correctly route the fragmented data left behind in the room. Observe the connections carefully, trace the digital breadcrumbs, and piece together the truth before dawn breaks.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def execute_task():\n return 'Task Initialized'\nprint(execute_task())" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def execute_task():\n return 'Task Initialized'\nprint(execute_task())" + } + }, + "narrative": "The master evidence drive. A heavily encrypted storage device holding the ultimate proof." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 1701871101 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1701871101" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "System initialized successfully. Ready for data processing." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "48656c6c6f20576f726c6421" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "System initialized successfully. Ready for data processing.", + "hex_result": "48656c6c6f20576f726c6421" + } + }, + "narrative": "This is the police mainframe. It requires inputs from the suspect database and the signal decoder to issue a high-level warrant." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "65707dfd" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1701871101 + } + ], + "init": { + "inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "outputs": {} + }, + "narrative": "The suspect database. A dusty standalone computer holding historical criminal records." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": 1701871101 + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "59914257404630534744082125896356528357037013726700082300248" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "210621494708590566678796714501128885986581853781715598890253790510950568770519930545381029447779588290400986553689321179816967254944727391470275750924064369154369120196597440286406175500000" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1701871101" + } + ], + "narrative": "This is the signal decoder. It requires inputs from the suspect database, the network analyzer, and the cipher translator to piece together the final message." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "307315307232600287934767069738104378498453425204474470535476045967665759740654735339009500" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "685359595671476681071261119471109910147701291391707332153516076847476127866549171470189207134229000" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "210621494708590566678796714501128885986581853781715598890253790510950568770519930545381029447779588290400986553689321179816967254944727391470275750924064369154369120196597440286406175500000" + } + ], + "narrative": "This is the network analyzer. It requires inputs from the encryption cracker and the frequency scanner to trace the syndicate's communications." + }, + { + "id": "calc_bigmul_a123", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": 2230151182 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "307315307232600287934767069738104378498453425204474470535476045967665759740654735339009500" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "685359595671476681071261119471109910147701291391707332153516076847476127866549171470189207134229000" + } + ], + "narrative": "This is the encryption cracker. It requires inputs from both the frequency scanner and the ballistics matcher to process the case files." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The hidden ledger. A concealed black book containing offshore account numbers." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The timezone log. A discarded piece of paper detailing international time differences." + }, + { + "id": "calc_bigmul_d7aa", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "362587016806920741929859599880293377712525012211875967286500" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "847562910384756291038475629103" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "307315307232600287934767069738104378498453425204474470535476045967665759740654735339009500" + } + ], + "init": { + "inputs": { + "b": "847562910384756291038475629103" + }, + "outputs": {} + }, + "narrative": "This is the frequency scanner. It requires input from the audio enhancer to isolate the hidden radio signals." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "aabbccddeeff00112233445566778899" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "aabbccddeeff00112233445566778899" + }, + "outputs": {} + }, + "narrative": "The forensic lockbox. A heavy secure case locked by a biometric fingerprint scanner." + }, + { + "id": "calc_bigmul_5754", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "394857261529384756102938475610" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "918273645019283746501928374650" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "362587016806920741929859599880293377712525012211875967286500" + } + ], + "init": { + "inputs": { + "a": "394857261529384756102938475610" + }, + "outputs": {} + }, + "narrative": "This is the audio enhancer. It requires input from the wiretap recorder to clear up the background noise." + }, + { + "id": "num_base_convert_bcf4", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "59914257404630534744082125896356528357037013726700082300248" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "210621494708590566678796714501128885986581853781715598890253790510950568770519930545381029447779588290400986553689321179816967254944727391470275750924064369154369120196597440286406175500000" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "59914257404630534744082125896356528357037013726700082300248" + } + ], + "init": { + "inputs": { + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the cipher translator. It requires inputs from the traffic log reader and the network analyzer to parse the smugglers' routes." + }, + { + "id": "calc_bigmul_5e7e", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "582039485716253495827162534958" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "102938475610293847561029384756" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "59914257404630534744082125896356528357037013726700082300248" + } + ], + "init": { + "inputs": { + "a": "582039485716253495827162534958", + "b": "102938475610293847561029384756" + }, + "outputs": {} + }, + "narrative": "The traffic log reader. A module used to analyze vehicle movements from intersection cameras." + }, + { + "id": "num_base_convert_658d", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "918273645019283746501928374650" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "918273645019283746501928374650" + } + ], + "init": { + "inputs": { + "s": "918273645019283746501928374650", + "from_base": "10", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The wiretap recorder. An old analog device left behind by a private investigator." + }, + { + "id": "checksum_crc32_99fd", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "cafe1234cafe1234cafe1234cafe1234" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "84ed680e" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2230151182 + } + ], + "init": { + "inputs": { + "hex": "cafe1234cafe1234cafe1234cafe1234" + }, + "outputs": {} + }, + "narrative": "The ballistics matcher. A precise optical tool designed to compare bullet striations." + } + ], + "edges": [ + { + "source_id": "terminal_2", + "target_id": "item_11", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "s" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "to_base" + }, + { + "source_id": "calc_bigmul_a123", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "item_8", + "target_id": "calc_bigmul", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_bigmul_d7aa", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "calc_bigmul_d7aa", + "target_id": "calc_bigmul_a123", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_bigmul_5754", + "target_id": "calc_bigmul_d7aa", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "num_base_convert_bcf4", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "from_base" + }, + { + "source_id": "calc_bigmul_5e7e", + "target_id": "num_base_convert_bcf4", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert_bcf4", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "from_base" + }, + { + "source_id": "num_base_convert_658d", + "target_id": "calc_bigmul_5754", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "checksum_crc32_99fd", + "target_id": "calc_bigmul_a123", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_15f3516a_narrative.json b/data/questions/15/narrative/skeleton_15f3516a_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..f8f1631fb36af92d3d379d79800e06257bba94a1 --- /dev/null +++ b/data/questions/15/narrative/skeleton_15f3516a_narrative.json @@ -0,0 +1,786 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 16, + "win_node_id": "code_py_exec", + "win_condition": { + "type": "tool_output", + "node_id": "code_py_exec", + "output_port": "stdout", + "output_type": "Text_Generic", + "description": "Execute Python Executor and get the output from port 'stdout'" + }, + "source_init": { + "source_nodes": [ + "item_7", + "zip_unzip_file", + "checksum_crc32_266b", + "calc_bigmul", + "terminal_1", + "calc_gcd_5a8d" + ], + "by_node": { + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "checksum_crc32_266b": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "calc_gcd_5a8d": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "print('System initialization sequence complete. Ready for next phase.')" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "archive_data_secure.zip" + }, + "init_outputs": { + "files": "extracted_payload_config.json" + } + }, + "checksum_crc32_266b": { + "init_inputs": { + "hex": "4a6f686e20446f652064617461207061636b657420686561646572" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "b": "827364519283746510293847561029384756" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_b": "102938475610293847561029384756102938" + }, + "init_outputs": { + "text_output": "Terminal access granted. Waiting for further instructions.", + "hex_output": "deadbeefcafebabe1234567890abcdef", + "item_dispenser": "Standard Access Token Item" + } + }, + "calc_gcd_5a8d": { + "init_inputs": { + "a": "9876543210987654321098765432109876543210", + "b": "1234567890123456789012345678901234567890" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the sealed sanctum of the mad Archmage, a sprawling chamber filled with ancient artifacts, glowing runes, and arcane machinery. The air crackles with latent magic. The sanctum doors are bound by an impenetrable spell, and the only way to escape is to complete the Archmage's final ritual. Scattered across the room are peculiar devices and magical relics. You must decipher the connections between these mystical tools, channeling their energies correctly to weave the ultimate spell of unbinding and secure your freedom before the sanctum collapses into the ethereal plane.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print('System initialization sequence complete. Ready for next phase.')" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "System initialization sequence complete. Ready for next phase.\n" + } + ], + "narrative": "This is The Archmage's Spell Foci. It requires input from The Final Scroll to channel its ultimate magic." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "print('System initialization sequence complete. Ready for next phase.')" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "print('System initialization sequence complete. Ready for next phase.')" + } + }, + "narrative": "The Final Scroll. An ancient parchment glowing with magical runes." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Sealed Cylinder. A heavy brass container inscribed with warning glyphs." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Cursed Gem. A dark jewel radiating a sinister aura." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_payload_config.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Whuplqdo dffhvv judqwhg. Zdlwlqj iru ixuwkhu lqvwuxfwlrqv." + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip", + "value": "" + } + ], + "narrative": "This is The Enchanted Chest. It requires inputs from both The Arcane Lockbox and The Shift Dial to release its final binding." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_data_secure.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "gQm9AA==" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_payload_config.json" + } + ], + "init": { + "inputs": { + "zip_id": "archive_data_secure.zip" + }, + "outputs": { + "files": "extracted_payload_config.json" + } + }, + "narrative": "This is The Arcane Lockbox. It requires input from The Crystal Prism to unlock its secrets." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Terminal access granted. Waiting for further instructions." + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "3" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Whuplqdo dffhvv judqwhg. Zdlwlqj iru ixuwkhu lqvwuxfwlrqv." + } + ], + "narrative": "This is The Shift Dial. It requires inputs from both The Harmony Scales and The Oracle's Pedestal to align its constellations." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "8109bd00" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "gQm9AA==" + } + ], + "narrative": "This is The Crystal Prism. It requires input from The Runic Verifier to refract the magical light properly." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "87af1b2f" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "8109bd00" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2164899072 + } + ], + "narrative": "This is The Runic Verifier. It requires input from The Altar of Echoes to decipher the true meaning." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 2276399919 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "74462806742983466600744627152719090755264462794852892560892644628040" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3" + } + ], + "narrative": "This is The Harmony Scales. It requires inputs from both The Altar of Echoes and The Multiplying Chalice to find the perfect equilibrium." + }, + { + "id": "checksum_crc32_266b", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "4a6f686e20446f652064617461207061636b657420686561646572" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "87af1b2f" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2276399919 + } + ], + "init": { + "inputs": { + "hex": "4a6f686e20446f652064617461207061636b657420686561646572" + }, + "outputs": {} + }, + "narrative": "The Altar of Echoes. A low stone table that hums with arcane energy when touched." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "90000000009000000000900000000090" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "827364519283746510293847561029384756" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "74462806742983466600744627152719090755264462794852892560892644628040" + } + ], + "init": { + "inputs": { + "b": "827364519283746510293847561029384756" + }, + "outputs": {} + }, + "narrative": "This is The Multiplying Chalice. It requires input from The Balance Weights to brew its endless potion." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "gQm9AA==" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "102938475610293847561029384756102938" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal access granted. Waiting for further instructions." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeefcafebabe1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard Access Token Item" + } + ], + "init": { + "inputs": { + "slot_b": "102938475610293847561029384756102938" + }, + "outputs": { + "text_output": "Terminal access granted. Waiting for further instructions.", + "hex_output": "deadbeefcafebabe1234567890abcdef", + "item_dispenser": "Standard Access Token Item" + } + }, + "narrative": "This is The Oracle's Pedestal. It requires input from The Crystal Prism to awaken its visions." + }, + { + "id": "item_16_d5c6", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Temporal Relic. An hourglass filled with silver sand that flows upwards." + }, + { + "id": "calc_gcd_5a8d", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "9876543210987654321098765432109876543210" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "1234567890123456789012345678901234567890" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "90000000009000000000900000000090" + } + ], + "init": { + "inputs": { + "a": "9876543210987654321098765432109876543210", + "b": "1234567890123456789012345678901234567890" + }, + "outputs": {} + }, + "narrative": "The Balance Weights. A collection of perfectly carved obsidian stones." + } + ], + "edges": [ + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "item_8", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_file", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "text_rotN", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "base64_encode", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "password" + }, + { + "source_id": "checksum_crc32", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_gcd", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "n" + }, + { + "source_id": "checksum_crc32_266b", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32_266b", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "terminal_1", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "text" + }, + { + "source_id": "base64_encode", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "slot_a" + }, + { + "source_id": "item_16_d5c6", + "target_id": "text_rotN", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_gcd_5a8d", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_21812ed2_narrative.json b/data/questions/15/narrative/skeleton_21812ed2_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..9c413baf556bb6a33957ee4b9aa27694ae872049 --- /dev/null +++ b/data/questions/15/narrative/skeleton_21812ed2_narrative.json @@ -0,0 +1,1136 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 22, + "win_node_id": "container_4", + "win_condition": { + "type": "item_content", + "node_id": "container_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_4", + "terminal_2", + "graph_shortest_path", + "terminal_2_fb74", + "zip_unzip_file", + "csv_query", + "calc_gcd_7ac0", + "zip_unzip_file_aef1", + "zip_unzip_file_722e", + "regex_search", + "calc_inv_mod", + "calc_gcd_1e49", + "terminal_1" + ], + "by_node": { + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "terminal_2_fb74": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": {}, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "calc_gcd_7ac0": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_aef1": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_722e": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "pattern": { + "type": "Text_Generic", + "description": "Regex pattern" + }, + "file_id": { + "type": "File_Id", + "description": "File ID (optional)" + }, + "text": { + "type": "Text_Generic", + "description": "Text (optional)" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_gcd_1e49": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + } + } + }, + "initial_values": { + "container_4": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "|0⟩_|1⟩_|+⟩_|-⟩_|ψ⟩_⟨φ|" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Partial computation processed successfully for terminal 2", + "hex_result": "deadbeef1234567890abcdef12345678" + } + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Node_A\", \"Node_C\", \"Node_F\", \"Node_H\", \"Node_Z\"]", + "cost": "482390" + } + }, + "terminal_2_fb74": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Second terminal partial output data generated", + "hex_result": "1234567890abcdef1234567890abcdef", + "math_token": "A mysterious math token floating in the void" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_data_archive_1.zip" + } + }, + "csv_query": { + "init_inputs": {}, + "init_outputs": { + "rows": "[\"row1_data_a,row1_data_b\", \"row2_data_c,row2_data_d\", \"row3_data_e,row3_data_f\", \"row4_data_g,row4_data_h\"]" + } + }, + "calc_gcd_7ac0": { + "init_inputs": { + "a": "98765432109876543210123", + "b": "12345678901234567890987" + }, + "init_outputs": {} + }, + "zip_unzip_file_aef1": { + "init_inputs": {}, + "init_outputs": { + "files": "confidential_archive_layer2.zip" + } + }, + "zip_unzip_file_722e": { + "init_inputs": { + "zip_id": "encrypted_source_package.zip" + }, + "init_outputs": { + "files": "intermediate_files_extracted.csv" + } + }, + "regex_search": { + "init_inputs": { + "pattern": "\\d{4}-\\d{2}-\\d{2}", + "file_id": "logs_for_regex_search.txt", + "text": "The event occurred on 2023-10-25 and was logged." + }, + "init_outputs": { + "matches": "[\"2023-10-25\", \"2023-10-26\", \"2023-10-27\", \"2023-10-28\"]" + } + }, + "calc_inv_mod": { + "init_inputs": { + "mod": "999983" + }, + "init_outputs": {} + }, + "calc_gcd_1e49": { + "init_inputs": { + "a": "54321678905432167890543", + "b": "67890123456789012345678" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Initialization sequence alpha for terminal one", + "slot_b": "112233445566778899001122" + }, + "init_outputs": { + "text_output": "Text output for slot A execution completed", + "hex_output": "aabbccddeeff00112233445566778899" + } + } + }, + "intro_narrative": "Welcome, apprentices, to the Sanctum of Archmage Orion. The master has been missing for moons, and his protective wards are rapidly deteriorating. The arcane threads holding this tower together are unraveling, threatening to cast the entire structure into the astral void. Your only hope of survival and preserving the master's legacy lies in unlocking The Grand Reliquary, a vault said to hold his ultimate creation. However, Orion was famously paranoid. He scattered his knowledge across enchanted astrolabes, magical lodestones, and cryptic spell-unbinders. You must decipher the arcane data flows, channeling magical energy from simple resonance crystals all the way up to complex navigational arrays. Pay close attention to how the magical devices interact; many require specific streams of arcane data from other tools to awaken. Time is short, and the magic is fading. Harness the leylines and unlock the Reliquary before the Sanctum is lost forever.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Second terminal partial output data generated" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "|0⟩_|1⟩_|+⟩_|-⟩_|ψ⟩_⟨φ|" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "|0⟩_|1⟩_|+⟩_|-⟩_|ψ⟩_⟨φ|" + } + }, + "narrative": "The Grand Reliquary. A massive, ornate chest protected by ancient magic. It requires input from The Celestial Astrolabe to unlock its final seal." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Chrono-Scroll. An ancient parchment inscribed with shifting celestial coordinates." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "333328" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "482390" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial computation processed successfully for terminal 2" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeef1234567890abcdef12345678" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Partial computation processed successfully for terminal 2", + "hex_result": "deadbeef1234567890abcdef12345678" + } + }, + "narrative": "The Astral Astrolabe. A complex brass instrument for plotting star courses. It requires inputs from both The Leyline Navigator and The Aetherial Inverter to calculate the final trajectory." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_archive_1.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[\"row1_data_a,row1_data_b\", \"row2_data_c,row2_data_d\", \"row3_data_e,row3_data_f\", \"row4_data_g,row4_data_h\"]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Second terminal partial output data generated" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_A\", \"Node_C\", \"Node_F\", \"Node_H\", \"Node_Z\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "482390" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Node_A\", \"Node_C\", \"Node_F\", \"Node_H\", \"Node_Z\"]", + "cost": "482390" + } + }, + "narrative": "The Leyline Navigator. An enchanted map table tracing magical currents. It requires inputs from The Celestial Astrolabe, The Master Spell-Unbinder, and The Akashic Index to reveal the hidden path." + }, + { + "id": "terminal_2_fb74", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "333328" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Second terminal partial output data generated" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1234567890abcdef1234567890abcdef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "A mysterious math token floating in the void" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Second terminal partial output data generated", + "hex_result": "1234567890abcdef1234567890abcdef", + "math_token": "A mysterious math token floating in the void" + } + }, + "narrative": "The Celestial Astrolabe. A delicate silver mechanism for divining cosmic alignments. It requires inputs from both The Harmonic Synthesizer and The Aetherial Inverter to operate." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "confidential_archive_layer2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"2023-10-25\", \"2023-10-26\", \"2023-10-27\", \"2023-10-28\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_archive_1.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_data_archive_1.zip" + } + }, + "narrative": "The Master Spell-Unbinder. The highest order of dispelling focus. It requires inputs from both The Greater Spell-Unbinder and The Rune Seeker to shatter the final magical barrier." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "intermediate_files_extracted.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "[\"2023-10-25\", \"2023-10-26\", \"2023-10-27\", \"2023-10-28\"]" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "Second terminal partial output data generated" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[\"row1_data_a,row1_data_b\", \"row2_data_c,row2_data_d\", \"row3_data_e,row3_data_f\", \"row4_data_g,row4_data_h\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "rows": "[\"row1_data_a,row1_data_b\", \"row2_data_c,row2_data_d\", \"row3_data_e,row3_data_f\", \"row4_data_g,row4_data_h\"]" + } + }, + "narrative": "The Akashic Index. A floating spectral ledger containing forgotten lore. It requires inputs from The Lesser Spell-Unbinder, The Celestial Astrolabe, and The Rune Seeker to retrieve specific records." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "3" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "333328" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "The Harmonic Synthesizer. A crystalline matrix that balances magical frequencies. It requires inputs from both The Silver Resonance Crystal and The Aetherial Inverter." + }, + { + "id": "calc_gcd_7ac0", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "98765432109876543210123" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "12345678901234567890987" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3" + } + ], + "init": { + "inputs": { + "a": "98765432109876543210123", + "b": "12345678901234567890987" + }, + "outputs": {} + }, + "narrative": "The Silver Resonance Crystal. A pure, humming gemstone that emanates a steady baseline of magical energy." + }, + { + "id": "zip_unzip_file_aef1", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "intermediate_files_extracted.csv" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"row1_data_a,row1_data_b\", \"row2_data_c,row2_data_d\", \"row3_data_e,row3_data_f\", \"row4_data_g,row4_data_h\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "confidential_archive_layer2.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "confidential_archive_layer2.zip" + } + }, + "narrative": "The Greater Spell-Unbinder. A potent artifact designed to break complex wards. It requires inputs from both The Lesser Spell-Unbinder and The Akashic Index." + }, + { + "id": "zip_unzip_file_722e", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_source_package.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"2023-10-25\", \"2023-10-26\", \"2023-10-27\", \"2023-10-28\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "intermediate_files_extracted.csv" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_source_package.zip" + }, + "outputs": { + "files": "intermediate_files_extracted.csv" + } + }, + "narrative": "The Lesser Spell-Unbinder. A basic dispelling tool used by apprentices. It requires input from The Rune Seeker to bypass simple magical locks." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "\\d{4}-\\d{2}-\\d{2}" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "logs_for_regex_search.txt" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "The event occurred on 2023-10-25 and was logged." + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"2023-10-25\", \"2023-10-26\", \"2023-10-27\", \"2023-10-28\"]" + } + ], + "init": { + "inputs": { + "pattern": "\\d{4}-\\d{2}-\\d{2}", + "file_id": "logs_for_regex_search.txt", + "text": "The event occurred on 2023-10-25 and was logged." + }, + "outputs": { + "matches": "[\"2023-10-25\", \"2023-10-26\", \"2023-10-27\", \"2023-10-28\"]" + } + }, + "narrative": "The Rune Seeker. A magical magnifying glass that can reveal hidden arcane patterns within ordinary texts." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "3" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "333328" + } + ], + "init": { + "inputs": { + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "The Aetherial Inverter. A strange device that reverses the flow of mana. It requires input from The Golden Resonance Crystal to function safely." + }, + { + "id": "calc_gcd_1e49", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "54321678905432167890543" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "67890123456789012345678" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3" + } + ], + "init": { + "inputs": { + "a": "54321678905432167890543", + "b": "67890123456789012345678" + }, + "outputs": {} + }, + "narrative": "The Golden Resonance Crystal. A brilliantly glowing stone, vibrating with ancient primordial power." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Initialization sequence alpha for terminal one" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "112233445566778899001122" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Text output for slot A execution completed" + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "aabbccddeeff00112233445566778899" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Initialization sequence alpha for terminal one", + "slot_b": "112233445566778899001122" + }, + "outputs": { + "text_output": "Text output for slot A execution completed", + "hex_output": "aabbccddeeff00112233445566778899" + } + }, + "narrative": "The Elemental Forge. A smoldering anvil surrounded by floating embers, used to craft basic magical implements." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num2" + }, + { + "source_id": "terminal_2_fb74", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_2_fb74", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "dst" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "csv_query", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "src" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2_fb74", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "calc_gcd_7ac0", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "zip_unzip_file_aef1", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_722e", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "regex_search", + "target_id": "zip_unzip_file_722e", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_722e", + "target_id": "zip_unzip_file_aef1", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "b" + }, + { + "source_id": "terminal_2_fb74", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "where" + }, + { + "source_id": "regex_search", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "password" + }, + { + "source_id": "regex_search", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "select" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2_fb74", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num1" + }, + { + "source_id": "calc_gcd_1e49", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num1" + }, + { + "source_id": "csv_query", + "target_id": "zip_unzip_file_aef1", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "password" + }, + { + "source_id": "terminal_1", + "target_id": "graph_shortest_path", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_2d79db0d_narrative.json b/data/questions/15/narrative/skeleton_2d79db0d_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..cb8fb8b3bd40819d4ed748838c107af1d35d619f --- /dev/null +++ b/data/questions/15/narrative/skeleton_2d79db0d_narrative.json @@ -0,0 +1,943 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "item_11", + "win_condition": { + "type": "item_content", + "node_id": "item_11", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_11", + "hmac_sha256", + "regex_search", + "terminal_1", + "zip_unzip_file", + "zip_unzip_file_c235", + "calc_bigmul", + "checksum_crc32", + "terminal_2", + "container_2" + ], + "by_node": { + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": {}, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_c235": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "container_2": { + "node_name": "", + "node_type": "Item", + "template_id": "container_2", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def calculate_sum(a, b):\n return a + b\nprint(calculate_sum(10, 20))" + } + }, + "hmac_sha256": { + "init_inputs": { + "text": "Initiating secure handshake protocol sequence." + }, + "init_outputs": {} + }, + "regex_search": { + "init_inputs": {}, + "init_outputs": { + "matches": "[\"pattern_match_001\", \"pattern_match_002\", \"pattern_match_003\", \"pattern_match_004\", \"pattern_match_005\"]" + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Terminal entry point A authorization code." + }, + "init_outputs": { + "text_output": "Terminal operation completed successfully.", + "hex_output": "a1b2c3d4e5f678901234567890abcdef" + } + }, + "zip_unzip_file": { + "init_inputs": { + "password": "SuperSecretPassword123!" + }, + "init_outputs": { + "files": "confidential_report.pdf" + } + }, + "zip_unzip_file_c235": { + "init_inputs": { + "zip_id": "legacy_archive_data.zip" + }, + "init_outputs": { + "files": "extracted_blueprint.xml" + } + }, + "calc_bigmul": { + "init_inputs": { + "b": "882736451928374651029384756" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeefcafebabef00d1234567890ab" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "192837465564738291011121314", + "num2": "998877665544332211009988776" + }, + "init_outputs": { + "text_result": "Complex calculation parameters accepted.", + "hex_result": "11223344556677889900aabbccddeeff", + "math_token": "Token of mathematical verification granted." + } + }, + "container_2": { + "init_inputs": { + "fingerprint_input": "0f1e2d3c4b5a69788796a5b4c3d2e1f0" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You stand in the center of the abandoned Cyber-Forensics Bureau, the air thick with dust and the low hum of dormant servers. You are here to uncover the identity of the 'Digital Ghost', a hacker who vanished leaving behind only a trail of encrypted breadcrumbs. The room is filled with disconnected terminals, locked safes, and strange processing units. Detective Reynolds speaks through your earpiece: 'The Ghost hid his confession in a fragmented data stream. You need to reactivate the system, link the correct processors, and decrypt the final file. Watch the data flow carefully, detective.'", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def calculate_sum(a, b):\n return a + b\nprint(calculate_sum(10, 20))" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def calculate_sum(a, b):\n return a + b\nprint(calculate_sum(10, 20))" + } + }, + "narrative": "The final piece of the puzzle: The Digital Ghost's decrypted confession file." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "confidential_report.pdf" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "EQ9YH9u/25U/sLwF1lRYsHuyrKTRdTiOoyv0MrafzkM=" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip", + "value": "" + } + ], + "narrative": "This is the Master Evidence Locker. It requires the encoded password from the Encoder Module and the target file identifier from the Secondary Archive." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "110f581fdbbfdb953fb0bc05d65458b07bb2aca4d175388ea32bf432b69fce43" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "EQ9YH9u/25U/sLwF1lRYsHuyrKTRdTiOoyv0MrafzkM=" + } + ], + "narrative": "This is the Encoder Module. It transforms raw bytes into readable strings. It requires the cryptographic hash generated by the Hash Generator." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "789c8b562a482c29492dca8bcf4d2c49ce8837303054d251c01034c226688c4dd0049ba0a9522c005af72309" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Initiating secure handshake protocol sequence." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "110f581fdbbfdb953fb0bc05d65458b07bb2aca4d175388ea32bf432b69fce43" + } + ], + "init": { + "inputs": { + "text": "Initiating secure handshake protocol sequence." + }, + "outputs": {} + }, + "narrative": "This is the Hash Generator. It secures communications by creating a keyed hash. It requires the compressed data key from the Data Compressor." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "[\"pattern_match_001\", \"pattern_match_002\", \"pattern_match_003\", \"pattern_match_004\", \"pattern_match_005\"]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c8b562a482c29492dca8bcf4d2c49ce8837303054d251c01034c226688c4dd0049ba0a9522c005af72309" + } + ], + "narrative": "This is the Data Compressor. It minimizes data footprint for processing. It requires the specific text matches found by the Pattern Recognition Scanner." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "Complex calculation parameters accepted." + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "extracted_blueprint.xml" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "Terminal operation completed successfully." + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"pattern_match_001\", \"pattern_match_002\", \"pattern_match_003\", \"pattern_match_004\", \"pattern_match_005\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "matches": "[\"pattern_match_001\", \"pattern_match_002\", \"pattern_match_003\", \"pattern_match_004\", \"pattern_match_005\"]" + } + }, + "narrative": "This is the Pattern Recognition Scanner. It searches for hidden strings. It requires text output from the Mainframe Terminal, a file ID from the Encrypted Archive, and a regex pattern from the Evidence Logic Analyzer." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Terminal entry point A authorization code." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "1667084985332610434391663536891463572" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal operation completed successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f678901234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Terminal entry point A authorization code." + }, + "outputs": { + "text_output": "Terminal operation completed successfully.", + "hex_output": "a1b2c3d4e5f678901234567890abcdef" + } + }, + "narrative": "The Mainframe Terminal. It controls the central data flow of the room. It requires a specific large integer result from the Large Number Processor to unlock its primary output." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_blueprint.xml" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretPassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "confidential_report.pdf" + } + ], + "init": { + "inputs": { + "password": "SuperSecretPassword123!" + }, + "outputs": { + "files": "confidential_report.pdf" + } + }, + "narrative": "This is the Secondary Archive. It contains older case files. It requires the file reference ID extracted from the Encrypted Archive." + }, + { + "id": "zip_unzip_file_c235", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "legacy_archive_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Terminal operation completed successfully." + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_blueprint.xml" + } + ], + "init": { + "inputs": { + "zip_id": "legacy_archive_data.zip" + }, + "outputs": { + "files": "extracted_blueprint.xml" + } + }, + "narrative": "This is the Encrypted Archive. It holds the Ghost's private logs. It requires the textual password displayed on the Mainframe Terminal." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": 1888542137 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "882736451928374651029384756" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "1667084985332610434391663536891463572" + } + ], + "init": { + "inputs": { + "b": "882736451928374651029384756" + }, + "outputs": {} + }, + "narrative": "This is the Large Number Processor, a supercomputer for massive calculations. It requires the checksum integer verified by the Integrity Checker." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The raw integer data extracted from the Black Box." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeefcafebabef00d1234567890ab" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "7090ddb9" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1888542137 + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafebabef00d1234567890ab" + }, + "outputs": {} + }, + "narrative": "The Integrity Checker. A device used to verify that data has not been corrupted." + }, + { + "id": "item_8_d678", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Black Box. A heavy, sealed unit found at the crime scene containing unknown data." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "192837465564738291011121314" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "998877665544332211009988776" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Complex calculation parameters accepted." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "11223344556677889900aabbccddeeff" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Token of mathematical verification granted." + } + ], + "init": { + "inputs": { + "num1": "192837465564738291011121314", + "num2": "998877665544332211009988776" + }, + "outputs": { + "text_result": "Complex calculation parameters accepted.", + "hex_result": "11223344556677889900aabbccddeeff", + "math_token": "Token of mathematical verification granted." + } + }, + "narrative": "The Evidence Logic Analyzer. A standalone console used to compute mathematical relationships between evidence." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "0f1e2d3c4b5a69788796a5b4c3d2e1f0" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "0f1e2d3c4b5a69788796a5b4c3d2e1f0" + }, + "outputs": {} + }, + "narrative": "A Biometric Safe. It scans fingerprint hashes to reveal its contents." + } + ], + "edges": [ + { + "source_id": "zip_unzip_item", + "target_id": "item_11", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "base64_encode", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "password" + }, + { + "source_id": "hmac_sha256", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "zlib_deflate", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "regex_search", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "text" + }, + { + "source_id": "terminal_1", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "text" + }, + { + "source_id": "zip_unzip_file", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_c235", + "target_id": "regex_search", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "slot_b" + }, + { + "source_id": "terminal_1", + "target_id": "zip_unzip_item", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "item_8", + "target_id": "base64_encode", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "terminal_1", + "target_id": "zip_unzip_file_c235", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "password" + }, + { + "source_id": "item_8_d678", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "pattern" + }, + { + "source_id": "zip_unzip_file_c235", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "container_2", + "target_id": "calc_bigmul", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_2e9cff45_narrative.json b/data/questions/15/narrative/skeleton_2e9cff45_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..8f21cb7fb1399e3c88fc1fc0861e5850bedfc362 --- /dev/null +++ b/data/questions/15/narrative/skeleton_2e9cff45_narrative.json @@ -0,0 +1,582 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 14, + "win_node_id": "checksum_crc32", + "win_condition": { + "type": "tool_output", + "node_id": "checksum_crc32", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute CRC32 Checksum and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "item_7", + "checksum_crc32_e106" + ], + "by_node": { + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "checksum_crc32_e106": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "print(49283716405928374651)" + } + }, + "checksum_crc32_e106": { + "init_inputs": { + "hex": "8a3b2c1d4e5f6a7b8c9d0e1f2a3b4c5d" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in a dimly lit, subterranean facility with no memory of how you arrived. The air is stale, and the faint hum of ancient electronics echoes through the cold stone corridors. This place appears to be an abandoned cryptographic research bunker, filled with strange devices, locked containers, and forgotten secrets. A heavily armored door stands between you and freedom, its electronic lock demanding a highly specific cryptographic sequence. To escape, you must explore the bunker, interact with the peculiar machinery left behind, and carefully trace the flow of data through a series of complex tools. Every device is connected in a logical chain, and finding the right inputs for each terminal is your only way out. Time is ticking, and the shadows seem to grow longer by the minute.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "68934a3e9455fa72420237eb05902327" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "07593049" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 123285577 + } + ], + "narrative": "This is a final output terminal that controls the main exit door. It requires input from the text scrambler to grant access." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "false" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "68934a3e9455fa72420237eb05902327" + } + ], + "narrative": "This is a text scrambler used for complex cryptography. It requires input from the digital validity checker to process the information." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A cryptic letter with a strange wax seal. The handwriting on it is elegant but entirely unreadable." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "49283716405928374651\n" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "This is a digital validity checker equipped with a small screen. It requires input from the data purifier to verify the sequence." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "49283716405928374651\n" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "49283716405928374651\n" + } + ], + "narrative": "This is a data purifier with a blinking green light. It requires input from the central computer to filter the chaotic signals." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print(49283716405928374651)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "49283716405928374651\n" + } + ], + "narrative": "This is a central computer still humming with power. It requires input from the python script fragment to execute its routines." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "print(49283716405928374651)" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "print(49283716405928374651)" + } + }, + "narrative": "A python script fragment scribbled on a piece of notepad paper. The ink is slightly faded but legible." + }, + { + "id": "item_8_193b", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A hidden compartment cleverly disguised within the wall panelling. It looks entirely inconspicuous." + }, + { + "id": "item_8_392f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A locked wooden box resting on a dusty table. The craftsmanship suggests it holds something valuable." + }, + { + "id": "item_8_4847", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A loose floorboard that creaks slightly when you step on it. It seems something might be underneath." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An elegant silver pocket watch with intricate engravings. Its hands are frozen at a specific time." + }, + { + "id": "item_8_3257", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A torn envelope discarded in the corner of the room. It appears someone opened it in a hurry." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": 950877807 + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a heavy steel safe built into the floor. It requires input from the biometric analyzer to unlock its reinforced doors." + }, + { + "id": "item_8_96fb", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An antique clock covered in a thick layer of dust. It seems to have stopped a long time ago." + }, + { + "id": "checksum_crc32_e106", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "8a3b2c1d4e5f6a7b8c9d0e1f2a3b4c5d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "38ad3e6f" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 950877807 + } + ], + "init": { + "inputs": { + "hex": "8a3b2c1d4e5f6a7b8c9d0e1f2a3b4c5d" + }, + "outputs": {} + }, + "narrative": "A high-tech biometric analyzer securely mounted on the stone wall. The scanner faintly glows red." + } + ], + "edges": [ + { + "source_id": "hash_md5", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_8", + "target_id": "hash_md5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "luhn_check", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "text" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "number" + }, + { + "source_id": "code_py_exec", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "text" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "item_8_193b", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_392f", + "target_id": "item_8_193b", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_4847", + "target_id": "item_8_392f", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "code_py_exec", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_8_3257", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_3", + "target_id": "luhn_check", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "item_8_96fb", + "target_id": "item_8_4847", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32_e106", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "fingerprint_input" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_3841189d_narrative.json b/data/questions/15/narrative/skeleton_3841189d_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..243a64496e97002cb46a6868a758e0deb8e331e3 --- /dev/null +++ b/data/questions/15/narrative/skeleton_3841189d_narrative.json @@ -0,0 +1,626 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 14, + "win_node_id": "item_5", + "win_condition": { + "type": "item_content", + "node_id": "item_5", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_5", + "csv_query", + "checksum_crc32" + ], + "by_node": { + "item_5": { + "node_name": "", + "node_type": "Item", + "template_id": "item_5", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + }, + "select": { + "type": "Text_Generic", + "description": "Columns to select" + }, + "where": { + "type": "Text_Generic", + "description": "Where clause" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_5": { + "init_inputs": {}, + "init_outputs": { + "content": "7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c" + } + }, + "csv_query": { + "init_inputs": { + "file_id": "bank_ledger_v2.csv", + "select": "iban_code, balance_amount, owner_name", + "where": "balance_amount < 0 AND account_status = 'OVERDRAWN'" + }, + "init_outputs": { + "rows": "[\"['DE12345678901234567890', -450.25, 'John Doe']\", \"['FR09876543210987654321', -12.50, 'Jane Smith']\", \"['GB11223344556677889900', -1024.00, 'Robert Brown']\"]" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeef69696969cafebabe" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You've finally infiltrated the abandoned safehouse of the notorious 'Phantom Syndicate'. For years, this elusive organization has manipulated global financial markets from the shadows. The room smells of stale coffee and ozone, filled with whirring servers, scattered ledgers, and heavily encrypted lockboxes. Your objective is clear: uncover the syndicate's ultimate master key to expose their network. But the place is rigged with a complex web of cryptographic tools, biometric scanners, and fragmented databases. Every digital terminal seems intricately connected, forming a labyrinth of data. You must trace the information flow, operate the terminals, and bypass the locks to reveal the truth before the syndicate's enforcers arrive.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "item_5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c" + } + }, + "narrative": "This is the Final Encrypted Drive. A small, sleek black USB stick that radiates an aura of immense importance." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the Decoded Ledger. A heavy bound book containing the true names of the syndicate's leaders." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Timezone Log. A worn notebook filled with international flight schedules and strange temporal annotations." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "false" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Master Vault. It requires input from the Final Authorization Module to release its heavy steel door." + }, + { + "id": "item_8_56af", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is Financial Record D. A digitized document showing the final set of partial bank transfers." + }, + { + "id": "item_8_5837", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is Financial Record C. A hidden dossier outlining illicit transfers between offshore shell corporations." + }, + { + "id": "item_8_ae83", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is Financial Record B. A torn digital receipt that forms another piece of the accounting puzzle." + }, + { + "id": "item_8_66b8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is Financial Record A. A highly classified page detailing the earliest known syndicate transactions." + }, + { + "id": "item_16_268f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is a Global Clock Fragment. A strange digital readout displaying a series of peculiar geographic coordinates." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "false" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "This is the Final Authorization Module. It requires input from the Secondary Security Scanner to confirm the ultimate digital signature." + }, + { + "id": "luhn_check_96e5", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "False" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "This is the Secondary Security Scanner. It requires input from the Bank Credential Verifier to proceed with the clearance check." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "[\"['DE12345678901234567890', -450.25, 'John Doe']\", \"['FR09876543210987654321', -12.50, 'Jane Smith']\", \"['GB11223344556677889900', -1024.00, 'Robert Brown']\"]" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "This is the Bank Credential Verifier. It requires input from the Archive Database Terminal to cross-reference the extracted offshore account details." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "7f0b536b" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a Biometric Lockbox. It requires input from the Hash Generator to bypass its advanced physical security protocols." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "bank_ledger_v2.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "iban_code, balance_amount, owner_name" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "balance_amount < 0 AND account_status = 'OVERDRAWN'" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[\"['DE12345678901234567890', -450.25, 'John Doe']\", \"['FR09876543210987654321', -12.50, 'Jane Smith']\", \"['GB11223344556677889900', -1024.00, 'Robert Brown']\"]" + } + ], + "init": { + "inputs": { + "file_id": "bank_ledger_v2.csv", + "select": "iban_code, balance_amount, owner_name", + "where": "balance_amount < 0 AND account_status = 'OVERDRAWN'" + }, + "outputs": { + "rows": "[\"['DE12345678901234567890', -450.25, 'John Doe']\", \"['FR09876543210987654321', -12.50, 'Jane Smith']\", \"['GB11223344556677889900', -1024.00, 'Robert Brown']\"]" + } + }, + "narrative": "This is the Archive Database Terminal. An old, dust-covered computer that holds a massive encrypted spreadsheet." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeef69696969cafebabe" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "7f0b536b" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2131448683 + } + ], + "init": { + "inputs": { + "hex": "deadbeef69696969cafebabe" + }, + "outputs": {} + }, + "narrative": "This is the Hash Generator. A standalone cryptographic tool left behind on a workbench by the syndicate's chief hacker." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_4", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_8_56af", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_5837", + "target_id": "item_8_56af", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_ae83", + "target_id": "item_8_5837", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_66b8", + "target_id": "item_8_ae83", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16_268f", + "target_id": "item_8_66b8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "luhn_check", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "fingerprint_input" + }, + { + "source_id": "luhn_check_96e5", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "number" + }, + { + "source_id": "iban_validate", + "target_id": "luhn_check_96e5", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "number" + }, + { + "source_id": "container_2", + "target_id": "item_16_268f", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "csv_query", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "iban" + }, + { + "source_id": "checksum_crc32", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_3b64066d_narrative.json b/data/questions/15/narrative/skeleton_3b64066d_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..ee72f20b33cdbfc9821a786680a297433ee1009d --- /dev/null +++ b/data/questions/15/narrative/skeleton_3b64066d_narrative.json @@ -0,0 +1,948 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 19, + "win_node_id": "terminal_2", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_2", + "output_port": "text_result", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_result'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "calc_modexp", + "zip_unzip_item", + "calc_bigmul_37ca", + "zip_unzip_file", + "terminal_1", + "zip_unzip_file_cdbb", + "calc_bigmul_ef6f", + "item_10" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "calc_bigmul_37ca": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "zip_unzip_file_cdbb": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_bigmul_ef6f": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "item_10": { + "node_name": "", + "node_type": "Item", + "template_id": "item_10", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Au_Ag_Pt_Os_Ir_Rh_Pd_Re", + "hex_result": "a1b2c3d4e5f609182736455463728190", + "math_token": "Math_Token_Verification_ID_99823" + } + }, + "calc_modexp": { + "init_inputs": { + "base": "482910384756291038475629103847" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "password": "SecurePassword_Access_Level_3" + }, + "init_outputs": {} + }, + "calc_bigmul_37ca": { + "init_inputs": { + "a": "837465102938475610293847561029" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "password": "Archive_Key_Alpha_Numeric_99" + }, + "init_outputs": { + "files": "extracted_manifest_v2.json" + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Primary input slot configuration string.", + "slot_b": "102938475610293847561029384756" + }, + "init_outputs": { + "text_output": "Terminal output stream ready for data.", + "hex_output": "deadbeef1234567890abcdef12345678" + } + }, + "zip_unzip_file_cdbb": { + "init_inputs": { + "zip_id": "backup_archive_2023.zip", + "password": "Complex_Pass_Phrase_Variant_B" + }, + "init_outputs": { + "files": "restored_database_log.txt" + } + }, + "calc_bigmul_ef6f": { + "init_inputs": { + "a": "564738291029384756102938475610" + }, + "init_outputs": {} + }, + "item_10": { + "init_inputs": {}, + "init_outputs": { + "content": "314159265358979323846264338327" + } + } + }, + "intro_narrative": "The rain lashes against the foggy windows of your rundown detective agency. You've just received a mysterious anonymous package containing a collection of legacy tech and encrypted data fragments. The note attached is brief: 'They're covering up the syndicate's latest hit. Only you can piece this together.' Before you is a chaotic web of outdated extraction tools, corrupted drives, and cipher machines. Your objective is clear: navigate this labyrinth of digital evidence, route the fragmented data through the correct analysis tools, and reconstruct the final truth. You'll need to power up the main terminal to reveal the syndicate's secrets, but it's locked behind multiple layers of cryptographic dependencies. Time is running out before the trail goes completely cold. Connect the dots, Detective.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "0" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Au_Ag_Pt_Os_Ir_Rh_Pd_Re" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f609182736455463728190" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Math_Token_Verification_ID_99823" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Au_Ag_Pt_Os_Ir_Rh_Pd_Re", + "hex_result": "a1b2c3d4e5f609182736455463728190", + "math_token": "Math_Token_Verification_ID_99823" + } + }, + "narrative": "This is the Mainframe Terminal. It requires inputs from both the Quantum Decryptor and the Secondary Analyzer to finally crack the case." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "482910384756291038475629103847" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1931293756103776628497249362848837643123" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "0" + } + ], + "init": { + "inputs": { + "base": "482910384756291038475629103847" + }, + "outputs": {} + }, + "narrative": "This is the Quantum Decryptor. It requires inputs from both the Primary Analyzer and the Signal Amplifier." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "4453792234778588373496037784314675475267458714901" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "1" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the Secondary Analyzer. It requires inputs from both the Primary Analyzer and the Data Combiner." + }, + { + "id": "calc_gcd_ff9d", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 2306118487 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "177417766629876978243326804876114049272483316192486677704470" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the Primary Analyzer. It requires inputs from both the Integrity Verifier and the Trace Multiplier." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "1931293756103776628497249362848837643123" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 2306118487 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "4453792234778588373496037784314675475267458714901" + } + ], + "narrative": "This is the Data Combiner. It requires inputs from both the Signal Amplifier and the Integrity Verifier." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A heavily Encrypted Drive containing classified suspect files. It buzzes faintly with stored data." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_manifest_v2.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword_Access_Level_3" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "password": "SecurePassword_Access_Level_3" + }, + "outputs": {} + }, + "narrative": "This is the Deep Extraction Module. It requires input from the File Extractor to recover embedded physical traces." + }, + { + "id": "calc_bigmul_37ca", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "837465102938475610293847561029" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 2306118487 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "1931293756103776628497249362848837643123" + } + ], + "init": { + "inputs": { + "a": "837465102938475610293847561029" + }, + "outputs": {} + }, + "narrative": "This is the Signal Amplifier. It requires input from the Integrity Verifier to boost the digital signal." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "restored_database_log.txt" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Archive_Key_Alpha_Numeric_99" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_manifest_v2.json" + } + ], + "init": { + "inputs": { + "password": "Archive_Key_Alpha_Numeric_99" + }, + "outputs": { + "files": "extracted_manifest_v2.json" + } + }, + "narrative": "This is the File Extractor. It requires input from the Archive Extractor to dig deeper into the compressed folders." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeef1234567890abcdef12345678" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "89749357" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2306118487 + } + ], + "narrative": "This is the Integrity Verifier. It requires input from the Entry Terminal to process the data." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Primary input slot configuration string." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "102938475610293847561029384756" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal output stream ready for data." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeef1234567890abcdef12345678" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Primary input slot configuration string.", + "slot_b": "102938475610293847561029384756" + }, + "outputs": { + "text_output": "Terminal output stream ready for data.", + "hex_output": "deadbeef1234567890abcdef12345678" + } + }, + "narrative": "An old Entry Terminal covered in dust. It looks like it still has power and awaits initial manual operation." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A strange Hidden Cipher found tucked away in a drawer." + }, + { + "id": "zip_unzip_file_cdbb", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "backup_archive_2023.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Complex_Pass_Phrase_Variant_B" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "restored_database_log.txt" + } + ], + "init": { + "inputs": { + "zip_id": "backup_archive_2023.zip", + "password": "Complex_Pass_Phrase_Variant_B" + }, + "outputs": { + "files": "restored_database_log.txt" + } + }, + "narrative": "The Archive Extractor. A standalone machine used to pull basic locked files from cold storage." + }, + { + "id": "calc_bigmul_ef6f", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "564738291029384756102938475610" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "314159265358979323846264338327" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "177417766629876978243326804876114049272483316192486677704470" + } + ], + "init": { + "inputs": { + "a": "564738291029384756102938475610" + }, + "outputs": {} + }, + "narrative": "This is the Trace Multiplier. It requires input from the Evidence Tag to reconstruct the numeric sequence." + }, + { + "id": "item_10", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_10", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "314159265358979323846264338327" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "314159265358979323846264338327" + } + }, + "narrative": "A crumpled Evidence Tag with some faded numbers written across the bottom." + } + ], + "edges": [ + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num1" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "calc_gcd_ff9d", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "calc_gcd_ff9d", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "item_16", + "target_id": "calc_bigmul", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "calc_bigmul_37ca", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "calc_bigmul_37ca", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "exp" + }, + { + "source_id": "zip_unzip_file", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd_ff9d", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "terminal_1", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex" + }, + { + "source_id": "item_8", + "target_id": "zip_unzip_item", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "terminal_1", + "target_id": "calc_gcd_ff9d", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "zip_unzip_file_cdbb", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul_37ca", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "calc_bigmul_ef6f", + "target_id": "calc_gcd_ff9d", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "item_10", + "target_id": "calc_bigmul_ef6f", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "b" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_3c3b7112_narrative.json b/data/questions/15/narrative/skeleton_3c3b7112_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..3b584ae6f0c9b863b8f8d2cdd001426e985e29f6 --- /dev/null +++ b/data/questions/15/narrative/skeleton_3c3b7112_narrative.json @@ -0,0 +1,925 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "item_9", + "win_condition": { + "type": "item_content", + "node_id": "item_9", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_9", + "unicode_norm", + "terminal_2", + "calc_inv_mod", + "graph_shortest_path", + "json_get", + "terminal_1", + "zip_unzip_file", + "item_4", + "checksum_crc32" + ], + "by_node": { + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "form": { + "type": "Text_Generic", + "description": "Form" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "jsonpath": { + "type": "Text_Generic", + "description": "JSONPath expression" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "container_manifest_v2.json" + } + }, + "unicode_norm": { + "init_inputs": { + "form": "NFC" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Calculation sequence pending authorization.", + "hex_result": "11223344556677889900aabbccddeeff" + } + }, + "calc_inv_mod": { + "init_inputs": { + "mod": "104729" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_topology_map.json" + }, + "init_outputs": { + "path": "[\"Server_A\", \"Router_X\", \"Switch_09\", \"Gateway_N\", \"Server_B\"]", + "cost": "58291" + } + }, + "json_get": { + "init_inputs": { + "jsonpath": "$.config.parameters.coordinates" + }, + "init_outputs": { + "values": "[\"10.0.0.1\", \"192.168.1.5\", \"172.16.0.25\"]" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Primary node ready. Destination parameter set.", + "hex_output": "abcd1234abcd1234", + "item_dispenser": "A dusty slot that refuses to open." + } + }, + "zip_unzip_file": { + "init_inputs": { + "password": "P@ssw0rd_2024!" + }, + "init_outputs": { + "files": "secure_data_dump.json" + } + }, + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "archive_backup_v3.zip" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "a1b2c3d4e5f67890" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You stand in the cold, blue glow of the defunct Arasaka Sub-Net server room. Rain drums rhythmically against the reinforced glass high above the neon-drenched sprawl of Neo-Veridia. You are a 'Diver,' a data archeologist hired to retrieve a legendary piece of pre-War tech: the data contents of a specific Neuro-Cortex Chip. The chip isn't just lying around; it has to be synthesized and programmed on-site using the facility's dormant industrial equipment. The room is filled with whirring processors, locked terminals, and cryptographic nodes. You must restore the data flow, bypass the security protocols, and fabricate the vessel to smuggle the data out before the intrusion countermeasures incinerate the room—and you along with it.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside", + "value": "synthesized_item_b6b4e0a034ed98d0" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "container_manifest_v2.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "container_manifest_v2.json" + } + }, + "narrative": "The Neuro-Cortex Chip. This serves as the final storage container for the extracted data." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Calculation sequence pending authorization." + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_b6b4e0a034ed98d0" + } + ], + "narrative": "The Nano-Fabricator. A high-end industrial printer capable of molecular assembly. It requires a clean text blueprint from the Linguistic Purifier to begin construction." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Calculation sequence pending authorization." + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "Calculation sequence pending authorization." + } + ], + "init": { + "inputs": { + "form": "NFC" + }, + "outputs": {} + }, + "narrative": "The Linguistic Purifier. A sanity-check module that standardizes code formats. It awaits raw text output from the Mainframe Access Node to process." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "58291" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "85052" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation sequence pending authorization." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "11223344556677889900aabbccddeeff" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Calculation sequence pending authorization.", + "hex_result": "11223344556677889900aabbccddeeff" + } + }, + "narrative": "The Mainframe Access Node. The central security hub of the room. It requires complex numerical keys derived from the Cryptographic Inverter and the Network Router to unlock its secrets." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "58291" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "85052" + } + ], + "init": { + "inputs": { + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "The Cryptographic Inverter. A specialized processor for modular arithmetic. It needs the path cost value calculated by the Network Router to generate the inverse key." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_map.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[\"10.0.0.1\", \"192.168.1.5\", \"172.16.0.25\"]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Primary node ready. Destination parameter set." + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Server_A\", \"Router_X\", \"Switch_09\", \"Gateway_N\", \"Server_B\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "58291" + } + ], + "init": { + "inputs": { + "file_id": "network_topology_map.json" + }, + "outputs": { + "path": "[\"Server_A\", \"Router_X\", \"Switch_09\", \"Gateway_N\", \"Server_B\"]", + "cost": "58291" + } + }, + "narrative": "The Network Router. A holographic mapping system for data packets. It requires coordinates from the Data Extractor and a destination target from the Sector Control Panel to compute the optimal path." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "secure_data_dump.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.config.parameters.coordinates" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"10.0.0.1\", \"192.168.1.5\", \"172.16.0.25\"]" + } + ], + "init": { + "inputs": { + "jsonpath": "$.config.parameters.coordinates" + }, + "outputs": { + "values": "[\"10.0.0.1\", \"192.168.1.5\", \"172.16.0.25\"]" + } + }, + "narrative": "The Data Extractor. A script designed to parse structural logs. It requires the decompressed files from the Archive Decryptor to function." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Security Protocol Delta. The final fragment of the administrative override key." + }, + { + "id": "item_8_4735", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Security Protocol Gamma. A segment of the administrative override key." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"10.0.0.1\", \"192.168.1.5\", \"172.16.0.25\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 405212579 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Primary node ready. Destination parameter set." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "abcd1234abcd1234" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A dusty slot that refuses to open." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Primary node ready. Destination parameter set.", + "hex_output": "abcd1234abcd1234", + "item_dispenser": "A dusty slot that refuses to open." + } + }, + "narrative": "The Sector Control Panel. A dual-input interface governing local sub-systems. It requires configuration strings from the Data Extractor and verification integers from the Integrity Scanner." + }, + { + "id": "item_8_19f1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Security Protocol Beta. A segment of the administrative override key." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_backup_v3.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "P@ssw0rd_2024!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "secure_data_dump.json" + } + ], + "init": { + "inputs": { + "password": "P@ssw0rd_2024!" + }, + "outputs": { + "files": "secure_data_dump.json" + } + }, + "narrative": "The Archive Decryptor. A brute-force decryption tool for legacy storage formats. It requires the locked data file found inside the Black Box." + }, + { + "id": "item_8_22b9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Security Protocol Alpha. The first segment of the administrative override key." + }, + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "archive_backup_v3.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "archive_backup_v3.zip" + } + }, + "narrative": "The Black Box. A heavily encrypted, blast-proof data container retrieved from a crashed corporate transport." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "a1b2c3d4e5f67890" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "18270da3" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 405212579 + } + ], + "init": { + "inputs": { + "hex": "a1b2c3d4e5f67890" + }, + "outputs": {} + }, + "narrative": "The Integrity Scanner. A diagnostic tool used to verify the validity of hexadecimal data streams." + } + ], + "edges": [ + { + "source_id": "matter_synthesizer", + "target_id": "item_9", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "container" + }, + { + "source_id": "unicode_norm", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "blueprint" + }, + { + "source_id": "terminal_2", + "target_id": "matter_synthesizer", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num2" + }, + { + "source_id": "terminal_2", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "json_get", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "src" + }, + { + "source_id": "item_8", + "target_id": "terminal_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_8_4735", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "terminal_1", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "dst" + }, + { + "source_id": "item_8_19f1", + "target_id": "item_8_4735", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "json_get", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "slot_a" + }, + { + "source_id": "zip_unzip_file", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_8_22b9", + "target_id": "item_8_19f1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_4", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_41513452_narrative.json b/data/questions/15/narrative/skeleton_41513452_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..f1653ececd2493e039631b4d9711aa09cc885dc8 --- /dev/null +++ b/data/questions/15/narrative/skeleton_41513452_narrative.json @@ -0,0 +1,879 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 19, + "win_node_id": "calc_bigmul", + "win_condition": { + "type": "tool_output", + "node_id": "calc_bigmul", + "output_port": "product", + "output_type": "Big_Int", + "description": "Execute Big Number Multiplier and get the output from port 'product'" + }, + "source_init": { + "source_nodes": [ + "calc_modexp", + "calc_modexp_3eae", + "checksum_crc32", + "container_1", + "calc_inv_mod_bf70", + "calc_bigmul_e884", + "checksum_crc32_a0f5", + "terminal_1" + ], + "by_node": { + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_modexp_3eae": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "calc_inv_mod_bf70": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_bigmul_e884": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32_a0f5": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + } + } + }, + "initial_values": { + "calc_modexp": { + "init_inputs": { + "mod": "918273645091827364501234" + }, + "init_outputs": {} + }, + "calc_modexp_3eae": { + "init_inputs": { + "exp": "102938475610293847565678" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeefcafebabedeadbeefcafebabe" + }, + "init_outputs": {} + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "1122334455667788" + }, + "init_outputs": {} + }, + "calc_inv_mod_bf70": { + "init_inputs": { + "mod": "192837465019283746509999" + }, + "init_outputs": {} + }, + "calc_bigmul_e884": { + "init_inputs": { + "b": "564738291056473829104321" + }, + "init_outputs": {} + }, + "checksum_crc32_a0f5": { + "init_inputs": { + "hex": "00ff00ff00ff00ff12345678" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Initialization sequence alpha", + "slot_b": "888888888888888888888888" + }, + "init_outputs": { + "text_output": "Process completed successfully without errors.", + "hex_output": "abcdef0123456789" + } + } + }, + "intro_narrative": "You are a rogue hacker who has infiltrated the hidden underground server room of the elusive mega-corporation, OmniCorp. The air is cold, filled with the loud hum of cooling fans and the relentless blinking of massive server racks. Your mission is to bypass their multi-layered security network and extract the final system override key before the automated security sweep locks you inside forever. The room is scattered with various cryptographic modules, standalone validators, and encrypted data drives. You must trace the data flows, activate the correct sequences, and route the right signals into the right devices. Find a way to activate the ultimate override and secure your escape.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "16636997727183668330421759372130998875409423690059799034314421369942009" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "160849764713261360202412" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "2676057169952557064178074242572313483650102717986903662914545587645903737407427118804941925708" + } + ], + "narrative": "This is the Core Override Processor. The ultimate system control node. It requires inputs from both the Firewall Breach Protocol and the Network Multiplier." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "220698836" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "4" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "918273645091827364501234" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "160849764713261360202412" + } + ], + "init": { + "inputs": { + "mod": "918273645091827364501234" + }, + "outputs": {} + }, + "narrative": "This is the Firewall Breach Protocol. A sophisticated intrusion software package. It requires inputs from both the Resonance Calibrator and the Logic Inverter." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "220698836" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "1505266296" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "4" + } + ], + "narrative": "This is the Resonance Calibrator. A synchronization unit for server frequencies. It requires inputs from both the Logic Inverter and the Quantum Exponentiator." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "1505266296" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 1537536131 + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "220698836" + } + ], + "narrative": "This is the Logic Inverter. A cybernetic decryption relay. It requires inputs from both the Quantum Exponentiator and the Secondary Hash Validator." + }, + { + "id": "calc_modexp_3eae", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "16636997727183668330421759372130998875409423690059799034314421369942009" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "102938475610293847565678" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 1537536131 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1505266296" + } + ], + "init": { + "inputs": { + "exp": "102938475610293847565678" + }, + "outputs": {} + }, + "narrative": "This is the Quantum Exponentiator. A highly advanced encryption engine. It requires inputs from both the Secondary Hash Validator and the Network Multiplier." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeefcafebabedeadbeefcafebabe" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "5ba4f083" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1537536131 + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafebabedeadbeefcafebabe" + }, + "outputs": {} + }, + "narrative": "This is the Secondary Hash Validator. A backup data validation station used for secondary layer security." + }, + { + "id": "calc_bigmul_561c", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "96930643579624209892649378071983457172190720917" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "171638164287201034744277" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "16636997727183668330421759372130998875409423690059799034314421369942009" + } + ], + "narrative": "This is the Network Multiplier. A bandwidth expansion device. It requires inputs from both the Security Reverser and the Data Amplifier." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "1122334455667788" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "1122334455667788" + }, + "outputs": {} + }, + "narrative": "This is the Biometric Lockbox. A sturdy titanium box secured with a fingerprint scanner." + }, + { + "id": "calc_inv_mod_bf70", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 465438134 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "192837465019283746509999" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "171638164287201034744277" + } + ], + "init": { + "inputs": { + "mod": "192837465019283746509999" + }, + "outputs": {} + }, + "narrative": "This is the Security Reverser. A specialized cryptographic tool. It requires input from the Primary Hash Validator." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is an Encrypted Key Fob. A small digital device with a blank screen and no obvious ports." + }, + { + "id": "calc_bigmul_e884", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "171638164287201034744277" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "564738291056473829104321" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "96930643579624209892649378071983457172190720917" + } + ], + "init": { + "inputs": { + "b": "564738291056473829104321" + }, + "outputs": {} + }, + "narrative": "This is the Data Amplifier. A signal boosting module. It requires input from the Security Reverser." + }, + { + "id": "checksum_crc32_a0f5", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "00ff00ff00ff00ff12345678" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "1bbe05b6" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 465438134 + } + ], + "init": { + "inputs": { + "hex": "00ff00ff00ff00ff12345678" + }, + "outputs": {} + }, + "narrative": "This is the Primary Hash Validator. An offline data validation station used to verify initial data blocks." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Server Logs drive. A heavily encrypted digital text file containing time-stamped system events." + }, + { + "id": "item_8_be37", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is a Bypass Token. A sleek, metallic physical token with embedded micro-circuitry." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Initialization sequence alpha" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "888888888888888888888888" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Process completed successfully without errors." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "abcdef0123456789" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Initialization sequence alpha", + "slot_b": "888888888888888888888888" + }, + "outputs": { + "text_output": "Process completed successfully without errors.", + "hex_output": "abcdef0123456789" + } + }, + "narrative": "This is the Mainframe Access Terminal. A heavy-duty console used by system administrators to interface directly with the network." + } + ], + "edges": [ + { + "source_id": "calc_modexp", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "exp" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "base" + }, + { + "source_id": "calc_modexp_3eae", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "calc_modexp_3eae", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_3eae", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "calc_bigmul_561c", + "target_id": "calc_modexp_3eae", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "base" + }, + { + "source_id": "container_1", + "target_id": "calc_modexp", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "calc_inv_mod_bf70", + "target_id": "calc_bigmul_561c", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "b" + }, + { + "source_id": "item_8", + "target_id": "calc_bigmul_561c", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_bigmul_e884", + "target_id": "calc_bigmul_561c", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "checksum_crc32_a0f5", + "target_id": "calc_inv_mod_bf70", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "item_16", + "target_id": "calc_inv_mod_bf70", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "calc_inv_mod_bf70", + "target_id": "calc_bigmul_e884", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_bigmul_561c", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "item_8_be37", + "target_id": "calc_gcd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "terminal_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_420a410f_narrative.json b/data/questions/15/narrative/skeleton_420a410f_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..fca01bb7a0f1ec50eff7ebe16a5c1beef59bf444 --- /dev/null +++ b/data/questions/15/narrative/skeleton_420a410f_narrative.json @@ -0,0 +1,977 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 20, + "win_node_id": "container_3", + "win_condition": { + "type": "item_content", + "node_id": "container_3", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_3", + "terminal_2", + "calc_modexp", + "calc_gcd", + "calc_inv_mod", + "calc_modexp_4b06", + "num_base_convert_4975", + "container_4", + "calc_bigmul", + "num_base_convert_60f7", + "calc_bigmul_8a0c" + ], + "by_node": { + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_modexp_4b06": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "num_base_convert_4975": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "num_base_convert_60f7": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "calc_bigmul_8a0c": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_3": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "π_e_φ_√2_ln3_sin1_cos0" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal active. Waiting for data stream.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "math_token": "MathToken_XC928" + } + }, + "calc_modexp": { + "init_inputs": { + "exp": "8475629103847562910384" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "9182736450192837465012" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "mod": "999983" + }, + "init_outputs": {} + }, + "calc_modexp_4b06": { + "init_inputs": { + "exp": "2039485761203948576120", + "mod": "100003" + }, + "init_outputs": {} + }, + "num_base_convert_4975": { + "init_inputs": { + "to_base": "10" + }, + "init_outputs": {} + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "hash_verification_scan_01" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "3847562910384756291038", + "b": "9283746501928374650192" + }, + "init_outputs": {} + }, + "num_base_convert_60f7": { + "init_inputs": { + "s": "5647382910564738291056", + "to_base": "10" + }, + "init_outputs": {} + }, + "calc_bigmul_8a0c": { + "init_inputs": { + "b": "7465839201746583920174" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You stand within the Celestial Sanctum, the high tower of the ancient Archmage Arithmos. The room is filled with humming crystals, floating runes, and intricate machinery fueled by pure mana. Arithmos has vanished, leaving behind his greatest treasure locked within the Vault of Eternity. To open it, you must harmonize the flow of magical energy through the room's various artifacts. The machines are dormant or disjointed; only by channeling the correct magical values from one device to another can you reconstruct the sequence that unseals the vault. The air crackles with potential—the magic awaits your command.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "1" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "π_e_φ_√2_ln3_sin1_cos0" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "π_e_φ_√2_ln3_sin1_cos0" + } + }, + "narrative": "The Vault of Eternity. The Archmage's final masterpiece, a floating safe reinforced by ancient magic. It requires the purified essence from the Essence Purifier to release its seal." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Scroll of Time. An ancient parchment recovered from the Oracle's Chest, bearing markings of different eras." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Oracle's Chest. A gilded chest sealed by a hexadecimal ward. It requires the specific hex code output from the Grand Oracle to unlock." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "426655022700731698887210179096672058609793" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "201950950407245095040706700" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal active. Waiting for data stream." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "MathToken_XC928" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal active. Waiting for data stream.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "math_token": "MathToken_XC928" + } + }, + "narrative": "The Grand Oracle. A stone altar with a glowing interface, acting as the sanctum's central processor. It requires the synthesized data from the Tri-Element Converter and the Astral Projector." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "201950950407245095040706700" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "27050" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "5647382910564738291056" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "201950950407245095040706700" + } + ], + "narrative": "The Tri-Element Converter. A complex gear-work device with three intake ports. It requires synchronized inputs from the Stellar Resonator, the Flux Transmuter, and the Harmonic Multiplier." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "457259" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "8475629103847562910384" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "35719798710233837651681931723859574594579296" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "426655022700731698887210179096672058609793" + } + ], + "init": { + "inputs": { + "exp": "8475629103847562910384" + }, + "outputs": {} + }, + "narrative": "The Astral Projector. A massive telescope pointed at the night sky, awaiting coordinates. It requires stabilization data from the Void Inverter and power from the Ley Line Amplifier." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "9182736450192837465012" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "457259" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "9182736450192837465012" + }, + "outputs": {} + }, + "narrative": "The Essence Purifier. A filtration basin that distills magic to its common denominator. It requires the translated values from the Rune Translator." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "5647382910564738291056" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "457259" + } + ], + "init": { + "inputs": { + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "The Void Inverter. A dark mirror that calculates the counter-balance of a spell. It requires the transmuted energy from the Flux Transmuter." + }, + { + "id": "calc_modexp_4b06", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "426655022700731698887210179096672058609793" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "2039485761203948576120" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "100003" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "27050" + } + ], + "init": { + "inputs": { + "exp": "2039485761203948576120", + "mod": "100003" + }, + "outputs": {} + }, + "narrative": "The Stellar Resonator. A tuning fork made of starlight alloy. It requires the celestial coordinates from the Astral Projector to begin vibrating." + }, + { + "id": "num_base_convert_4975", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "457259" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "27050" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "457259" + } + ], + "init": { + "inputs": { + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The Rune Translator. An enchanted slate that deciphers numerical prophecies. It requires inputs from the Void Inverter and the Stellar Resonator to interpret the script." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "hash_verification_scan_01" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "hash_verification_scan_01" + }, + "outputs": {} + }, + "narrative": "The Shadow Coffer. A small box seemingly woven from solidified shadows, secured by a complex verbal lock mechanism." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "3847562910384756291038" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "9283746501928374650192" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "35719798710233837651681931723859574594579296" + } + ], + "init": { + "inputs": { + "a": "3847562910384756291038", + "b": "9283746501928374650192" + }, + "outputs": {} + }, + "narrative": "The Ley Line Amplifier. A heavy bronze pedestal that gathers raw ambient magic and multiplies its intensity." + }, + { + "id": "num_base_convert_60f7", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "5647382910564738291056" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "35719798710233837651681931723859574594579296" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "5647382910564738291056" + } + ], + "init": { + "inputs": { + "s": "5647382910564738291056", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The Flux Transmuter. A prism that shifts the form of magical energy. It requires a concentrated charge from the Ley Line Amplifier to function." + }, + { + "id": "calc_bigmul_8a0c", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "27050" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "7465839201746583920174" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "201950950407245095040706700" + } + ], + "init": { + "inputs": { + "b": "7465839201746583920174" + }, + "outputs": {} + }, + "narrative": "The Harmonic Multiplier. A set of echoing crystals designed to expand a magical signal. It requires the specific frequency from the Stellar Resonator." + }, + { + "id": "item_16_34b4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Onyx Gem. A smooth, dark stone found resting on a velvet cushion." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num1" + }, + { + "source_id": "calc_gcd", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "base" + }, + { + "source_id": "calc_modexp_4b06", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "from_base" + }, + { + "source_id": "num_base_convert_4975", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert_4975", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "s" + }, + { + "source_id": "calc_modexp_4b06", + "target_id": "num_base_convert_4975", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "from_base" + }, + { + "source_id": "container_4", + "target_id": "calc_modexp", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_modexp_4b06", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "base" + }, + { + "source_id": "num_base_convert_60f7", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "to_base" + }, + { + "source_id": "calc_bigmul_8a0c", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "num_base_convert_60f7", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "calc_modexp_4b06", + "target_id": "calc_bigmul_8a0c", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert_60f7", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "from_base" + }, + { + "source_id": "item_16_34b4", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_4828aa13_narrative.json b/data/questions/15/narrative/skeleton_4828aa13_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..3f82ca5c3f0e7a6cdebbe5d8230217d9e565c09e --- /dev/null +++ b/data/questions/15/narrative/skeleton_4828aa13_narrative.json @@ -0,0 +1,895 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "csv_query", + "win_condition": { + "type": "tool_output", + "node_id": "csv_query", + "output_port": "rows", + "output_type": "Text_Generic", + "description": "Execute CSV Query and get the output from port 'rows'" + }, + "source_init": { + "source_nodes": [ + "csv_query", + "csv_query_1247", + "zip_unzip_file", + "text_xor_hex", + "container_4", + "zip_unzip_file_9cd5", + "zip_unzip_file_3ed0", + "zip_unzip_item", + "item_15" + ], + "by_node": { + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": {}, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "csv_query_1247": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": {}, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "text_xor_hex": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_a": { + "type": "Hex_String", + "description": "Hex A" + }, + "hex_b": { + "type": "Hex_String", + "description": "Hex B" + } + }, + "init_outputs": {} + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_9cd5": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_3ed0": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "item_15": { + "node_name": "", + "node_type": "Item", + "template_id": "item_15", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Text_Generic", + "description": "Timezone text" + } + } + } + } + }, + "initial_values": { + "csv_query": { + "init_inputs": {}, + "init_outputs": { + "rows": "[{\"id\": 101, \"name\": \"alpha\", \"score\": 98}, {\"id\": 102, \"name\": \"beta\", \"score\": 85}, {\"id\": 103, \"name\": \"gamma\", \"score\": 91}]" + } + }, + "csv_query_1247": { + "init_inputs": {}, + "init_outputs": { + "rows": "[{\"category\": \"A\", \"count\": 15}, {\"category\": \"B\", \"count\": 23}, {\"category\": \"C\", \"count\": 7}]" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_dataset_2023.csv" + } + }, + "text_xor_hex": { + "init_inputs": { + "hex_a": "4a6f686e20446f65", + "hex_b": "1122334455667788" + }, + "init_outputs": {} + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "fp_9a8b7c6d5e4f3a2b1c" + }, + "init_outputs": {} + }, + "zip_unzip_file_9cd5": { + "init_inputs": { + "zip_id": "archive_protected_v1.zip", + "password": "StrongPassword123!" + }, + "init_outputs": { + "files": "confidential_report.txt" + } + }, + "zip_unzip_file_3ed0": { + "init_inputs": { + "zip_id": "backup_logs_2024.zip", + "password": "admin_access_key" + }, + "init_outputs": { + "files": "system_trace.log" + } + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "resources_bundle.zip", + "password": "Unlock_Resources_99" + }, + "init_outputs": {} + }, + "item_15": { + "init_inputs": {}, + "init_outputs": { + "content": "Asia/Tokyo" + } + } + }, + "intro_narrative": "You have breached the server room of the Helios Corporation, a shadow organization accused of illicit neural experiments. The facility is in lockdown, red emergency lights pulsing against the cold steel of the server racks. Your objective is clear: retrieve the 'Project Chimera' subject list before the halon gas system triggers. The central mainframe is air-gapped and protected by layers of encryption and physical security. You must scavenge the room for credentials, decrypt the fragmented data streams, and piece together the access protocols to query the Master Database Terminal. Time is running out.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "extracted_dataset_2023.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "[M[*u\"\u0018" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "[{\"category\": \"A\", \"count\": 15}, {\"category\": \"B\", \"count\": 23}, {\"category\": \"C\", \"count\": 7}]" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"id\": 101, \"name\": \"alpha\", \"score\": 98}, {\"id\": 102, \"name\": \"beta\", \"score\": 85}, {\"id\": 103, \"name\": \"gamma\", \"score\": 91}]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "rows": "[{\"id\": 101, \"name\": \"alpha\", \"score\": 98}, {\"id\": 102, \"name\": \"beta\", \"score\": 85}, {\"id\": 103, \"name\": \"gamma\", \"score\": 91}]" + } + }, + "narrative": "The Master Database Terminal. This is your final objective. To execute the retrieval command, it requires the filtered dataset from Database Node A, the specific file handle from Archive Extractor B, and the column parameters from Text Converter A." + }, + { + "id": "csv_query_1247", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "confidential_report.txt" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "[M[*u\"\u0018" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "W01bKnUiGO0=" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"category\": \"A\", \"count\": 15}, {\"category\": \"B\", \"count\": 23}, {\"category\": \"C\", \"count\": 7}]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "rows": "[{\"category\": \"A\", \"count\": 15}, {\"category\": \"B\", \"count\": 23}, {\"category\": \"C\", \"count\": 7}]" + } + }, + "narrative": "Database Node A. This is an intermediate SQL processing unit. It constructs a query fragment. It requires the selection syntax from Text Converter B, the conditional logic from the Encoder Terminal, and the source file ID from the Main Server Archive." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "5b4d5b2a752218ed" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "[M[*u\"\u0018" + } + ], + "narrative": "Text Converter B. A legacy decoding script running on a monochrome monitor. It needs the System Key to unlock. Once active, it processes the raw hex output from Decryption Module Alpha." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "system_trace.log" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "W01bKnUiGO0=" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_dataset_2023.csv" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_dataset_2023.csv" + } + }, + "narrative": "Archive Extractor B. A secondary decompression utility. It requires the file reference from Archive Extractor A and the authorization string generated by the Encoder Terminal." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "5b4d5b2a752218ed" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "W01bKnUiGO0=" + } + ], + "narrative": "The Encoder Terminal. A tablet running a format conversion tool. It requires the raw binary data output from Decryption Module Alpha to generate a readable string." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "4a6f686e20446f65" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "1122334455667788" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "5b4d5b2a752218ed" + } + ], + "init": { + "inputs": { + "hex_a": "4a6f686e20446f65", + "hex_b": "1122334455667788" + }, + "outputs": {} + }, + "narrative": "Decryption Module Alpha. A dedicated cryptographic processor. It is currently locked and requires the hardware key from the Biometric Safe to activate. Once unlocked, it merges two hex data streams." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "fp_9a8b7c6d5e4f3a2b1c" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "fp_9a8b7c6d5e4f3a2b1c" + }, + "outputs": {} + }, + "narrative": "The Biometric Safe. A reinforced titanium box with a glowing fingerprint scanner. It requires a specific fingerprint hash to open and reveal its contents." + }, + { + "id": "zip_unzip_file_9cd5", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_protected_v1.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "StrongPassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "confidential_report.txt" + } + ], + "init": { + "inputs": { + "zip_id": "archive_protected_v1.zip", + "password": "StrongPassword123!" + }, + "outputs": { + "files": "confidential_report.txt" + } + }, + "narrative": "The Main Server Archive. The root file directory containing encrypted system logs and database files." + }, + { + "id": "zip_unzip_file_3ed0", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "backup_logs_2024.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "admin_access_key" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "system_trace.log" + } + ], + "init": { + "inputs": { + "zip_id": "backup_logs_2024.zip", + "password": "admin_access_key" + }, + "outputs": { + "files": "system_trace.log" + } + }, + "narrative": "Archive Extractor A. A locked file extraction protocol. It requires the rolling code from the Security Token to access the file system." + }, + { + "id": "hex_decode_ebfb", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool", + "value": "" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "5b4d5b2a752218ed" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "[M[*u\"\u0018" + } + ], + "narrative": "Text Converter A. A linguistic analysis tool. It requires the authorization item from the Secure Folder to function. It processes the raw hex data from Decryption Module Alpha." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The System Key. A digital clearance key extracted from the Backup Folder." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Security Token. A loose RSA hardware token found under a desk. It displays a changing integer." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "resources_bundle.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Unlock_Resources_99" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "resources_bundle.zip", + "password": "Unlock_Resources_99" + }, + "outputs": {} + }, + "narrative": "The Backup Folder. An isolated backup partition containing system tools. It requires valid credentials to access the items inside." + }, + { + "id": "zip_unzip_item_b5c1", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "confidential_report.txt" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Asia/Tokyo" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip", + "value": "" + } + ], + "narrative": "The Secure Folder. A protected sub-directory. It requires the file path from the Main Server Archive and the credentials found on the Password Note." + }, + { + "id": "item_15", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_15", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Text_Generic", + "description": "Timezone text", + "value": "Asia/Tokyo" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "Asia/Tokyo" + } + }, + "narrative": "The Password Note. A yellow sticky note attached to a monitor with a complex string of characters written on it." + } + ], + "edges": [ + { + "source_id": "csv_query_1247", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "where" + }, + { + "source_id": "hex_decode", + "target_id": "csv_query_1247", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "select" + }, + { + "source_id": "zip_unzip_file", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "base64_encode", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "password" + }, + { + "source_id": "text_xor_hex", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "text_xor_hex", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "base64_encode", + "target_id": "csv_query_1247", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "where" + }, + { + "source_id": "container_4", + "target_id": "text_xor_hex", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "zip_unzip_file_9cd5", + "target_id": "csv_query_1247", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_3ed0", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "hex_decode_ebfb", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "select" + }, + { + "source_id": "item_16", + "target_id": "hex_decode", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "text_xor_hex", + "target_id": "hex_decode_ebfb", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_8", + "target_id": "zip_unzip_file_3ed0", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_item_b5c1", + "target_id": "hex_decode_ebfb", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "zip_unzip_file_9cd5", + "target_id": "zip_unzip_item_b5c1", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_15", + "target_id": "zip_unzip_item_b5c1", + "connection_type": "Text_Generic", + "source_port": "content", + "target_port": "password" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_53ca9853_narrative.json b/data/questions/15/narrative/skeleton_53ca9853_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..4aff1d0be9c7024beaf0f8acac63e7684d36161c --- /dev/null +++ b/data/questions/15/narrative/skeleton_53ca9853_narrative.json @@ -0,0 +1,1159 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 19, + "win_node_id": "container_3", + "win_condition": { + "type": "item_content", + "node_id": "container_3", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_3", + "terminal_2", + "graph_shortest_path", + "zip_unzip_file", + "num_base_convert_66ce", + "zip_unzip_item", + "terminal_1", + "time_convert", + "csv_query", + "calc_bigmul", + "graph_shortest_path_8352", + "checksum_crc32", + "calc_inv_mod" + ], + "by_node": { + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "num_base_convert_66ce": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "time_convert": { + "node_name": "Timezone Converter", + "node_type": "Tool", + "template_id": "time_convert", + "init_inputs": { + "iso": { + "type": "Text_Generic", + "description": "ISO Timestamp" + }, + "from_tz": { + "type": "Text_Generic", + "description": "From Timezone" + }, + "to_tz": { + "type": "Text_Generic", + "description": "To Timezone" + } + }, + "init_outputs": {} + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + }, + "select": { + "type": "Text_Generic", + "description": "Columns to select" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "graph_shortest_path_8352": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_3": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "Zorvath_Quixil_Nymphera_Vorthun_Kaelis" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Calculation paused. Waiting for complete numerical inputs.", + "hex_result": "4a6f686e20446f65205369676e6174757265" + } + }, + "graph_shortest_path": { + "init_inputs": { + "dst": "Node_Termination_Point" + }, + "init_outputs": { + "path": "[\"Start_Node\", \"Gateway_A\", \"Router_7\", \"Node_Termination_Point\"]", + "cost": "15420" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "archive_data_backup.zip" + }, + "init_outputs": { + "files": "extracted_manifest.json" + } + }, + "num_base_convert_66ce": { + "init_inputs": { + "s": "82736451928374650129384765" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "secure_payload_bundle.zip" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Primary command sequence initiated." + }, + "init_outputs": { + "text_output": "Terminal active. Please provide secondary slot input for execution.", + "hex_output": "deadbeefcafebabe12345678" + } + }, + "time_convert": { + "init_inputs": { + "iso": "2023-11-15T09:45:00Z", + "from_tz": "UTC", + "to_tz": "Asia/Tokyo" + }, + "init_outputs": {} + }, + "csv_query": { + "init_inputs": { + "file_id": "transactions_log.csv", + "select": "transaction_id, amount, status" + }, + "init_outputs": { + "rows": "[{\"transaction_id\":\"TX1001\",\"amount\":\"500.00\",\"status\":\"completed\"},{\"transaction_id\":\"TX1002\",\"amount\":\"120.50\",\"status\":\"pending\"}]" + } + }, + "calc_bigmul": { + "init_inputs": { + "a": "9182736450192837465012938" + }, + "init_outputs": {} + }, + "graph_shortest_path_8352": { + "init_inputs": { + "file_id": "network_topology_v2.json", + "src": "Server_Alpha", + "dst": "Database_Omega" + }, + "init_outputs": { + "path": "[\"Server_Alpha\", \"Switch_Core\", \"Firewall_Internal\", \"Database_Omega\"]", + "cost": "2450" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "6574839201928374650192837", + "mod": "104729" + }, + "init_outputs": {} + } + }, + "intro_narrative": "Welcome to the airborne workshop of the late Inventor-General Archimedes Vance. Suspended miles above the smog-choked streets of New London in a decaying dirigible, this laboratory holds his greatest secret: the blueprints for an infinite clean energy engine, locked safely away inside The Brass Vault. As the airship's boiler pressure drops to critical levels, you have only a limited time to navigate his labyrinth of steam-powered contraptions and clockwork terminals. You must decipher the intricate connections between his aetheric inventions and restore the grand mechanism before the vessel plummets to the earth.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "82736451928374650129384765" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "Zorvath_Quixil_Nymphera_Vorthun_Kaelis" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "Zorvath_Quixil_Nymphera_Vorthun_Kaelis" + } + }, + "narrative": "This is The Brass Vault, a heavy safe sealed with pneumatic locks. It requires input from The Resonance Tuner to release its final latches." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Chrono-Parchment is a fragile, oil-stained document covered in fading mechanical schematics." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "15420" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "15627833792682515958895617773304738" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation paused. Waiting for complete numerical inputs." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "4a6f686e20446f65205369676e6174757265" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Calculation paused. Waiting for complete numerical inputs.", + "hex_result": "4a6f686e20446f65205369676e6174757265" + } + }, + "narrative": "This is The Aetheric Calculator, a brass-plated device with glowing vacuum tubes. It requires inputs from both The Navigator's Compass and The Cogwheel Translator to function." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_manifest.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[{\"transaction_id\":\"TX1001\",\"amount\":\"500.00\",\"status\":\"completed\"},{\"transaction_id\":\"TX1002\",\"amount\":\"120.50\",\"status\":\"pending\"}]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_Termination_Point" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Start_Node\", \"Gateway_A\", \"Router_7\", \"Node_Termination_Point\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "15420" + } + ], + "init": { + "inputs": { + "dst": "Node_Termination_Point" + }, + "outputs": { + "path": "[\"Start_Node\", \"Gateway_A\", \"Router_7\", \"Node_Termination_Point\"]", + "cost": "15420" + } + }, + "narrative": "This is The Navigator's Compass, a complex array of mechanical mapping rings. It requires inputs from The Steam-Driven Archive and The Punched Card Reader to chart a precise course." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "15627833792682515958895617773304738" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "2450" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "15420" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "15627833792682515958895617773304738" + } + ], + "narrative": "This is The Cogwheel Translator, a massive gear-shifting mechanism. It requires inputs from The Navigator's Compass, The Multiplier Loom, and The Cartographer's Gyroscope to calibrate its gears." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_data_backup.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Terminal active. Please provide secondary slot input for execution." + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_manifest.json" + } + ], + "init": { + "inputs": { + "zip_id": "archive_data_backup.zip" + }, + "outputs": { + "files": "extracted_manifest.json" + } + }, + "narrative": "This is The Steam-Driven Archive, a pressurized filing cabinet hissing with steam. It requires input from The Analytical Engine to unlock its document cylinders." + }, + { + "id": "num_base_convert_66ce", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "82736451928374650129384765" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "15627833792682515958895617773304738" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "35306" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "82736451928374650129384765" + } + ], + "init": { + "inputs": { + "s": "82736451928374650129384765" + }, + "outputs": {} + }, + "narrative": "This is The Resonance Tuner, a delicate acoustic instrument with crystalline dials. It requires inputs from The Cogwheel Translator and The Phase Inverter to find the correct frequency." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_payload_bundle.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "2023-11-15T18:45:00+09:00" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "secure_payload_bundle.zip" + }, + "outputs": {} + }, + "narrative": "This is The Clockwork Lockbox, a small, intricately geared safe. It requires input from The Temporal Astrolabe to disengage its internal tumblers." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Primary command sequence initiated." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "15627833792682515958895617773304738" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal active. Please provide secondary slot input for execution." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeefcafebabe12345678" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Primary command sequence initiated." + }, + "outputs": { + "text_output": "Terminal active. Please provide secondary slot input for execution.", + "hex_output": "deadbeefcafebabe12345678" + } + }, + "narrative": "This is The Analytical Engine, a towering machine clattering with thousands of brass switches. It requires input from The Multiplier Loom to begin its processing sequence." + }, + { + "id": "time_convert", + "name": "Timezone Converter", + "description": "Convert ISO time between timezones.", + "type": "Tool", + "template_id": "time_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "ISO Timestamp", + "value": "2023-11-15T09:45:00Z" + }, + { + "name": "from_tz", + "type": "Text_Generic", + "description": "From Timezone", + "value": "UTC" + }, + { + "name": "to_tz", + "type": "Text_Generic", + "description": "To Timezone", + "value": "Asia/Tokyo" + } + ], + "outputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "Converted ISO Timestamp", + "value": "2023-11-15T18:45:00+09:00" + } + ], + "init": { + "inputs": { + "iso": "2023-11-15T09:45:00Z", + "from_tz": "UTC", + "to_tz": "Asia/Tokyo" + }, + "outputs": {} + }, + "narrative": "This is The Temporal Astrolabe, a complex handheld device with rotating celestial dials." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "transactions_log.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "transaction_id, amount, status" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "Terminal active. Please provide secondary slot input for execution." + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"transaction_id\":\"TX1001\",\"amount\":\"500.00\",\"status\":\"completed\"},{\"transaction_id\":\"TX1002\",\"amount\":\"120.50\",\"status\":\"pending\"}]" + } + ], + "init": { + "inputs": { + "file_id": "transactions_log.csv", + "select": "transaction_id, amount, status" + }, + "outputs": { + "rows": "[{\"transaction_id\":\"TX1001\",\"amount\":\"500.00\",\"status\":\"completed\"},{\"transaction_id\":\"TX1002\",\"amount\":\"120.50\",\"status\":\"pending\"}]" + } + }, + "narrative": "This is The Punched Card Reader, a clanking machine that sorts through stacks of perforated brass sheets. It requires input from The Analytical Engine to filter the correct records." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "9182736450192837465012938" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 1701871101 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "15627833792682515958895617773304738" + } + ], + "init": { + "inputs": { + "a": "9182736450192837465012938" + }, + "outputs": {} + }, + "narrative": "This is The Multiplier Loom, a sprawling apparatus of spinning bobbins and logic threads. It requires input from The Pressure Gauge Analyzer to set its initial weaving pattern." + }, + { + "id": "graph_shortest_path_8352", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_v2.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Server_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Database_Omega" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Server_Alpha\", \"Switch_Core\", \"Firewall_Internal\", \"Database_Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "2450" + } + ], + "init": { + "inputs": { + "file_id": "network_topology_v2.json", + "src": "Server_Alpha", + "dst": "Database_Omega" + }, + "outputs": { + "path": "[\"Server_Alpha\", \"Switch_Core\", \"Firewall_Internal\", \"Database_Omega\"]", + "cost": "2450" + } + }, + "narrative": "This is The Cartographer's Gyroscope, a spinning brass globe suspended in a heavy iron gimbal." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "65707dfd" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1701871101 + } + ], + "init": { + "inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "outputs": {} + }, + "narrative": "This is The Pressure Gauge Analyzer, a diagnostic tool attached to a series of copper pipes." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "6574839201928374650192837" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "35306" + } + ], + "init": { + "inputs": { + "a": "6574839201928374650192837", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "This is The Phase Inverter, a humming electrical generator with exposed copper coils and leaping sparks." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "num_base_convert_66ce", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "fingerprint_input" + }, + { + "source_id": "zip_unzip_item", + "target_id": "graph_shortest_path", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_1", + "target_id": "zip_unzip_item", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "num_base_convert", + "target_id": "num_base_convert_66ce", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "from_base" + }, + { + "source_id": "time_convert", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "iso", + "target_port": "password" + }, + { + "source_id": "terminal_1", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "password" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "to_base" + }, + { + "source_id": "csv_query", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "src" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "graph_shortest_path_8352", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "from_base" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "slot_b" + }, + { + "source_id": "terminal_1", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "where" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert_66ce", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_574dcd85_narrative.json b/data/questions/15/narrative/skeleton_574dcd85_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..5a6a68c300d62d6464de4ec66f3b23350f48ec95 --- /dev/null +++ b/data/questions/15/narrative/skeleton_574dcd85_narrative.json @@ -0,0 +1,970 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "item_16", + "win_condition": { + "type": "item_content", + "node_id": "item_16", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_16", + "terminal_1", + "num_base_convert", + "calc_bigmul", + "zip_unzip_item", + "hmac_sha256", + "unicode_norm", + "graph_shortest_path", + "item_9", + "graph_shortest_path_fcde" + ], + "by_node": { + "item_16": { + "node_name": "", + "node_type": "Item", + "template_id": "item_16", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hidden_Item", + "description": "Timezone text" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": {} + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "hex_key": { + "type": "Hex_String", + "description": "Hex key" + }, + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "form": { + "type": "Text_Generic", + "description": "Form" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + }, + "graph_shortest_path_fcde": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "item_16": { + "init_inputs": {}, + "init_outputs": { + "content": "America/New_York" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Initialization sequence completed successfully.", + "hex_output": "a1b2c3d4e5f60789a1b2c3d4e5f60789" + } + }, + "num_base_convert": { + "init_inputs": { + "to_base": "10" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "b": "8273645019283746509182736" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "secure_data_archive.zip" + }, + "init_outputs": {} + }, + "hmac_sha256": { + "init_inputs": { + "hex_key": "4c3b2a1908d7e6f54c3b2a1908d7e6f54c3b2a1908d7e6f54c3b2a1908d7e6f5", + "text": "Authenticate this system message." + }, + "init_outputs": {} + }, + "unicode_norm": { + "init_inputs": { + "text": "Lübeck", + "form": "NFC" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "dst": "Node_X" + }, + "init_outputs": { + "path": "[\"Start_Node\", \"Gateway_1\", \"Router_A\", \"Node_X\"]", + "cost": "1250" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "network_topology.json" + } + }, + "graph_shortest_path_fcde": { + "init_inputs": { + "file_id": "complex_graph_v2.json", + "src": "Alpha", + "dst": "Omega" + }, + "init_outputs": { + "path": "[\"Alpha\", \"Beta\", \"Gamma\", \"Delta\", \"Omega\"]", + "cost": "4500" + } + } + }, + "intro_narrative": "You are trapped in a decommissioned server farm deep within the neon-lit undercity. The megacorp 'OmniCorp' has locked down the facility, initiating a core purge. Your only chance of escape is to extract the master bypass codes from a sealed mainframe terminal before the purge vaporizes everything. The equipment scattered around the room holds the key to overriding the lockdown, but their systems are heavily fragmented. You must trace the data paths and feed the right calculations to the right machines.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text", + "value": "America/New_York" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "America/New_York" + } + }, + "narrative": "A pristine memory chip containing the final exit codes. It holds the key to escaping the lockdown and surviving the night." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"Uvctv_Pqfg\", \"Icvgyca_1\", \"Tqwvgt_C\", \"Pqfg_Z\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "70440921258840054856771994018072687492649320" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Initialization sequence completed successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f60789a1b2c3d4e5f60789" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Initialization sequence completed successfully.", + "hex_output": "a1b2c3d4e5f60789a1b2c3d4e5f60789" + } + }, + "narrative": "This is the mainframe terminal. It requires inputs from both the signal translator and the cipher cylinder. You'll need to use both of those devices first before this terminal can be activated." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "8403481344896561715052178472191360" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "20" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "70440921258840054856771994018072687492649320" + } + ], + "init": { + "inputs": { + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the signal translator. It requires inputs from both the quantum multiplier and the frequency calibrator. Once you have their outputs, feed them into this device." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": 1015692760 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "8273645019283746509182736" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "8403481344896561715052178472191360" + } + ], + "init": { + "inputs": { + "b": "8273645019283746509182736" + }, + "outputs": {} + }, + "narrative": "This is the quantum multiplier. It processes data from the data validator. Feed it the result from the validator to proceed." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_data_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Lübeck" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "secure_data_archive.zip" + }, + "outputs": {} + }, + "narrative": "This is the archive decryptor. It needs the result from the format synchronizer. After processing with the synchronizer, use the output here." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "[\"Start_Node\", \"Gateway_1\", \"Router_A\", \"Node_X\"]" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "1250" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "[\"Uvctv_Pqfg\", \"Icvgyca_1\", \"Tqwvgt_C\", \"Pqfg_Z\"]" + } + ], + "narrative": "This is the cipher cylinder. It requires input from the network router. Run the router first and supply its data here." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1d11286d6fdba1341ddfa0746598f734a14fd69c79cbfebc4a265d5f11fca140" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "3c8a3dd8" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1015692760 + } + ], + "narrative": "This is the data validator. It requires input from the security token generator. Obtain the token data and process it through this module." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "4c3b2a1908d7e6f54c3b2a1908d7e6f54c3b2a1908d7e6f54c3b2a1908d7e6f5" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Authenticate this system message." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "1d11286d6fdba1341ddfa0746598f734a14fd69c79cbfebc4a265d5f11fca140" + } + ], + "init": { + "inputs": { + "hex_key": "4c3b2a1908d7e6f54c3b2a1908d7e6f54c3b2a1908d7e6f54c3b2a1908d7e6f5", + "text": "Authenticate this system message." + }, + "outputs": {} + }, + "narrative": "This is the security token generator. It hums with a faint purple light, ready to accept manual overrides and generate secure tokens." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Lübeck" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "Lübeck" + } + ], + "init": { + "inputs": { + "text": "Lübeck", + "form": "NFC" + }, + "outputs": {} + }, + "narrative": "This is the format synchronizer. It is a standalone deck used to standardize corrupted text fragments from the old net." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "4500" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "8403481344896561715052178472191360" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "20" + } + ], + "narrative": "This is the frequency calibrator. It requires inputs from both the quantum multiplier and the grid navigator. Ensure both systems are utilized before accessing this calibrator." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Lübeck" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_X" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Start_Node\", \"Gateway_1\", \"Router_A\", \"Node_X\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "1250" + } + ], + "init": { + "inputs": { + "dst": "Node_X" + }, + "outputs": { + "path": "[\"Start_Node\", \"Gateway_1\", \"Router_A\", \"Node_X\"]", + "cost": "1250" + } + }, + "narrative": "This is the network router. It requires inputs from both the format synchronizer and the data cartridge. Use them together to map the route." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An encrypted access card with a heavily scratched magnetic strip." + }, + { + "id": "item_8_fdd4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A dormant security badge discarded by a former corp-sec officer." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "network_topology.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "network_topology.json" + } + }, + "narrative": "A heavy, metallic data cartridge containing an offline map of the subnet." + }, + { + "id": "graph_shortest_path_fcde", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "complex_graph_v2.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Omega" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Alpha\", \"Beta\", \"Gamma\", \"Delta\", \"Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "4500" + } + ], + "init": { + "inputs": { + "file_id": "complex_graph_v2.json", + "src": "Alpha", + "dst": "Omega" + }, + "outputs": { + "path": "[\"Alpha\", \"Beta\", \"Gamma\", \"Delta\", \"Omega\"]", + "cost": "4500" + } + }, + "narrative": "This is the grid navigator. It is a tactical holomap device used to calculate node traversal times across the grid." + } + ], + "edges": [ + { + "source_id": "terminal_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "slot_b" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "zip_unzip_item", + "target_id": "num_base_convert", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "text_rotN", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "slot_a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "hmac_sha256", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "unicode_norm", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "n" + }, + { + "source_id": "item_8", + "target_id": "calc_gcd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_8_fdd4", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "unicode_norm", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "graph_shortest_path", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "text" + }, + { + "source_id": "item_9", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "graph_shortest_path_fcde", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_58e8b735_narrative.json b/data/questions/15/narrative/skeleton_58e8b735_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..887cc743e3cd0bf1e3d5e0f70313ef3f5ba14de9 --- /dev/null +++ b/data/questions/15/narrative/skeleton_58e8b735_narrative.json @@ -0,0 +1,995 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 21, + "win_node_id": "text_rotN", + "win_condition": { + "type": "tool_output", + "node_id": "text_rotN", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute ROT-N Cipher and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "luhn_check", + "terminal_2", + "num_base_convert_1b27", + "calc_bigmul", + "calc_modexp", + "calc_modexp_5904", + "graph_shortest_path", + "base64_encode", + "terminal_2_e1d7" + ], + "by_node": { + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "num_base_convert_1b27": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_modexp_5904": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "terminal_2_e1d7": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + } + } + }, + "initial_values": { + "luhn_check": { + "init_inputs": { + "number": "8273645512349876" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Initial terminal access granted.", + "hex_result": "64758697afbebdcc12345678" + } + }, + "num_base_convert_1b27": { + "init_inputs": { + "s": "4857293048572039485720394857203" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "1029384756102938475610293847561" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "10", + "mod": "65537" + }, + "init_outputs": {} + }, + "calc_modexp_5904": { + "init_inputs": { + "exp": "998877665544332211009988776655" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_topology_map.json", + "src": "Alpha", + "dst": "Omega" + }, + "init_outputs": { + "path": "[\"Alpha\", \"Beta\", \"Gamma\", \"Delta\", \"Epsilon\", \"Omega\"]", + "cost": "54200" + } + }, + "base64_encode": { + "init_inputs": { + "hex": "deadbeefcafebabe1234567890abcdef" + }, + "init_outputs": {} + }, + "terminal_2_e1d7": { + "init_inputs": { + "num1": "334455667788990011223344556677", + "num2": "112233445566778899001122334455" + }, + "init_outputs": { + "text_result": "Secondary cryptographic key fragment.", + "hex_result": "deafface1234567887654321" + } + } + }, + "intro_narrative": "You awaken in the dimly lit sub-basement of the abandoned Blackwood Research Facility. Dust motes dance in the flickering light of emergency backup generators, and the air smells faintly of ozone and old paper. The facility went dark decades ago after a mysterious experiment, leaving behind a complex web of interconnected analytical machines. In the center of the room sits the Final Decryptor, your only hope of uncovering Dr. Blackwood's last message and overriding the lockdown. You must trace the intricate flow of data through these forgotten devices, powering them up in the correct sequence to extract the ultimate secret before the backup generators fail completely.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "false" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "1" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "gbmtf" + } + ], + "narrative": "The facility's mainframe, the Final Decryptor. This is your way out. It requires inputs from the Logic Comparator and the ID Verifier to reveal the final escape sequence." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "4857293048572039485720394857203" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "63447158827160715882716071588269796" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "An intricate mechanical brain designated as the Logic Comparator. It requires inputs from the Protocol Converter and the Frequency Tuner to synthesize the data streams." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "8273645512349876" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "8273645512349876" + }, + "outputs": {} + }, + "narrative": "A small, wall-mounted ID Verifier. Its screen blinks steadily, ready to process numerical identification strings." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "63447158827160715882716071588269796" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1547413936" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "4857293048572039485720394857203" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "63447158827160715882716071588269796" + } + ], + "narrative": "A tangled mess of fiber optic wiring making up the Protocol Converter. It requires inputs from the Signal Amplifier, the Frequency Tuner, and the Quantum Calculator." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 2578479866 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "4857293048572039485720394857203" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Initial terminal access granted." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "64758697afbebdcc12345678" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Initial terminal access granted.", + "hex_result": "64758697afbebdcc12345678" + } + }, + "narrative": "A reinforced Security Terminal built directly into the concrete wall. It requires inputs from the Integrity Scanner and the Frequency Tuner to unlock its interface." + }, + { + "id": "num_base_convert_1b27", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "4857293048572039485720394857203" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1547413936" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 2578479866 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "4857293048572039485720394857203" + } + ], + "init": { + "inputs": { + "s": "4857293048572039485720394857203" + }, + "outputs": {} + }, + "narrative": "A dial-covered box known as the Frequency Tuner. It requires inputs from the Phase Inverter and the Integrity Scanner to lock onto the correct transmission band." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "3371322b3738722b757234534e465a346b4b764e37773d3d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "99b07afa" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2578479866 + } + ], + "narrative": "A heavy metallic device called the Integrity Scanner. It requires input from the Text Translator to run its diagnostic protocols." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "1029384756102938475610293847561" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "61636" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "63447158827160715882716071588269796" + } + ], + "init": { + "inputs": { + "a": "1029384756102938475610293847561" + }, + "outputs": {} + }, + "narrative": "A large, humming machine marked the Signal Amplifier. It requires input from the Resonance Chamber to boost its operational capacity." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "1547413936" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "63447158827160715882716071588269796" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1547413936" + } + ], + "narrative": "A specialized oscillation tool called the Phase Inverter. It requires inputs from both the Signal Amplifier and the Quantum Calculator to calibrate its frequencies." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "10" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1547413936" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "65537" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "61636" + } + ], + "init": { + "inputs": { + "base": "10", + "mod": "65537" + }, + "outputs": {} + }, + "narrative": "A sealed glass cylinder known as the Resonance Chamber. It hums with latent energy and requires input from the Quantum Calculator to operate." + }, + { + "id": "calc_modexp_5904", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "54200" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "998877665544332211009988776655" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 2578479866 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1547413936" + } + ], + "init": { + "inputs": { + "exp": "998877665544332211009988776655" + }, + "outputs": {} + }, + "narrative": "A complex array of vacuum tubes called the Quantum Calculator. It requires inputs from both the Network Map Analyzer and the Integrity Scanner to stabilize its matrix." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_map.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Omega" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Alpha\", \"Beta\", \"Gamma\", \"Delta\", \"Epsilon\", \"Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "54200" + } + ], + "init": { + "inputs": { + "file_id": "network_topology_map.json", + "src": "Alpha", + "dst": "Omega" + }, + "outputs": { + "path": "[\"Alpha\", \"Beta\", \"Gamma\", \"Delta\", \"Epsilon\", \"Omega\"]", + "cost": "54200" + } + }, + "narrative": "A dusty server rack labeled the Network Map Analyzer. It appears to hold old routing tables and spatial data." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "3q2+78r+ur4SNFZ4kKvN7w==" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "3371322b3738722b757234534e465a346b4b764e37773d3d" + } + ], + "narrative": "This is the Text Translator, a device filled with spinning cipher wheels. It requires input from the Data Ingestor to function properly." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "deadbeefcafebabe1234567890abcdef" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "3q2+78r+ur4SNFZ4kKvN7w==" + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafebabe1234567890abcdef" + }, + "outputs": {} + }, + "narrative": "A brass-rimmed terminal known as the Data Ingestor. It sits quietly, waiting for an initial sequence to be entered." + }, + { + "id": "terminal_2_e1d7", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "334455667788990011223344556677" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "112233445566778899001122334455" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Secondary cryptographic key fragment." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deafface1234567887654321" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "334455667788990011223344556677", + "num2": "112233445566778899001122334455" + }, + "outputs": { + "text_result": "Secondary cryptographic key fragment.", + "hex_result": "deafface1234567887654321" + } + }, + "narrative": "An isolated Backup Console with a flickering green phosphor display. It seems completely standalone and ready for use." + } + ], + "edges": [ + { + "source_id": "calc_gcd", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "n" + }, + { + "source_id": "luhn_check", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "text" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "terminal_2", + "target_id": "luhn_check", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "num_base_convert_1b27", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + }, + { + "source_id": "num_base_convert_1b27", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert_1b27", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "from_base" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert_1b27", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "num_base_convert_1b27", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "to_base" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "calc_modexp_5904", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "from_base" + }, + { + "source_id": "calc_modexp_5904", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "exp" + }, + { + "source_id": "calc_modexp_5904", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp_5904", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "base" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_5904", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "hex_encode", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "base64_encode", + "target_id": "hex_encode", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "text" + }, + { + "source_id": "terminal_2_e1d7", + "target_id": "calc_modexp", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_5956f7d2_narrative.json b/data/questions/15/narrative/skeleton_5956f7d2_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..33c0815732ea22ed59c5e4dd6bde8c0823475e79 --- /dev/null +++ b/data/questions/15/narrative/skeleton_5956f7d2_narrative.json @@ -0,0 +1,806 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 16, + "win_node_id": "luhn_check", + "win_condition": { + "type": "tool_output", + "node_id": "luhn_check", + "output_port": "valid", + "output_type": "Text_Generic", + "description": "Execute Luhn Checker and get the output from port 'valid'" + }, + "source_init": { + "source_nodes": [ + "hex_encode_3e1b", + "terminal_2", + "hmac_sha256", + "terminal_1", + "calc_gcd", + "calc_inv_mod" + ], + "by_node": { + "hex_encode_3e1b": { + "node_name": "Text to Hex Encoder", + "node_type": "Tool", + "template_id": "hex_encode", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "hex_key": { + "type": "Hex_String", + "description": "Hex key" + }, + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "hex_encode_3e1b": { + "init_inputs": { + "text": "Initiating secure data transmission sequence." + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "837465920182736450918273645109" + }, + "init_outputs": { + "text_result": "Calculation deferred; pending secondary numeric operand.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "hmac_sha256": { + "init_inputs": { + "hex_key": "cafebabecafebabecafebabecafebabe", + "text": "Verify the integrity of this critical payload." + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal initialized. Waiting for external calculation inputs.", + "hex_output": "8899aabbccddeeff0011223344556677", + "item_dispenser": "Standard issued token of negligible value." + } + }, + "calc_gcd": { + "init_inputs": { + "a": "592837465102938475610293847561", + "b": "102938475610293847561029384756" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "475869102384756102938475612345", + "mod": "524287" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The world ended decades ago, leaving behind a scarred wasteland of rusted metal and forgotten technology. You are a scavenger who just discovered a sealed military bunker half-buried in the irradiated dunes. Rumors say this bunker holds a functional atmospheric purifier, a treasure that could save your struggling settlement. However, the outpost is protected by a complex network of ancient computer terminals, biometric lockboxes, and fragmented communication relays. Your objective is to reactivate the automated systems, bypass the military-grade security, and trick the final lockdown validator into granting you access. You'll need to power up the surviving processors, piece together scraps of data, and follow the digital breadcrumbs left by the bunker's final operators before the radioactive sandstorm hits and buries this place forever.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "Initiating secure data transmission sequence." + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "This is the Final Validator. It requires input from the Cipher Decoder to verify the ultimate override command and open the bunker doors." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "496e6974696174696e67207365637572652064617461207472616e736d697373696f6e2073657175656e63652e" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "Initiating secure data transmission sequence." + } + ], + "narrative": "This is the Cipher Decoder. It requires input from the Signal Encoder to process the complex data stream." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Initiating secure data transmission sequence." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "496e6974696174696e67207365637572652064617461207472616e736d697373696f6e2073657175656e63652e" + } + ], + "narrative": "This is the Signal Encoder. It requires input from the Field Decoder to package the outgoing transmission." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A sharp, rusted scrap of metal torn from a ruined military transport vehicle." + }, + { + "id": "hex_decode_e885", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "496e6974696174696e67207365637572652064617461207472616e736d697373696f6e2073657175656e63652e" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "Initiating secure data transmission sequence." + } + ], + "narrative": "This is the Field Decoder. It requires input from the Backup Encoder to translate the incoming transmission." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "496e6974696174696e67207365637572652064617461207472616e736d697373696f6e2073657175656e63652e" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Wasteland Crate. It requires input from the Backup Encoder to bypass its electronic latch." + }, + { + "id": "hex_encode_3e1b", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Initiating secure data transmission sequence." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "496e6974696174696e67207365637572652064617461207472616e736d697373696f6e2073657175656e63652e" + } + ], + "init": { + "inputs": { + "text": "Initiating secure data transmission sequence." + }, + "outputs": {} + }, + "narrative": "A Backup Encoder running on a depleted battery, its screen flickering faintly." + }, + { + "id": "item_16_a260", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A dust-covered scrap of old world metal with faded warning markings." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "93d70dc28105276e30c1f11225d60d53cf11c83530960e4587ac20ec6df5c7a2" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Secure Lockbox. It requires input from the Security Authenticator to release its biometric seals." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "837465920182736450918273645109" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation deferred; pending secondary numeric operand." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "837465920182736450918273645109" + }, + "outputs": { + "text_result": "Calculation deferred; pending secondary numeric operand.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "narrative": "This is the Secondary Console. It requires input from the Navigation Processor to calculate its coordinates." + }, + { + "id": "container_1_589c", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "8899aabbccddeeff0011223344556677" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Primary Lockbox. It requires input from the Main Console to disengage its heavy blast locks." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "cafebabecafebabecafebabecafebabe" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Verify the integrity of this critical payload." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "93d70dc28105276e30c1f11225d60d53cf11c83530960e4587ac20ec6df5c7a2" + } + ], + "init": { + "inputs": { + "hex_key": "cafebabecafebabecafebabecafebabe", + "text": "Verify the integrity of this critical payload." + }, + "outputs": {} + }, + "narrative": "A high-tech Security Authenticator salvaged from a military ruin." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Calculation deferred; pending secondary numeric operand." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "7461" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialized. Waiting for external calculation inputs." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "8899aabbccddeeff0011223344556677" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard issued token of negligible value." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal initialized. Waiting for external calculation inputs.", + "hex_output": "8899aabbccddeeff0011223344556677", + "item_dispenser": "Standard issued token of negligible value." + } + }, + "narrative": "This is the Main Console. It requires inputs from both the Secondary Console and the Grid Calibrator to boot up its primary interface." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "592837465102938475610293847561" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "102938475610293847561029384756" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "592837465102938475610293847561", + "b": "102938475610293847561029384756" + }, + "outputs": {} + }, + "narrative": "A bulky Navigation Processor used by scavengers, running on barely enough solar power." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "475869102384756102938475612345" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "524287" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "7461" + } + ], + "init": { + "inputs": { + "a": "475869102384756102938475612345", + "mod": "524287" + }, + "outputs": {} + }, + "narrative": "A rugged Grid Calibrator found half-buried in the rubble." + } + ], + "edges": [ + { + "source_id": "hex_decode", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "number" + }, + { + "source_id": "hex_encode", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_16", + "target_id": "hex_encode", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "hex_decode_e885", + "target_id": "hex_encode", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "container_2", + "target_id": "hex_decode_e885", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "hex_encode_3e1b", + "target_id": "hex_decode_e885", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "hex_encode_3e1b", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_16_a260", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "container_1", + "target_id": "item_16_a260", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "container_1_589c", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "hmac_sha256", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_1", + "target_id": "container_1_589c", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_2", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "slot_a" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "slot_b" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_59bbf192_narrative.json b/data/questions/15/narrative/skeleton_59bbf192_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..9331f39e9c5f2c767d37a1cc1716eb176b883534 --- /dev/null +++ b/data/questions/15/narrative/skeleton_59bbf192_narrative.json @@ -0,0 +1,933 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 16, + "win_node_id": "item_13", + "win_condition": { + "type": "item_content", + "node_id": "item_13", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_13", + "item_7", + "terminal_1", + "json_get", + "num_base_convert", + "checksum_crc32", + "matter_synthesizer", + "calc_gcd", + "checksum_crc32_2d76", + "container_4_9539", + "json_get_6d3b" + ], + "by_node": { + "item_13": { + "node_name": "", + "node_type": "Item", + "template_id": "item_13", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "JSON file ID" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32_2d76": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "container_4_9539": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "json_get_6d3b": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "JSON file ID" + }, + "jsonpath": { + "type": "Text_Generic", + "description": "JSONPath expression" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + } + } + }, + "initial_values": { + "item_13": { + "init_inputs": {}, + "init_outputs": { + "content": "e4d9c2a1b5f8e7d3c6b9a2f1e4d8c3b7a5e9f2d6c8b1a4e7f3d2c5b8a1e9f4d7" + } + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "print(9182736450192837465)" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System initialization complete. Awaiting input.", + "hex_output": "4a9b2c8d3e7f1a6b5c0d9e8f2a1b4c7d" + } + }, + "json_get": { + "init_inputs": { + "file_id": "database_export_v2.json" + }, + "init_outputs": { + "values": "Configuration loaded successfully." + } + }, + "num_base_convert": { + "init_inputs": { + "s": "485720193847562910384756" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "9a8b7c6d5e4f3a2b1c0d" + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "Schematic: Positron Matrix Stabilizer Type-4" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "b": "293847561029384756102938" + }, + "init_outputs": {} + }, + "checksum_crc32_2d76": { + "init_inputs": { + "hex": "f1e2d3c4b5a69788" + }, + "init_outputs": {} + }, + "container_4_9539": { + "init_inputs": { + "fingerprint_input": "bio_auth_token_xh72" + }, + "init_outputs": {} + }, + "json_get_6d3b": { + "init_inputs": { + "file_id": "settings_registry.json", + "jsonpath": "$.system.parameters.retry_count" + }, + "init_outputs": { + "values": "$.users[?(@.active==true)].email" + } + } + }, + "intro_narrative": "You awaken aboard the derelict orbital station 'Aethelgard'. The emergency lights flicker rhythmically, casting long, unsettling shadows across the cold metallic walls. The station's central AI has locked down the main reactor, and the automated life support systems are rapidly failing. Your only chance of survival is to manually override the security protocols and extract the master decryption key hidden deep within the mainframe vault. To achieve this, you must navigate the abandoned research labs, re-activate dormant scientific equipment, and piece together the fragmented data flow before the oxygen runs out completely.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "item_13", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_13", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "e4d9c2a1b5f8e7d3c6b9a2f1e4d8c3b7a5e9f2d6c8b1a4e7f3d2c5b8a1e9f4d7" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "e4d9c2a1b5f8e7d3c6b9a2f1e4d8c3b7a5e9f2d6c8b1a4e7f3d2c5b8a1e9f4d7" + } + }, + "narrative": "The Data Core. A glowing, crystalline module humming with latent energy. It contains the ultimate override sequences necessary to restore the station's life support." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "220868265c163aa267c398a8e1b70901d87698b6a9a6455e164978258b847093" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Mainframe Vault. A heavy, reinforced security enclosure protecting the core systems. It requires input from the Security Authenticator to bypass its electronic locks." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "4a9b2c8d3e7f1a6b5c0d9e8f2a1b4c7d" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "9182736450192837465\n" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "220868265c163aa267c398a8e1b70901d87698b6a9a6455e164978258b847093" + } + ], + "narrative": "The Security Authenticator. A high-level cryptographic verification module. It requires inputs from both the Logic Processor and the Command Terminal to synthesize a valid override hash." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print(9182736450192837465)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "9182736450192837465\n" + } + ], + "narrative": "The Logic Processor. A quantum calculation unit used for executing raw instructions. It requires input from the Encrypted Memory Chip to run its automated diagnostic routines." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "print(9182736450192837465)" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "print(9182736450192837465)" + } + }, + "narrative": "The Encrypted Memory Chip. A small, slightly scorched storage device containing isolated code fragments from the previous crew." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Configuration loaded successfully." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "485720193847562910384756" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System initialization complete. Awaiting input." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "4a9b2c8d3e7f1a6b5c0d9e8f2a1b4c7d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System initialization complete. Awaiting input.", + "hex_output": "4a9b2c8d3e7f1a6b5c0d9e8f2a1b4c7d" + } + }, + "narrative": "The Command Terminal. The primary interface for the station's bridge. It requires inputs from both the Data Extractor and the Signal Translator to generate access commands." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "database_export_v2.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.users[?(@.active==true)].email" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "Configuration loaded successfully." + } + ], + "init": { + "inputs": { + "file_id": "database_export_v2.json" + }, + "outputs": { + "values": "Configuration loaded successfully." + } + }, + "narrative": "The Data Extractor. A specialized parsing subsystem. It requires input from the Archive Scanner to isolate and extract the correct data blocks from the noise." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "485720193847562910384756" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "2" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 535982341 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "485720193847562910384756" + } + ], + "init": { + "inputs": { + "s": "485720193847562910384756" + }, + "outputs": {} + }, + "narrative": "The Signal Translator. A universal language and telemetry converter. It requires inputs from both the Integrity Checker and the Frequency Calibrator to properly decode the incoming transmissions." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "9a8b7c6d5e4f3a2b1c0d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "1ff27105" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 535982341 + } + ], + "init": { + "inputs": { + "hex": "9a8b7c6d5e4f3a2b1c0d" + }, + "outputs": {} + }, + "narrative": "The Integrity Checker. A diagnostic tool used by engineers to verify the structural integrity of data packets." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "System initialization complete. Awaiting input." + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Biometric Lockbox. A personalized storage container built into the wall. It requires input from the Command Terminal to authenticate its user." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Schematic: Positron Matrix Stabilizer Type-4" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_ddefff0bcf012e1c" + } + ], + "init": { + "inputs": { + "blueprint": "Schematic: Positron Matrix Stabilizer Type-4" + }, + "outputs": {} + }, + "narrative": "The Nanotech Fabricator. A sophisticated 3D-printing machine capable of assembling physical tools and components from digital blueprints." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 1624888492 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "293847561029384756102938" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "2" + } + ], + "init": { + "inputs": { + "b": "293847561029384756102938" + }, + "outputs": {} + }, + "narrative": "The Frequency Calibrator. A waveform alignment device. It requires input from the Primary Sensor to calculate the optimal resonance frequency." + }, + { + "id": "checksum_crc32_2d76", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "f1e2d3c4b5a69788" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "60d9d4ac" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1624888492 + } + ], + "init": { + "inputs": { + "hex": "f1e2d3c4b5a69788" + }, + "outputs": {} + }, + "narrative": "The Primary Sensor. An environmental scanning array used to detect structural anomalies in the station's hull." + }, + { + "id": "container_4_9539", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "bio_auth_token_xh72" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "bio_auth_token_xh72" + }, + "outputs": {} + }, + "narrative": "The Specimen Case. A reinforced stasis box originally used by the science team for safely transporting volatile alien flora." + }, + { + "id": "json_get_6d3b", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "settings_registry.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.system.parameters.retry_count" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "$.users[?(@.active==true)].email" + } + ], + "init": { + "inputs": { + "file_id": "settings_registry.json", + "jsonpath": "$.system.parameters.retry_count" + }, + "outputs": { + "values": "$.users[?(@.active==true)].email" + } + }, + "narrative": "The Archive Scanner. A dedicated search terminal used to query the station's vast historical and operational databases." + } + ], + "edges": [ + { + "source_id": "container_1", + "target_id": "item_13", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "hmac_sha256", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "code_py_exec", + "target_id": "hmac_sha256", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "text" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "terminal_1", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "json_get", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "slot_a" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "slot_b" + }, + { + "source_id": "terminal_1", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex_key" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "container_4", + "target_id": "hmac_sha256", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "matter_synthesizer", + "target_id": "terminal_1", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "trigger_item" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "terminal_1", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "checksum_crc32_2d76", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "container_4_9539", + "target_id": "checksum_crc32", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "json_get_6d3b", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "jsonpath" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_5a3d2d50_narrative.json b/data/questions/15/narrative/skeleton_5a3d2d50_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..fe6001d5df281b56aa10f9b4fe2057813f1ea353 --- /dev/null +++ b/data/questions/15/narrative/skeleton_5a3d2d50_narrative.json @@ -0,0 +1,820 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "item_14", + "win_condition": { + "type": "item_content", + "node_id": "item_14", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_14", + "terminal_2", + "text_xor_hex", + "zip_unzip_item", + "terminal_1", + "calc_gcd", + "checksum_crc32_007f" + ], + "by_node": { + "item_14": { + "node_name": "", + "node_type": "Item", + "template_id": "item_14", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_IV_AES", + "description": "AES IV" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "text_xor_hex": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_b": { + "type": "Hex_String", + "description": "Hex B" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32_007f": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_14": { + "init_inputs": {}, + "init_outputs": { + "content": "a1b2c3d4e5f67890123456789abcdef0" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Calculation pending verification of input parameters.", + "hex_result": "112233445566778899aabbccddeeff00" + } + }, + "text_xor_hex": { + "init_inputs": { + "hex_b": "baddecafbaddecafbaddecafbaddecaf" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "secure_payload_data.zip" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System ready. Please input slot data for processing.", + "hex_output": "cafebabecafebabecafebabecafebabe", + "item_dispenser": "Standard Issue Utility Item" + } + }, + "calc_gcd": { + "init_inputs": { + "a": "482910384756291038475629384710", + "b": "102938475610293847561029384756" + }, + "init_outputs": {} + }, + "checksum_crc32_007f": { + "init_inputs": { + "hex": "0102030405060708090a0b0c0d0e0f10" + }, + "init_outputs": {} + } + }, + "intro_narrative": "Welcome to Sector 4, a forgotten subterranean server farm deep beneath the Neon City. As a rogue netrunner, your mission is to infiltrate this abandoned corporate blacksite and extract a highly classified prototype hidden within the network. The air is thick with the hum of old cooling fans and the flicker of failing holographic displays. Around you lies a complex web of cryptographic terminals, hash processors, and data synthesizers left behind by the megacorp's hasty retreat. To succeed, you must navigate this interconnected maze of hardware, tracing the data flow from one terminal to the next. You'll need to decrypt raw machine code, compress data streams, and manipulate logic gates to bypass the facility's layered security protocols. Your ultimate goal is to obtain the content of the secure drive, but brute force won't work here. You must rely on your intellect to follow the digital breadcrumbs, activate the dormant systems in the correct sequence, and synthesize the keys you need. The megacorp's ICE (Intrusion Countermeasures Electronics) is still active in the shadows. Move fast, think clearly, and don't let the neon blind you.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "item_14", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_14", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_fcbcf165908dd18a" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_IV_AES", + "description": "AES IV", + "value": "a1b2c3d4e5f67890123456789abcdef0" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "a1b2c3d4e5f67890123456789abcdef0" + } + }, + "narrative": "An encrypted drive left behind in the corporate ruins. It holds the final piece of the puzzle." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "false" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_fcbcf165908dd18a" + } + ], + "narrative": "A matter synthesizer. It requires input from the validation checker to construct the blueprint." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A logic chip pulsing with a faint, neon-blue energy." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "Calculation pending verification of input parameters." + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "A validation checker. It requires input from the central mainframe to verify the sequence." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 1068033658 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": 3868456827 + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation pending verification of input parameters." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "112233445566778899aabbccddeeff00" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Calculation pending verification of input parameters.", + "hex_result": "112233445566778899aabbccddeeff00" + } + }, + "narrative": "A central mainframe. It requires inputs from both the hash processor and the secondary hash processor." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "3fa8e67a" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "e693f77b" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3868456827 + } + ], + "narrative": "A hash processor. It requires input from the secondary hash processor to finalize calculations." + }, + { + "id": "checksum_crc32_a32c", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "c241e70196f3a562eff5a6e2f67438fc08c8494d2c4e55c8cc2b282d5128cec92f5148492c495448cb2f522828ca4f4e2d2ececc4bd70300fcb11341" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "3fa8e67a" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1068033658 + } + ], + "narrative": "A secondary hash processor. It requires input from the logic gate to process the data stream." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "789c0bae2c2e49cd55284a4d4ca9d45308c8494d2c4e55c8cc2b282d5128cec92f5148492c495448cb2f522828ca4f4e2d2ececc4bd70300fcb11341" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "baddecafbaddecafbaddecafbaddecaf" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "c241e70196f3a562eff5a6e2f67438fc08c8494d2c4e55c8cc2b282d5128cec92f5148492c495448cb2f522828ca4f4e2d2ececc4bd70300fcb11341" + } + ], + "init": { + "inputs": { + "hex_b": "baddecafbaddecafbaddecafbaddecaf" + }, + "outputs": {} + }, + "narrative": "A logic gate. It requires input from the compression unit to mix the encrypted signals." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A fragmented data log containing corrupted sector information." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "System ready. Please input slot data for processing." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c0bae2c2e49cd55284a4d4ca9d45308c8494d2c4e55c8cc2b282d5128cec92f5148492c495448cb2f522828ca4f4e2d2ececc4bd70300fcb11341" + } + ], + "narrative": "A compression unit. It requires input from the nexus console to reduce the data footprint." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_payload_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "System ready. Please input slot data for processing." + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "secure_payload_data.zip" + }, + "outputs": {} + }, + "narrative": "An archive extractor. It requires input from the nexus console to unlock protected files." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "\tL" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "26" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System ready. Please input slot data for processing." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "cafebabecafebabecafebabecafebabe" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard Issue Utility Item" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System ready. Please input slot data for processing.", + "hex_output": "cafebabecafebabecafebabecafebabe", + "item_dispenser": "Standard Issue Utility Item" + } + }, + "narrative": "A nexus console. It requires inputs from both the data decoder and the math coprocessor." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "094c80f1" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "\tL" + } + ], + "narrative": "A data decoder. It requires input from the primary hash processor to translate the machine code." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "482910384756291038475629384710" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "102938475610293847561029384756" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "26" + } + ], + "init": { + "inputs": { + "a": "482910384756291038475629384710", + "b": "102938475610293847561029384756" + }, + "outputs": {} + }, + "narrative": "A math coprocessor designed to handle heavy cryptographic calculations." + }, + { + "id": "checksum_crc32_007f", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "0102030405060708090a0b0c0d0e0f10" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "094c80f1" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 156008689 + } + ], + "init": { + "inputs": { + "hex": "0102030405060708090a0b0c0d0e0f10" + }, + "outputs": {} + }, + "narrative": "A primary hash processor used for initial data integrity verification." + } + ], + "edges": [ + { + "source_id": "matter_synthesizer", + "target_id": "item_14", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "item_8", + "target_id": "matter_synthesizer", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "luhn_check", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "blueprint" + }, + { + "source_id": "terminal_2", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "number" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num2" + }, + { + "source_id": "terminal_2", + "target_id": "luhn_check", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "checksum_crc32_a32c", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "checksum_crc32_a32c", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + }, + { + "source_id": "text_xor_hex", + "target_id": "checksum_crc32_a32c", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "zlib_deflate", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_a" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "password" + }, + { + "source_id": "terminal_1", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "text" + }, + { + "source_id": "hex_decode", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "slot_a" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "slot_b" + }, + { + "source_id": "checksum_crc32_007f", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_5ce97e6c_narrative.json b/data/questions/15/narrative/skeleton_5ce97e6c_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..f55771e4112d71156530d6801dab07790d01050c --- /dev/null +++ b/data/questions/15/narrative/skeleton_5ce97e6c_narrative.json @@ -0,0 +1,995 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 20, + "win_node_id": "checksum_crc32", + "win_condition": { + "type": "tool_output", + "node_id": "checksum_crc32", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute CRC32 Checksum and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "num_base_convert", + "graph_shortest_path", + "unicode_norm", + "checksum_crc32_e135", + "zip_unzip_file", + "terminal_2_1c1d", + "hmac_sha256", + "terminal_2_e18c" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "checksum_crc32_e135": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_2_1c1d": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + }, + "terminal_2_e18c": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "SGVsbG8gV29ybGQhIFRoaXMgaXMgYSBiYXNlNjQgc3RyaW5n", + "hex_result": "a1b2c3d4e5f60718", + "math_token": "Token_Sequence_Alpha" + } + }, + "num_base_convert": { + "init_inputs": { + "from_base": "10" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"start_node\", \"alpha_hub\", \"beta_relay\", \"gamma_gateway\", \"delta_point\", \"end_node\"]", + "cost": "45281" + } + }, + "unicode_norm": { + "init_inputs": { + "text": "Text with spëciâl chåracters for nòrmalizåtion" + }, + "init_outputs": {} + }, + "checksum_crc32_e135": { + "init_inputs": { + "hex": "112233445566778899aabbcc" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_archive_v4.zip" + }, + "init_outputs": { + "files": "network_graph_data.json" + } + }, + "terminal_2_1c1d": { + "init_inputs": {}, + "init_outputs": { + "text_result": "NFC", + "hex_result": "0011223344556677", + "math_token": "Token_Sequence_Beta" + } + }, + "hmac_sha256": { + "init_inputs": { + "text": "Authorization payload for verification" + }, + "init_outputs": {} + }, + "terminal_2_e18c": { + "init_inputs": { + "num1": "894756382910283746592817", + "num2": "192837465029384756102938" + }, + "init_outputs": { + "text_result": "Final calculation phase pending", + "hex_result": "deadbeef12345678", + "math_token": "Token_Sequence_Gamma" + } + } + }, + "intro_narrative": "Welcome to Sector 7. You are a rogue decker known only as 'Cipher', hired by an anonymous syndicate to breach the Megacorp's central data vault. You've jacked your consciousness directly into their highly restricted subnet, and the Black ICE here is thick. The system is a treacherous labyrinth of obsolete corporate tech patched together with cutting-edge experimental firewalls. If you stay too long, the system's neural-feedback loops will fry your brain. Your ultimate goal is to navigate this digital maze, bypass the Final Verification Node, and extract the encrypted payload before the corporate AI traces your bio-signal. Pay close attention to the flow of data between the various terminals and processors scattered throughout the neon-lit architecture. Every node serves a purpose, and routing the right data to the right machine is the only way to survive.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "48656c6c6f20576f726c6421205468697320697320612062617365363420737472696e67" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "b531b46c" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3039933548 + } + ], + "narrative": "Final Verification Node. The ultimate firewall protecting the corporate secrets. It requires input from the Data Decoder Module to complete the hack." + }, + { + "id": "base64_decode", + "name": "Base64 Decoder", + "description": "Decode base64 to hex bytes.", + "type": "Tool", + "template_id": "base64_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "data", + "type": "Text_Generic", + "description": "Base64 string", + "value": "SGVsbG8gV29ybGQhIFRoaXMgaXMgYSBiYXNlNjQgc3RyaW5n" + } + ], + "outputs": [ + { + "name": "bytes_hex", + "type": "Hex_String", + "description": "Decoded bytes as Hex", + "value": "48656c6c6f20576f726c6421205468697320697320612062617365363420737472696e67" + } + ], + "narrative": "Data Decoder Module. A streamlined decryption software suite. It requires input from Mainframe Terminal Alpha." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1900513638" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "2982214246" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "SGVsbG8gV29ybGQhIFRoaXMgaXMgYSBiYXNlNjQgc3RyaW5n" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f60718" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Token_Sequence_Alpha" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "SGVsbG8gV29ybGQhIFRoaXMgaXMgYSBiYXNlNjQgc3RyaW5n", + "hex_result": "a1b2c3d4e5f60718", + "math_token": "Token_Sequence_Alpha" + } + }, + "narrative": "Mainframe Terminal Alpha. The primary access console. It requires inputs from both the Quantum Decryptor and the Signal Converter." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": 3514300413 + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "45281" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 3489967917 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1900513638" + } + ], + "narrative": "Quantum Decryptor. A volatile processing core. It requires inputs from the Network Router, the Primary Hash Generator, and the Tertiary Hash Generator." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": 2982214246 + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 3514300413 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "2982214246" + } + ], + "init": { + "inputs": { + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "Signal Converter. A complex translation matrix. It requires inputs from both the Primary Hash Generator and the Secondary Hash Generator." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_graph_data.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Text with spëciâl chåracters for nòrmalizåtion" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"start_node\", \"alpha_hub\", \"beta_relay\", \"gamma_gateway\", \"delta_point\", \"end_node\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "45281" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"start_node\", \"alpha_hub\", \"beta_relay\", \"gamma_gateway\", \"delta_point\", \"end_node\"]", + "cost": "45281" + } + }, + "narrative": "Network Router. An advanced mapping algorithm console. It requires inputs from the Text Formatter, the Archive Extractor, and Mainframe Terminal Beta." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Text with spëciâl chåracters for nòrmalizåtion" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "Text with spëciâl chåracters for nòrmalizåtion" + } + ], + "init": { + "inputs": { + "text": "Text with spëciâl chåracters for nòrmalizåtion" + }, + "outputs": {} + }, + "narrative": "Text Formatter. A glowing data normalization subroutine. It requires input from Mainframe Terminal Beta." + }, + { + "id": "checksum_crc32_e135", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "112233445566778899aabbcc" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "d177f7fd" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3514300413 + } + ], + "init": { + "inputs": { + "hex": "112233445566778899aabbcc" + }, + "outputs": {} + }, + "narrative": "Primary Hash Generator. A standalone encryption module emitting a low, steady hum." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_archive_v4.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Text with spëciâl chåracters for nòrmalizåtion" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "network_graph_data.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_archive_v4.zip" + }, + "outputs": { + "files": "network_graph_data.json" + } + }, + "narrative": "Archive Extractor. A secure unzipping utility guarded by ICE. It requires input from the Text Formatter." + }, + { + "id": "terminal_2_1c1d", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 2982214246 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "2982214246" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "NFC" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "0011223344556677" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Token_Sequence_Beta" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "NFC", + "hex_result": "0011223344556677", + "math_token": "Token_Sequence_Beta" + } + }, + "narrative": "Mainframe Terminal Beta. A sleek, corporate-issued cyberdeck interface. It requires inputs from both the Secondary Hash Generator and the Signal Converter." + }, + { + "id": "checksum_crc32_4c75", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeef12345678" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "b1c0fa66" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2982214246 + } + ], + "narrative": "Secondary Hash Generator. A rack-mounted hashing unit. It requires input from Mainframe Terminal Gamma." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Access Keycard. A physical data chit dropped by a careless corporate guard." + }, + { + "id": "checksum_crc32_a1e7", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "85e117ed3183c7ca1dae13d57577638ca5585152424a9a91114e713e699fd9f2" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "d004af2d" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3489967917 + } + ], + "narrative": "Tertiary Hash Generator. A heavily armored data processor. It requires input from the Security Authenticator." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "b1c0fa66" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Authorization payload for verification" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "85e117ed3183c7ca1dae13d57577638ca5585152424a9a91114e713e699fd9f2" + } + ], + "init": { + "inputs": { + "text": "Authorization payload for verification" + }, + "outputs": {} + }, + "narrative": "Security Authenticator. A high-grade verification protocol node. It requires input from the Secondary Hash Generator." + }, + { + "id": "terminal_2_e18c", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "894756382910283746592817" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "192837465029384756102938" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Final calculation phase pending" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeef12345678" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Token_Sequence_Gamma" + } + ], + "init": { + "inputs": { + "num1": "894756382910283746592817", + "num2": "192837465029384756102938" + }, + "outputs": { + "text_result": "Final calculation phase pending", + "hex_result": "deadbeef12345678", + "math_token": "Token_Sequence_Gamma" + } + }, + "narrative": "Mainframe Terminal Gamma. An old, flickering console used for initial system pings." + } + ], + "edges": [ + { + "source_id": "base64_decode", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "bytes_hex", + "target_port": "hex" + }, + { + "source_id": "terminal_2", + "target_id": "base64_decode", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "data" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num1" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "exp" + }, + { + "source_id": "unicode_norm", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "checksum_crc32_e135", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "checksum_crc32_e135", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "base" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "terminal_2_1c1d", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "form" + }, + { + "source_id": "terminal_2_1c1d", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "dst" + }, + { + "source_id": "checksum_crc32_4c75", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "s" + }, + { + "source_id": "checksum_crc32_4c75", + "target_id": "terminal_2_1c1d", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + }, + { + "source_id": "unicode_norm", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "item_8", + "target_id": "zip_unzip_file", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32_a1e7", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "hmac_sha256", + "target_id": "checksum_crc32_a1e7", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2_1c1d", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "checksum_crc32_4c75", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "terminal_2_e18c", + "target_id": "checksum_crc32_4c75", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_61902d69_narrative.json b/data/questions/15/narrative/skeleton_61902d69_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..e1b10242efe5dbec3aa5a2d1dd66b18bb2590be0 --- /dev/null +++ b/data/questions/15/narrative/skeleton_61902d69_narrative.json @@ -0,0 +1,894 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 19, + "win_node_id": "hash_sha256", + "win_condition": { + "type": "tool_output", + "node_id": "hash_sha256", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute SHA-256 Hasher and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "num_base_convert", + "calc_bigmul", + "calc_modexp", + "zlib_deflate", + "calc_modexp_1b7b", + "num_base_convert_f1bc", + "hex_encode" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "zlib_deflate": { + "node_name": "Zlib Deflate", + "node_type": "Tool", + "template_id": "zlib_deflate", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to compress" + } + }, + "init_outputs": {} + }, + "calc_modexp_1b7b": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "num_base_convert_f1bc": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "hex_encode": { + "node_name": "Text to Hex Encoder", + "node_type": "Tool", + "template_id": "hex_encode", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Initialization sequence complete.", + "hex_result": "4a6f686e446f65313233", + "math_token": "TOKEN_START_OP_882" + } + }, + "num_base_convert": { + "init_inputs": { + "from_base": "10" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "293847561029384756102938", + "b": "918273645091827364509182" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "mod": "100003" + }, + "init_outputs": {} + }, + "zlib_deflate": { + "init_inputs": { + "text": "Compress this payload to generate a unique fingerprint hash for the container." + }, + "init_outputs": {} + }, + "calc_modexp_1b7b": { + "init_inputs": { + "base": "2", + "mod": "65537" + }, + "init_outputs": {} + }, + "num_base_convert_f1bc": { + "init_inputs": { + "s": "582039485726192039485726", + "from_base": "10" + }, + "init_outputs": {} + }, + "hex_encode": { + "init_inputs": { + "text": "Raw text data for hexadecimal encoding." + }, + "init_outputs": {} + } + }, + "intro_narrative": "Welcome to the workshop of the late clockwork engineer, Archibald Vance. You find yourself trapped inside his master control room, a chaotic symphony of hissing pipes, rotating gears, and polished brass mechanisms. Vance was intensely paranoid, securing the exit behind a complex network of steam-powered calculation engines and mechanical ciphers. The air is thick with the smell of oil and ozone. To escape, you must trace the flow of energy through his strange contraptions, powering each device in the correct sequence to activate the final lock mechanism before the workshop's boiler pressure reaches a catastrophic critical state.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "False" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "60a33e6cf5151f2d52eddae9685cfa270426aa89d8dbc7dfb854606f1d1a40fe" + } + ], + "narrative": "This is the final lock mechanism. It requires input from the banking authenticator to disengage the massive vault door." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "Vavgvnyvmngvba frdhrapr pbzcyrgr." + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "This is the banking authenticator. It requires input from the cylinder cipher to verify the stamped financial codes." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Initialization sequence complete." + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": 3808878229 + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Vavgvnyvmngvba frdhrapr pbzcyrgr." + } + ], + "narrative": "This is the cylinder cipher. It requires inputs from both the mechanical typewriter and the gear calibrator to correctly rotate its lettered rings." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "95074" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "269832470967796339190860289983789898077438176716" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Initialization sequence complete." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "4a6f686e446f65313233" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "TOKEN_START_OP_882" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Initialization sequence complete.", + "hex_result": "4a6f686e446f65313233", + "math_token": "TOKEN_START_OP_882" + } + }, + "narrative": "This is the mechanical typewriter. It requires inputs from both the output condenser and the brass multiplier before its heavy keys can be struck." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "95074" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "269832470967796339190860289983789898077438176716" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "95074" + } + ], + "init": { + "inputs": { + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the output condenser. It requires inputs from both the main steam turbine and the central mixing valve to cool the pressurized data." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "293847561029384756102938" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "918273645091827364509182" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "269832470967796339190860289983789898077438176716" + } + ], + "init": { + "inputs": { + "a": "293847561029384756102938", + "b": "918273645091827364509182" + }, + "outputs": {} + }, + "narrative": "A heavy brass multiplier with overlapping gears. It sits quietly on the workbench, waiting for its cranks to be turned." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "269832470967796339190860289983789898077438176716" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "65505" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "100003" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "95074" + } + ], + "init": { + "inputs": { + "mod": "100003" + }, + "outputs": {} + }, + "narrative": "This is the main steam turbine. It requires inputs from both the central mixing valve and the secondary pressure regulator to achieve optimal rotation." + }, + { + "id": "num_base_convert_0223", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "269832470967796339190860289983789898077438176716" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "582039485726192039485726" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 3808878229 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "269832470967796339190860289983789898077438176716" + } + ], + "narrative": "This is the central mixing valve. It requires inputs from the brass multiplier, the gear calibrator, and the primary gauge converter to balance the system." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "5261772074657874206461746120666f722068657861646563696d616c20656e636f64696e672e" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "e306de95" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3808878229 + } + ], + "narrative": "This is the gear calibrator. It requires input from the text encoder to align its internal teeth perfectly." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A beautiful brass pocket watch with strange geometric markings and an unusually fast ticking sound." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "789c0dcbc11180300804c056ae029bb012462f09330a11c8c3eef5bfbbfb3d8399a8a18929efe572a21c9dc6902204cbf4594453eb8c196a852139d03cfe461c6e25faf3ed0388c51d3a" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the pressure vault. It requires input from the steam compressor to safely release its pneumatic seals." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "Compress this payload to generate a unique fingerprint hash for the container." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c0dcbc11180300804c056ae029bb012462f09330a11c8c3eef5bfbbfb3d8399a8a18929efe572a21c9dc6902204cbf4594453eb8c196a852139d03cfe461c6e25faf3ed0388c51d3a" + } + ], + "init": { + "inputs": { + "text": "Compress this payload to generate a unique fingerprint hash for the container." + }, + "outputs": {} + }, + "narrative": "A copper steam compressor with various pressure dials and hissing exhaust pipes." + }, + { + "id": "calc_modexp_1b7b", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "2" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 3808878229 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "65537" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "65505" + } + ], + "init": { + "inputs": { + "base": "2", + "mod": "65537" + }, + "outputs": {} + }, + "narrative": "This is the secondary pressure regulator. It requires input from the gear calibrator to stabilize the erratic steam flow." + }, + { + "id": "num_base_convert_f1bc", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "582039485726192039485726" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 3808878229 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "582039485726192039485726" + } + ], + "init": { + "inputs": { + "s": "582039485726192039485726", + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the primary gauge converter. It requires input from the gear calibrator to translate the mechanical readings." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Raw text data for hexadecimal encoding." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "5261772074657874206461746120666f722068657861646563696d616c20656e636f64696e672e" + } + ], + "init": { + "inputs": { + "text": "Raw text data for hexadecimal encoding." + }, + "outputs": {} + }, + "narrative": "A delicate text encoder made of finely crafted clockwork parts and bronze levers." + } + ], + "edges": [ + { + "source_id": "iban_validate", + "target_id": "hash_sha256", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "text" + }, + { + "source_id": "text_rotN", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "iban" + }, + { + "source_id": "terminal_2", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num1" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num2" + }, + { + "source_id": "calc_modexp", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "s" + }, + { + "source_id": "num_base_convert_0223", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "base" + }, + { + "source_id": "checksum_crc32", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "n" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert_0223", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "item_16", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert_0223", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "zlib_deflate", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "num_base_convert_0223", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "to_base" + }, + { + "source_id": "calc_modexp_1b7b", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "exp" + }, + { + "source_id": "num_base_convert_f1bc", + "target_id": "num_base_convert_0223", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "from_base" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert_f1bc", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_1b7b", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "hex_encode", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_64331efd_narrative.json b/data/questions/15/narrative/skeleton_64331efd_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..5f95eb48fe288e633604b210e72bc66018a30901 --- /dev/null +++ b/data/questions/15/narrative/skeleton_64331efd_narrative.json @@ -0,0 +1,832 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 19, + "win_node_id": "hash_md5", + "win_condition": { + "type": "tool_output", + "node_id": "hash_md5", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute MD5 Hasher and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "graph_shortest_path", + "text_rotN", + "checksum_crc32", + "graph_shortest_path_1ceb", + "luhn_check" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "n": { + "type": "Big_Int", + "description": "Shift N" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "graph_shortest_path_1ceb": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Standard output stream initialization successful.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "traffic_network_v3.json" + }, + "init_outputs": { + "path": "[\"Node_Start\", \"Node_Junction_42\", \"Node_Bridge_East\", \"Node_End\"]", + "cost": "482915" + } + }, + "text_rotN": { + "init_inputs": { + "n": "928374651029384756102938" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "abcdef0123456789abcdef0123456789" + }, + "init_outputs": {} + }, + "graph_shortest_path_1ceb": { + "init_inputs": { + "file_id": "server_topology_map.xml", + "dst": "Backup_Server_Rack_09" + }, + "init_outputs": { + "path": "[\"Gateway_01\", \"Switch_Core_A\", \"Router_Edge_5\", \"Backup_Server_Rack_09\"]", + "cost": "157293" + } + }, + "luhn_check": { + "init_inputs": { + "number": "4929485720193847" + }, + "init_outputs": {} + } + }, + "intro_narrative": "Rain lashes against the window of the safehouse. You are standing in the abandoned office of 'The Architect,' a notorious data broker who vanished three days ago. He left behind a tangled web of digital security measures and encrypted servers. Your client needs the master key hidden within this system to prevent a financial meltdown. The room is filled with humming servers, scattered notes, and strange standalone computing devices. To find the key, you must trace the flow of data, decrypt the layers, and boot up the mainframes in the correct order. The clock is ticking.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "eJwLLknMS0ksSlHILy0pKC1RKC4pSk3MVcjMyyzJTMzJrEosyczPUyguTU5OLS5OK83RAwDhBBNF" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "4bb60bb2b6dc47ec6ae888312fbb5646" + } + ], + "narrative": "The Master Lock. This final encryption layer guards the victory condition. It requires the specific encoded string from the Encoding Module." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "789c0b2e49cc4b492c4a51c82f2d29282d51282e294a4dcc55c8cccb2cc94cccc9ac4a2cc9cccf53282e4d4e4e2d2e4e2bcdd10300e1041345" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "eJwLLknMS0ksSlHILy0pKC1RKC4pSk3MVcjMyyzJTMzJrEosyczPUyguTU5OLS5OK83RAwDhBBNF" + } + ], + "narrative": "The Encoding Module. It transforms raw data into a readable format. It requires the compressed hex stream from the Compression Utility." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "Standard output stream initialization successful." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c0b2e49cc4b492c4a51c82f2d29282d51282e294a4dcc55c8cccb2cc94cccc9ac4a2cc9cccf53282e4d4e4e2d2e4e2bcdd10300e1041345" + } + ], + "narrative": "An automated Compression Utility running on a side monitor. It waits to archive the text output from the Mainframe Terminal." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "4346235" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "2098862075025" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Standard output stream initialization successful." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Standard output stream initialization successful.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "narrative": "The Mainframe Terminal, the heart of the operation. It requires the synchronized large integer outputs from both Quantum Processor A and Quantum Processor B to unlock." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "4346235" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "482915" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "2098862075025" + } + ], + "narrative": "Quantum Processor B, the right hemisphere of the system. It requires the calculation result from Quantum Processor A and the cost metric from Network Router Beta." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A secure access card with a magnetic strip." + }, + { + "id": "calc_bigmul_b530", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "9" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "482915" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "4346235" + } + ], + "narrative": "Quantum Processor A, the left hemisphere of the system. It calculates a massive value based on data from the Signal Harmonizer and Network Router Beta." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "traffic_network_v3.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Lgryk" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "False" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Start\", \"Node_Junction_42\", \"Node_Bridge_East\", \"Node_End\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "482915" + } + ], + "init": { + "inputs": { + "file_id": "traffic_network_v3.json" + }, + "outputs": { + "path": "[\"Node_Start\", \"Node_Junction_42\", \"Node_Bridge_East\", \"Node_End\"]", + "cost": "482915" + } + }, + "narrative": "This is Network Router Beta, a more advanced mapping tool. It requires specific coordinate inputs from both the Shift Decoder and the Bank Account Authenticator." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "False" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "928374651029384756102938" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Lgryk" + } + ], + "init": { + "inputs": { + "n": "928374651029384756102938" + }, + "outputs": {} + }, + "narrative": "A legacy Shift Decoder module. It requires the validation status string from the Bank Account Authenticator to decrypt its message." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 3398441922 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "157293" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "9" + } + ], + "narrative": "The Signal Harmonizer unit. It requires synchronized inputs from both the Data Integrity Scanner and Network Router Alpha to calculate the common frequency." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "[\"Gateway_01\", \"Switch_Core_A\", \"Router_Edge_5\", \"Backup_Server_Rack_09\"]" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "A dedicated Bank Account Authenticator terminal. It needs the routing path generated by Network Router Alpha to verify the account status." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "abcdef0123456789abcdef0123456789" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "ca901bc2" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3398441922 + } + ], + "init": { + "inputs": { + "hex": "abcdef0123456789abcdef0123456789" + }, + "outputs": {} + }, + "narrative": "A handheld Data Integrity Scanner used for verifying raw binary blocks. It's currently idle." + }, + { + "id": "graph_shortest_path_1ceb", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "server_topology_map.xml" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "false" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Backup_Server_Rack_09" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Gateway_01\", \"Switch_Core_A\", \"Router_Edge_5\", \"Backup_Server_Rack_09\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "157293" + } + ], + "init": { + "inputs": { + "file_id": "server_topology_map.xml", + "dst": "Backup_Server_Rack_09" + }, + "outputs": { + "path": "[\"Gateway_01\", \"Switch_Core_A\", \"Router_Edge_5\", \"Backup_Server_Rack_09\"]", + "cost": "157293" + } + }, + "narrative": "This is Network Router Alpha. It requires a valid identification number from the Credit Card Verifier to determine the initial packet route." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A crumpled sticky note with a timezone offset scribbled on it." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "4929485720193847" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "4929485720193847" + }, + "outputs": {} + }, + "narrative": "A dusty credit card verification device sits on the edge of the desk. It appears to be functional." + } + ], + "edges": [ + { + "source_id": "base64_encode", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "text" + }, + { + "source_id": "zlib_deflate", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "terminal_2", + "target_id": "base64_encode", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num2" + }, + { + "source_id": "terminal_2", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "item_8", + "target_id": "calc_bigmul", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_bigmul_b530", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul_b530", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "text_rotN", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "calc_bigmul_b530", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num1" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_bigmul_b530", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "iban_validate", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "dst" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "iban_validate", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "text" + }, + { + "source_id": "graph_shortest_path_1ceb", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path_1ceb", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "iban" + }, + { + "source_id": "luhn_check", + "target_id": "graph_shortest_path_1ceb", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "src" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_6c05dc66_narrative.json b/data/questions/15/narrative/skeleton_6c05dc66_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..b2b225ff6089eef0062fc7830f9d4d6f4557eb7d --- /dev/null +++ b/data/questions/15/narrative/skeleton_6c05dc66_narrative.json @@ -0,0 +1,1033 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 20, + "win_node_id": "crypto_rsa_decrypt_hex", + "win_condition": { + "type": "tool_output", + "node_id": "crypto_rsa_decrypt_hex", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute RSA Decrypt and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "graph_shortest_path", + "zip_unzip_file", + "zip_unzip_file_f1fe", + "calc_modexp", + "unicode_norm", + "calc_gcd", + "graph_shortest_path_97e2", + "container_1", + "calc_modexp_ba80" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_f1fe": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "form": { + "type": "Text_Generic", + "description": "Form" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "graph_shortest_path_97e2": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "calc_modexp_ba80": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System ready. Awaiting inputs for processing.", + "hex_output": "48656c6c6f20576f726c642120313233", + "item_dispenser": "Standard Item Dispenser Unit 01" + } + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Node_Start\", \"Node_A1\", \"Node_B2\", \"Node_End\"]", + "cost": "10000000000000001024" + } + }, + "zip_unzip_file": { + "init_inputs": { + "password": "SecurePassword!2024" + }, + "init_outputs": { + "files": "data_payload.json" + } + }, + "zip_unzip_file_f1fe": { + "init_inputs": { + "zip_id": "archive_backup.zip", + "password": "ComplexPass#9988" + }, + "init_outputs": { + "files": "topology_graph.json" + } + }, + "calc_modexp": { + "init_inputs": { + "base": "827364591827364501928374", + "mod": "65537" + }, + "init_outputs": {} + }, + "unicode_norm": { + "init_inputs": { + "text": "Fuglateszt", + "form": "NFC" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "29384756102938475610", + "b": "10293847561029384756" + }, + "init_outputs": {} + }, + "graph_shortest_path_97e2": { + "init_inputs": { + "src": "AlphaGate", + "dst": "OmegaGate" + }, + "init_outputs": { + "path": "[\"AlphaGate\", \"Sector_7\", \"Sector_9\", \"OmegaGate\"]", + "cost": "20000000000000000256" + } + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "aabbccddeeff00112233445566778899" + }, + "init_outputs": {} + }, + "calc_modexp_ba80": { + "init_inputs": { + "mod": "10007" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are Detective Vance, currently standing inside the cooled server room of the notorious 'Phantom Syndicate'. You have successfully physically breached their headquarters, but the real vault is digital. Before you lies a complex array of servers, forensic tools, and encrypted drives. The Syndicate is erasing their tracks; the fans are whirring loudly as their kill-switch protocols initiate. You must navigate their twisted network logic, utilize their own cryptographic tools against them, and recover the master ledger before the system wipes everything. Every piece of data you find is a key to a larger puzzle.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "48656c6c6f20576f726c642120313233" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "10000000000000001024" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "180000000018" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "7c1c\u0012\u0004i" + } + ], + "narrative": "The Master Decryptor. This is the final cryptographic barrier protecting the syndicate's ledger. It requires synchronized inputs from the Mainframe Terminal, the Network Tracer Beta, and the Coordinate Converter to break the encryption." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"Node_Start\", \"Node_A1\", \"Node_B2\", \"Node_End\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "10000000000000001024" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System ready. Awaiting inputs for processing." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "48656c6c6f20576f726c642120313233" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard Item Dispenser Unit 01" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System ready. Awaiting inputs for processing.", + "hex_output": "48656c6c6f20576f726c642120313233", + "item_dispenser": "Standard Item Dispenser Unit 01" + } + }, + "narrative": "The Mainframe Terminal. A black screen with a blinking cursor, waiting to execute system commands. It processes the routing data generated by the Network Tracer Beta." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "data_payload.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Fuglateszt" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "[\"AlphaGate\", \"Sector_7\", \"Sector_9\", \"OmegaGate\"]" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Start\", \"Node_A1\", \"Node_B2\", \"Node_End\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "10000000000000001024" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Node_Start\", \"Node_A1\", \"Node_B2\", \"Node_End\"]", + "cost": "10000000000000001024" + } + }, + "narrative": "Network Tracer Beta. An advanced packet sniffing algorithm hidden deep in the system. It requires the graph file from the Encrypted Partition B, the standardized text from the Text Sanitizer, and the destination data from Network Tracer Alpha." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Access Code. A numeric sequence retrieved from the decoded server logs." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "Server Log. A printout containing timezone data and server timestamps." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "topology_graph.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword!2024" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "data_payload.json" + } + ], + "init": { + "inputs": { + "password": "SecurePassword!2024" + }, + "outputs": { + "files": "data_payload.json" + } + }, + "narrative": "Encrypted Partition B. A secure, password-protected folder found on the backup drive. It requires the file structure extracted from the Primary Evidence Archive." + }, + { + "id": "zip_unzip_file_f1fe", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_backup.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "ComplexPass#9988" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "topology_graph.json" + } + ], + "init": { + "inputs": { + "zip_id": "archive_backup.zip", + "password": "ComplexPass#9988" + }, + "outputs": { + "files": "topology_graph.json" + } + }, + "narrative": "Primary Evidence Archive. A seized compressed file containing the initial network topology maps." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "180000000018" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "20000000000000000256" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "24089" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "180000000018" + } + ], + "narrative": "Coordinate Converter. A memory address translation tool used to map physical sectors. It compiles results from the High-Frequency Transmitter, the Frequency Analyzer, and Network Tracer Alpha." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "827364591827364501928374" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "7356" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "65537" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "24089" + } + ], + "init": { + "inputs": { + "base": "827364591827364501928374", + "mod": "65537" + }, + "outputs": {} + }, + "narrative": "High-Frequency Transmitter. A device used to broadcast high-power cryptographic keys. It amplifies the signal generated by the Signal Modulator." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Fuglateszt" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "Fuglateszt" + } + ], + "init": { + "inputs": { + "text": "Fuglateszt", + "form": "NFC" + }, + "outputs": {} + }, + "narrative": "Text Sanitizer. A database utility used to normalize and clean username strings for processing." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "29384756102938475610" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "10293847561029384756" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "180000000018" + } + ], + "init": { + "inputs": { + "a": "29384756102938475610", + "b": "10293847561029384756" + }, + "outputs": {} + }, + "narrative": "Frequency Analyzer. A diagnostic tool used to isolate the common period between two large signal frequencies." + }, + { + "id": "graph_shortest_path_97e2", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "topology_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "AlphaGate" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "OmegaGate" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"AlphaGate\", \"Sector_7\", \"Sector_9\", \"OmegaGate\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "20000000000000000256" + } + ], + "init": { + "inputs": { + "src": "AlphaGate", + "dst": "OmegaGate" + }, + "outputs": { + "path": "[\"AlphaGate\", \"Sector_7\", \"Sector_9\", \"OmegaGate\"]", + "cost": "20000000000000000256" + } + }, + "narrative": "Network Tracer Alpha. A preliminary routing utility used to map the surface web. It analyzes the network graph found in the Primary Evidence Archive." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "aabbccddeeff00112233445566778899" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "aabbccddeeff00112233445566778899" + }, + "outputs": {} + }, + "narrative": "Biometric Safe. A reinforced steel box with a fingerprint scanner, likely holding physical authentication tokens." + }, + { + "id": "calc_modexp_ba80", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "180000000018" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "20000000000000000256" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "10007" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "7356" + } + ], + "init": { + "inputs": { + "mod": "10007" + }, + "outputs": {} + }, + "narrative": "Signal Modulator. A waveform synthesizer that prepares data for transmission. It synthesizes data from Network Tracer Alpha and the Frequency Analyzer." + }, + { + "id": "item_8_25a8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Admin Keycard. A dropped magnetic keycard with 'Level 4 Access' printed on it." + } + ], + "edges": [ + { + "source_id": "terminal_1", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex_cipher" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "slot_a" + }, + { + "source_id": "item_8", + "target_id": "graph_shortest_path", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "n" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_f1fe", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "num_base_convert", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "d" + }, + { + "source_id": "calc_modexp", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "to_base" + }, + { + "source_id": "unicode_norm", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "s" + }, + { + "source_id": "graph_shortest_path_97e2", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "from_base" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp_ba80", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "exp" + }, + { + "source_id": "graph_shortest_path_97e2", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "dst" + }, + { + "source_id": "graph_shortest_path_97e2", + "target_id": "calc_modexp_ba80", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "exp" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp_ba80", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "zip_unzip_file_f1fe", + "target_id": "graph_shortest_path_97e2", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_8_25a8", + "target_id": "unicode_norm", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_72198bc2_narrative.json b/data/questions/15/narrative/skeleton_72198bc2_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..0758497fe303258d37c2f225cac58dd7849e3539 --- /dev/null +++ b/data/questions/15/narrative/skeleton_72198bc2_narrative.json @@ -0,0 +1,968 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "num_base_convert", + "win_condition": { + "type": "tool_output", + "node_id": "num_base_convert", + "output_port": "str", + "output_type": "Big_Int", + "description": "Execute Base Converter and get the output from port 'str'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "text_rotN", + "calc_inv_mod_ab71", + "terminal_2", + "container_3", + "checksum_crc32", + "zip_unzip_file", + "graph_shortest_path_c997", + "luhn_check", + "container_2" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "n": { + "type": "Big_Int", + "description": "Shift N" + } + }, + "init_outputs": {} + }, + "calc_inv_mod_ab71": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": { + "fingerprint_input": { + "type": "Big_Int", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "graph_shortest_path_c997": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + }, + "container_2": { + "node_name": "", + "node_type": "Item", + "template_id": "container_2", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\"]", + "cost": "15420" + } + }, + "text_rotN": { + "init_inputs": { + "n": "928374651029384756102" + }, + "init_outputs": {} + }, + "calc_inv_mod_ab71": { + "init_inputs": { + "mod": "104729" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num2": "384756102938475610293" + }, + "init_outputs": { + "text_result": "Terminal output sequence initiated.", + "hex_result": "cafebabe12345678" + } + }, + "container_3": { + "init_inputs": { + "fingerprint_input": "475610293847561029384" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "1a2b3c4d5e6f7890" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "backup_2023.zip", + "password": "correcthorsebatterystaple" + }, + "init_outputs": { + "files": "restored_database.sql" + } + }, + "graph_shortest_path_c997": { + "init_inputs": { + "file_id": "city_map_data.json", + "src": "Central_Station" + }, + "init_outputs": { + "path": "[\"Central_Station\", \"Market_Square\", \"Library\", \"University\", \"Tech_Park\"]", + "cost": "3450" + } + }, + "luhn_check": { + "init_inputs": { + "number": "4929485739102847" + }, + "init_outputs": {} + }, + "container_2": { + "init_inputs": { + "fingerprint_input": "09f911029d74e35bd84156c5635688c0" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken to the shrill alarm of the ESS Aethelgard. The research station is drifting dangerously close to a black hole's event horizon. The primary AI has gone offline, locking down the navigation systems. You are in the engineering bay, surrounded by blinking server racks and manual override terminals. To escape the gravity well, you must manually recalibrate the Hyperdrive Controller. The systems are fragmented and encrypted; you'll need to route power and data through the backup subsystems to synthesize the correct launch coordinates. Time is short.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "15420" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "15420" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "31996" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "15420" + } + ], + "narrative": "This is the Hyperdrive Controller, the final step to engaging the engines. It requires synchronized data inputs from the Navigational Array, the Resonance Frequency Calculator, and the Phase Inverter to calculate the jump vector." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "restored_database.sql" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[\"Yajpnwh_Opwpekj\", \"Iwngap_Omqwna\", \"Hexnwnu\", \"Qjeranoepu\", \"Payd_Lwng\"]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "[\"Central_Station\", \"Market_Square\", \"Library\", \"University\", \"Tech_Park\"]" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "15420" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\"]", + "cost": "15420" + } + }, + "narrative": "The Navigational Array determines the safest route through the debris field. It requires input from the Signal Encryption Module, the Log Decryption Console, and the Sub-System Router to triangulate the path." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "[\"Central_Station\", \"Market_Square\", \"Library\", \"University\", \"Tech_Park\"]" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "928374651029384756102" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "[\"Yajpnwh_Opwpekj\", \"Iwngap_Omqwna\", \"Hexnwnu\", \"Qjeranoepu\", \"Payd_Lwng\"]" + } + ], + "init": { + "inputs": { + "n": "928374651029384756102" + }, + "outputs": {} + }, + "narrative": "The Signal Encryption Module decodes scrambled transmission headers. It requires input from the Sub-System Router to align the encryption cypher." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "15420" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "3450" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "15420" + } + ], + "narrative": "The Resonance Frequency Calculator stabilizes the engine harmonics. It requires input from both the Sub-System Router and the Navigational Array to determine the base harmonic." + }, + { + "id": "calc_inv_mod_ab71", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "15420" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "31996" + } + ], + "init": { + "inputs": { + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "The Phase Inverter adjusts the warp bubble polarity. It requires input from the Resonance Frequency Calculator to synchronize the inversion wave." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 3918024948 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "384756102938475610293" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal output sequence initiated." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "cafebabe12345678" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num2": "384756102938475610293" + }, + "outputs": { + "text_result": "Terminal output sequence initiated.", + "hex_result": "cafebabe12345678" + } + }, + "narrative": "The Engineering Terminal controls the station's core functions. It requires input from the Integrity Verification System to authorize the override commands." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Shift Protocol Card found on a maintenance desk. It appears to contain rotation algorithms." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "475610293847561029384" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "475610293847561029384" + }, + "outputs": {} + }, + "narrative": "A Reinforced Titanium Vault. It seems to have a secondary locking mechanism requiring a physical key." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1a2b3c4d5e6f7890" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "e98850f4" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3918024948 + } + ], + "init": { + "inputs": { + "hex": "1a2b3c4d5e6f7890" + }, + "outputs": {} + }, + "narrative": "The Integrity Verification System checks data packets for corruption. It scans raw hex data to ensure system stability." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "backup_2023.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "correcthorsebatterystaple" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "restored_database.sql" + } + ], + "init": { + "inputs": { + "zip_id": "backup_2023.zip", + "password": "correcthorsebatterystaple" + }, + "outputs": { + "files": "restored_database.sql" + } + }, + "narrative": "The Log Decryption Console is designed to unpack compressed captain's logs and system files. It is currently locked." + }, + { + "id": "graph_shortest_path_c997", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "city_map_data.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Central_Station" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "false" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Central_Station\", \"Market_Square\", \"Library\", \"University\", \"Tech_Park\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "3450" + } + ], + "init": { + "inputs": { + "file_id": "city_map_data.json", + "src": "Central_Station" + }, + "outputs": { + "path": "[\"Central_Station\", \"Market_Square\", \"Library\", \"University\", \"Tech_Park\"]", + "cost": "3450" + } + }, + "narrative": "The Sub-System Router manages local data traffic between engineering nodes. It requires input from the Identity Verification Unit to open the routing table." + }, + { + "id": "item_16_1a74", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Master Key found inside the Captain's Biometric Locker. It looks like it fits the Reinforced Titanium Vault." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "4929485739102847" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "4929485739102847" + }, + "outputs": {} + }, + "narrative": "The Identity Verification Unit validates crew identification numbers. It's waiting for a numeric sequence input." + }, + { + "id": "item_16_9d0f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Security Protocol Chip lying near the terminal. It contains access codes." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "09f911029d74e35bd84156c5635688c0" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "09f911029d74e35bd84156c5635688c0" + }, + "outputs": {} + }, + "narrative": "The Captain's Biometric Locker. It uses a fingerprint scanner to secure its contents." + } + ], + "edges": [ + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "s" + }, + { + "source_id": "text_rotN", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "from_base" + }, + { + "source_id": "calc_inv_mod_ab71", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "terminal_2", + "target_id": "calc_inv_mod", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "item_16", + "target_id": "text_rotN", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "container_3", + "target_id": "calc_inv_mod_ab71", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "graph_shortest_path_c997", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "text" + }, + { + "source_id": "graph_shortest_path_c997", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "item_16_1a74", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "luhn_check", + "target_id": "graph_shortest_path_c997", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "dst" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_inv_mod_ab71", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "item_16_9d0f", + "target_id": "terminal_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path_c997", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "dst" + }, + { + "source_id": "container_2", + "target_id": "item_16_1a74", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_73fc8676_narrative.json b/data/questions/15/narrative/skeleton_73fc8676_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..cc29629621f272cce1a4cc7b5575066bbae309ce --- /dev/null +++ b/data/questions/15/narrative/skeleton_73fc8676_narrative.json @@ -0,0 +1,949 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "zip_unzip_file", + "win_condition": { + "type": "tool_output", + "node_id": "zip_unzip_file", + "output_port": "files", + "output_type": "File_Id", + "description": "Execute Zip Unzipper and get the output from port 'files'" + }, + "source_init": { + "source_nodes": [ + "zip_unzip_file", + "calc_inv_mod", + "checksum_crc32", + "zip_unzip_file_9ea4", + "zip_unzip_file_65ce", + "hash_md5", + "graph_shortest_path", + "zip_unzip_file_9ec5", + "container_1", + "hash_md5_929c", + "hex_decode" + ], + "by_node": { + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_9ea4": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_65ce": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "hash_md5": { + "node_name": "MD5 Hasher", + "node_type": "Tool", + "template_id": "hash_md5", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file_9ec5": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "hash_md5_929c": { + "node_name": "MD5 Hasher", + "node_type": "Tool", + "template_id": "hash_md5", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "hex_decode": { + "node_name": "Hex to Text Decoder", + "node_type": "Tool", + "template_id": "hex_decode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "encrypted_archive_v1.zip" + } + }, + "calc_inv_mod": { + "init_inputs": { + "a": "8374659201928374655647382" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + "init_outputs": {} + }, + "zip_unzip_file_9ea4": { + "init_inputs": {}, + "init_outputs": { + "files": "intermediate_data_9ea4.zip" + } + }, + "zip_unzip_file_65ce": { + "init_inputs": { + "password": "SuperSecretPass123!" + }, + "init_outputs": { + "files": "unlocked_payload_65ce.zip" + } + }, + "hash_md5": { + "init_inputs": { + "text": "Initial text block for hashing process." + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Start" + }, + "init_outputs": { + "path": "[\"Node_Start\", \"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_End\"]", + "cost": "9876543210987654321098765" + } + }, + "zip_unzip_file_9ec5": { + "init_inputs": { + "zip_id": "secure_backup_9ec5.zip", + "password": "AnotherStrongPassword456" + }, + "init_outputs": { + "files": "extracted_content_9ec5.txt" + } + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "112233445566778899aabbccddeeff00" + }, + "init_outputs": {} + }, + "hash_md5_929c": { + "init_inputs": { + "text": "Text to trigger container 2 fingerprint." + }, + "init_outputs": {} + }, + "hex_decode": { + "init_inputs": { + "hex": "5365637265744d65737361676548657265" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the dark, humming server room of the abandoned space station 'Aethelgard'. The station's AI has locked down the central systems, including the critical navigation files needed to return to Earth. With oxygen levels slowly depleting and the emergency lights flickering, you must reactivate the station's dormant terminals and bypass a series of intricate security protocols. Your ultimate objective is to decrypt and extract the files from the main core before the life support systems completely fail. Time is running out, and every terminal holds a piece of the puzzle.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "intermediate_data_9ea4.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "\u0005g\u0018EJ\b" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "encrypted_archive_v1.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "encrypted_archive_v1.zip" + } + }, + "narrative": "This is the Main Databank Extractor. The final extraction terminal for the central core system. It requires inputs from the Quantum Shift Decoder and the Secondary Databank Extractor to access the ultimate files." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "\u0005k\u0018IN\b" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "8374659201928374655647382" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "\u0005g\u0018EJ\b" + } + ], + "narrative": "This is the Quantum Shift Decoder. A text manipulation device based on quantum shifting technology. It requires inputs from the Temporal Inversion Module and the Asymmetric Decryption Core." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "8374659201928374655647382" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 429976841 + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "8374659201928374655647382" + } + ], + "init": { + "inputs": { + "a": "8374659201928374655647382" + }, + "outputs": {} + }, + "narrative": "This is the Temporal Inversion Module. A complex mathematical processor. It requires input from the Integrity Scanner to function properly." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "19a0ed09" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 429976841 + } + ], + "init": { + "inputs": { + "hex": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + "outputs": {} + }, + "narrative": "This is the Integrity Scanner. A diagnostic scanner used by the engineers to verify system data integrity." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Chronos Log. A hidden data pad containing temporal coordinates left behind by the last crew member." + }, + { + "id": "zip_unzip_file_9ea4", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "unlocked_payload_65ce.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "\u0005k\u0018IN\b" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "intermediate_data_9ea4.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "intermediate_data_9ea4.zip" + } + }, + "narrative": "This is the Secondary Databank Extractor. An extraction tool for heavily encrypted station databanks. It requires inputs from the Network Archive Extractor and the Asymmetric Decryption Core." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "0180e69b1ee31a2fce6516a9ac879f5e" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "8374659201928374655647382" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "9876543210987654321098765" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0005k\u0018IN\b" + } + ], + "narrative": "This is the Asymmetric Decryption Core. An advanced decryption engine. It requires inputs from the Security Hasher, the Temporal Inversion Module, and the Navigation Router to break the heavy cipher." + }, + { + "id": "zip_unzip_file_65ce", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_content_9ec5.txt" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretPass123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "unlocked_payload_65ce.zip" + } + ], + "init": { + "inputs": { + "password": "SuperSecretPass123!" + }, + "outputs": { + "files": "unlocked_payload_65ce.zip" + } + }, + "narrative": "This is the Network Archive Extractor. A secondary extraction system for deep-network files. It requires input from the Initial Archive Extractor to proceed." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Initial text block for hashing process." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "0180e69b1ee31a2fce6516a9ac879f5e" + } + ], + "init": { + "inputs": { + "text": "Initial text block for hashing process." + }, + "outputs": {} + }, + "narrative": "This is the Security Hasher. A high-level console designed to process sensitive text into secure formats." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "unlocked_payload_65ce.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Start" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "SecretMessageHere" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Start\", \"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_End\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "9876543210987654321098765" + } + ], + "init": { + "inputs": { + "src": "Node_Start" + }, + "outputs": { + "path": "[\"Node_Start\", \"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_End\"]", + "cost": "9876543210987654321098765" + } + }, + "narrative": "This is the Navigation Router. A routing system used to find optimal data paths across the station network. It requires inputs from the Network Archive Extractor and the Hexadecimal Translator." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "9cc5078367406780bb86a09c60190c8f" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Biometric Safe. A highly secure vault with a specialized locking mechanism. It requires input from the Access Hasher to authenticate and open." + }, + { + "id": "zip_unzip_file_9ec5", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_backup_9ec5.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "AnotherStrongPassword456" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_content_9ec5.txt" + } + ], + "init": { + "inputs": { + "zip_id": "secure_backup_9ec5.zip", + "password": "AnotherStrongPassword456" + }, + "outputs": { + "files": "extracted_content_9ec5.txt" + } + }, + "narrative": "This is the Initial Archive Extractor. A file extraction terminal for handling basic compressed backups." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "112233445566778899aabbccddeeff00" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "112233445566778899aabbccddeeff00" + }, + "outputs": {} + }, + "narrative": "This is the Storage Lockbox. A heavily armored wall compartment secured with an electronic keypad." + }, + { + "id": "hash_md5_929c", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Text to trigger container 2 fingerprint." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "9cc5078367406780bb86a09c60190c8f" + } + ], + "init": { + "inputs": { + "text": "Text to trigger container 2 fingerprint." + }, + "outputs": {} + }, + "narrative": "This is the Access Hasher. A basic terminal used for generating quick security digests for lower-level systems." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "5365637265744d65737361676548657265" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "SecretMessageHere" + } + ], + "init": { + "inputs": { + "hex": "5365637265744d65737361676548657265" + }, + "outputs": {} + }, + "narrative": "This is the Hexadecimal Translator. A translation interface that converts raw machine code into readable text." + } + ], + "edges": [ + { + "source_id": "text_rotN", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "calc_inv_mod", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "n" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "item_16", + "target_id": "calc_inv_mod", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zip_unzip_file_9ea4", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "zip_unzip_file_65ce", + "target_id": "zip_unzip_file_9ea4", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "hash_md5", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "calc_inv_mod", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "n" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "zip_unzip_file_9ea4", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "graph_shortest_path", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "d" + }, + { + "source_id": "container_2", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "zip_unzip_file_65ce", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_9ec5", + "target_id": "zip_unzip_file_65ce", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "hash_md5_929c", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "hex_decode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_7b7d9797_narrative.json b/data/questions/15/narrative/skeleton_7b7d9797_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..45a145285d96a0d81e37a43ab930b9a91f4fa48d --- /dev/null +++ b/data/questions/15/narrative/skeleton_7b7d9797_narrative.json @@ -0,0 +1,1007 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 20, + "win_node_id": "item_10", + "win_condition": { + "type": "item_content", + "node_id": "item_10", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_10", + "terminal_1", + "item_11", + "terminal_2", + "num_base_convert", + "calc_gcd", + "container_1", + "num_base_convert_b54a", + "num_base_convert_7e97", + "matter_synthesizer", + "calc_inv_mod", + "container_1_b16f" + ], + "by_node": { + "item_10": { + "node_name": "", + "node_type": "Item", + "template_id": "item_10", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "num_base_convert_b54a": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "num_base_convert_7e97": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "container_1_b16f": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_10": { + "init_inputs": {}, + "init_outputs": { + "content": "485720394857230495827349857234" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal initialized awaiting input stream A.", + "hex_output": "deadbeefcafebabe1234567890abcdef" + } + }, + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def execute_task():\n return 'Task Completed'" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Calculation pending inputs.", + "hex_result": "00112233445566778899aabbccddeeff", + "math_token": "MathToken_Alpha" + } + }, + "num_base_convert": { + "init_inputs": { + "s": "394857239485723948572394857239" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "b": "582734958273495827349582734958" + }, + "init_outputs": {} + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" + }, + "init_outputs": {} + }, + "num_base_convert_b54a": { + "init_inputs": { + "s": "102938475610293847561029384756" + }, + "init_outputs": {} + }, + "num_base_convert_7e97": { + "init_inputs": { + "s": "112233445566778899001122334455", + "to_base": "10" + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "Specification: Hyper-Dense Alloy Block v4" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "675849302167584930216758493021", + "mod": "999983" + }, + "init_outputs": {} + }, + "container_1_b16f": { + "init_inputs": { + "fingerprint_input": "f0e1d2c3b4a5968778695a4b3c2d1e0f" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The rain lashes against the reinforced glass of Precinct 42. You are Lead Detective Vance, and you've just walked into the evidence room after a grueling 48-hour shift. The infamous 'Cipher Killer' has left behind a trail of highly encrypted digital footprints and locked physical evidence. The precinct's systems have been scrambled, and standard protocols are useless. Your objective is clear: navigate the web of corrupted data, crack the intricate mathematical cyphers, and access the final piece of evidence that will blow this case wide open. Time is running out before the killer's automated scripts wipe the precinct's servers clean. You must rely on your wits, the precinct's specialized forensic tools, and the scattered clues left behind to unmask the culprit. Examine everything carefully; in this line of work, every hash, code, and locked container tells a story.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "item_10", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_10", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "485720394857230495827349857234" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "485720394857230495827349857234" + } + }, + "narrative": "This is the Final Evidence Folder. A sealed Manila folder containing the ultimate truth of the case." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "(no output)" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "102938475610293847561029384756" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialized awaiting input stream A." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeefcafebabe1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal initialized awaiting input stream A.", + "hex_output": "deadbeefcafebabe1234567890abcdef" + } + }, + "narrative": "This is the Main Police Mainframe. A heavy-duty precinct computer. It requires inputs from both the Forensic Code Analyzer and the Cipher Translator Beta." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def execute_task():\n return 'Task Completed'" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "(no output)" + } + ], + "narrative": "This is the Forensic Code Analyzer. A specialized environment for running recovered scripts. It requires input from the Encrypted Drive Data." + }, + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def execute_task():\n return 'Task Completed'" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def execute_task():\n return 'Task Completed'" + } + }, + "narrative": "This is the Encrypted Drive Data. A heavily corrupted flash drive containing suspicious digital scripts." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Calculation pending inputs." + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Evidence Locker 4. A heavy steel locker in the precinct. It requires input from the Suspect Verification Terminal to authorize unlocking." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "394857239485723948572394857239" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "112233445566778899001122334455" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation pending inputs." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "00112233445566778899aabbccddeeff" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "MathToken_Alpha" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Calculation pending inputs.", + "hex_result": "00112233445566778899aabbccddeeff", + "math_token": "MathToken_Alpha" + } + }, + "narrative": "This is the Suspect Verification Terminal. A station used to cross-reference suspect IDs. It requires inputs from both the Cipher Translator Alpha and the Cipher Translator Gamma." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "394857239485723948572394857239" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "19266253299434619560942501832" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "112233445566778899001122334455" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "394857239485723948572394857239" + } + ], + "init": { + "inputs": { + "s": "394857239485723948572394857239" + }, + "outputs": {} + }, + "narrative": "This is the Cipher Translator Alpha. A digital signal conversion tool. It requires inputs from both the Cryptographic Decryptor and the Cipher Translator Gamma." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "12966" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "112233445566778899001122334455" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "102938475610293847561029384756" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "19266253299434619560942501832" + } + ], + "narrative": "This is the Cryptographic Decryptor. A high-powered decryption rig. It requires inputs from the Frequency Analysis Scanner, the Cipher Translator Beta, and the Cipher Translator Gamma." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "102938475610293847561029384756" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "582734958273495827349582734958" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "12966" + } + ], + "init": { + "inputs": { + "b": "582734958273495827349582734958" + }, + "outputs": {} + }, + "narrative": "This is the Frequency Analysis Scanner. A device that finds common patterns in numeric data. It requires input from the Cipher Translator Beta." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_96e866ecd2956ec4" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" + }, + "outputs": {} + }, + "narrative": "This is the Secure Briefcase. A sleek, black leather briefcase with a sophisticated biometric lock." + }, + { + "id": "num_base_convert_b54a", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "102938475610293847561029384756" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "112233445566778899001122334455" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "691235" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "102938475610293847561029384756" + } + ], + "init": { + "inputs": { + "s": "102938475610293847561029384756" + }, + "outputs": {} + }, + "narrative": "This is the Cipher Translator Beta. A secondary digital signal conversion tool. It requires inputs from both the Cipher Translator Gamma and the Reverse Hash Calculator." + }, + { + "id": "num_base_convert_7e97", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "112233445566778899001122334455" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "691235" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "112233445566778899001122334455" + } + ], + "init": { + "inputs": { + "s": "112233445566778899001122334455", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the Cipher Translator Gamma. An advanced digital signal conversion tool. It requires input from the Reverse Hash Calculator." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Specification: Hyper-Dense Alloy Block v4" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_96e866ecd2956ec4" + } + ], + "init": { + "inputs": { + "blueprint": "Specification: Hyper-Dense Alloy Block v4" + }, + "outputs": {} + }, + "narrative": "This is the 3D Evidence Reconstructor. A cutting-edge fabrication unit that can print physical copies of digital evidence." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "675849302167584930216758493021" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "691235" + } + ], + "init": { + "inputs": { + "a": "675849302167584930216758493021", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "This is the Reverse Hash Calculator. An old but reliable calculator used to reverse modular arithmetic." + }, + { + "id": "container_1_b16f", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "f0e1d2c3b4a5968778695a4b3c2d1e0f" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "f0e1d2c3b4a5968778695a4b3c2d1e0f" + }, + "outputs": {} + }, + "narrative": "This is the Detective's Lockbox. A small personal lockbox belonging to the lead investigator." + } + ], + "edges": [ + { + "source_id": "terminal_1", + "target_id": "item_10", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "code_py_exec", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "slot_a" + }, + { + "source_id": "item_11", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "container_4", + "target_id": "item_11", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num1" + }, + { + "source_id": "calc_modexp", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "from_base" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "container_1", + "target_id": "calc_modexp", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "num_base_convert_b54a", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "num_base_convert_b54a", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "num_base_convert_7e97", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "matter_synthesizer", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "num_base_convert_7e97", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "to_base" + }, + { + "source_id": "num_base_convert_b54a", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "slot_b" + }, + { + "source_id": "num_base_convert_7e97", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "num_base_convert_7e97", + "target_id": "num_base_convert_b54a", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "from_base" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert_7e97", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "from_base" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert_b54a", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "container_1_b16f", + "target_id": "num_base_convert_7e97", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_87684170_narrative.json b/data/questions/15/narrative/skeleton_87684170_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..05f1f090ebb87e6cca3bacabe14f9ffd8d4c7ede --- /dev/null +++ b/data/questions/15/narrative/skeleton_87684170_narrative.json @@ -0,0 +1,848 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "base64_encode", + "win_condition": { + "type": "tool_output", + "node_id": "base64_encode", + "output_port": "b64", + "output_type": "Text_Generic", + "description": "Execute Base64 Encoder and get the output from port 'b64'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "json_get", + "zip_unzip_file", + "zip_unzip_file_90f9", + "terminal_1", + "time_convert", + "item_7" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": {}, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_90f9": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "time_convert": { + "node_name": "Timezone Converter", + "node_type": "Tool", + "template_id": "time_convert", + "init_inputs": { + "iso": { + "type": "Text_Generic", + "description": "ISO Timestamp" + }, + "from_tz": { + "type": "Text_Generic", + "description": "From Timezone" + }, + "to_tz": { + "type": "Text_Generic", + "description": "To Timezone" + } + }, + "init_outputs": {} + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]", + "cost": "38475619283746501928" + } + }, + "json_get": { + "init_inputs": {}, + "init_outputs": { + "values": "Target_Destination_Node_V9" + } + }, + "zip_unzip_file": { + "init_inputs": { + "password": "SecurePassword123!" + }, + "init_outputs": { + "files": "extracted_config_data.json" + } + }, + "zip_unzip_file_90f9": { + "init_inputs": { + "zip_id": "archive_protected_2024.zip" + }, + "init_outputs": { + "files": "network_topology_graph.json" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal initialization sequence complete. System ready.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "item_dispenser": "Standard Operator Toolkit" + } + }, + "time_convert": { + "init_inputs": { + "iso": "2024-10-27T14:30:00Z", + "from_tz": "UTC", + "to_tz": "America/Los_Angeles" + }, + "init_outputs": {} + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "print('Code execution module activated successfully.')" + } + } + }, + "intro_narrative": "You wake up in a damp, neon-lit alleyway in the underbelly of Neo-Kowloon. The rain washes over the cybernetic debris scattered around you. A megacorporation's purge protocol has trapped you in this sector, and the only way out is to reactivate an abandoned communication array to broadcast an encrypted distress signal. You must interface with forgotten tech, bypass rogue security modules, and scavenge old hardware to weave your way through the local network. Time is running out before the hunter drones arrive. Connect the fragmented systems, decode the data trail, and escape.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "62b7b71baca435c2117ad206f20308bf5180f09c524b101cf7c4dc5c04cf25350749ceb5a03833273f4f29160025c816bf" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "Yre3G6ykNcIRetIG8gMIv1GA8JxSSxAc98TcXATPJTUHSc61oDgzJz9PKRYAJcgWvw==" + } + ], + "narrative": "This is the Final Uplink Transmitter. It requires input from the Quantum Cipher to broadcast the escape signal." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "789c8b56f2cb4f498d77cc29c84854d25180f09c524b101cf7c4dc5c04cf25350749ceb5a03833273f4f29160025c816bf" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "62b7b71baca435c2117ad206f20308bf5180f09c524b101cf7c4dc5c04cf25350749ceb5a03833273f4f29160025c816bf" + } + ], + "narrative": "A Quantum Cipher device. It requires inputs from both the Data Compressor and the Mainframe Console to align the encryption arrays." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c8b56f2cb4f498d77cc29c84854d25180f09c524b101cf7c4dc5c04cf25350749ceb5a03833273f4f29160025c816bf" + } + ], + "narrative": "This is a Data Compressor. It requires input from the Sector Navigator to condense the spatial coordinates into a usable format." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "2024-10-27T07:30:00-07:00" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Target_Destination_Node_V9" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "38475619283746501928" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]", + "cost": "38475619283746501928" + } + }, + "narrative": "A holographic Sector Navigator. It requires inputs from the Data Extractor, the Outer Archive Decryptor, and the Chrono-Sync Module to map the route." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "extracted_config_data.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "Code execution module activated successfully.\n" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "Target_Destination_Node_V9" + } + ], + "init": { + "inputs": {}, + "outputs": { + "values": "Target_Destination_Node_V9" + } + }, + "narrative": "The Data Extractor terminal. It requires inputs from both the Neural Processor and the Inner Archive Decryptor to parse the deep network structures." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print('Code execution module activated successfully.')" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Code execution module activated successfully.\n" + } + ], + "narrative": "A high-end Neural Processor. It requires input from the Encrypted Logic Chip to execute the necessary override subroutines." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A discarded Access Keycard with a faded megacorp logo printed on its surface." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "network_topology_graph.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_config_data.json" + } + ], + "init": { + "inputs": { + "password": "SecurePassword123!" + }, + "outputs": { + "files": "extracted_config_data.json" + } + }, + "narrative": "The Inner Archive Decryptor. It requires input from the Outer Archive Decryptor to peel back the next layer of security." + }, + { + "id": "zip_unzip_file_90f9", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_protected_2024.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "2024-10-27T07:30:00-07:00" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "network_topology_graph.json" + } + ], + "init": { + "inputs": { + "zip_id": "archive_protected_2024.zip" + }, + "outputs": { + "files": "network_topology_graph.json" + } + }, + "narrative": "The Outer Archive Decryptor. It requires input from the Chrono-Sync Module to bypass the time-locked firewall." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 3645834830 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialization sequence complete. System ready." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard Operator Toolkit" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal initialization sequence complete. System ready.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "item_dispenser": "Standard Operator Toolkit" + } + }, + "narrative": "The central Mainframe Console. It requires inputs from both the Integrity Validator and the Sector Navigator to fully boot up." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "789c8b56f2cb4f498d77cc29c84854d25180f09c524b101cf7c4dc5c04cf25350749ceb5a03833273f4f29160025c816bf" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "d94f064e" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3645834830 + } + ], + "narrative": "A biometric Integrity Validator. It requires input from the Data Compressor to verify the integrity of the data stream." + }, + { + "id": "time_convert", + "name": "Timezone Converter", + "description": "Convert ISO time between timezones.", + "type": "Tool", + "template_id": "time_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "ISO Timestamp", + "value": "2024-10-27T14:30:00Z" + }, + { + "name": "from_tz", + "type": "Text_Generic", + "description": "From Timezone", + "value": "UTC" + }, + { + "name": "to_tz", + "type": "Text_Generic", + "description": "To Timezone", + "value": "America/Los_Angeles" + } + ], + "outputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "Converted ISO Timestamp", + "value": "2024-10-27T07:30:00-07:00" + } + ], + "init": { + "inputs": { + "iso": "2024-10-27T14:30:00Z", + "from_tz": "UTC", + "to_tz": "America/Los_Angeles" + }, + "outputs": {} + }, + "narrative": "A Chrono-Sync Module built into the wall, its screen flashing with shifting global timestamps." + }, + { + "id": "item_16_6f11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A pristine Bypass Token lying hidden among the electronic scrap." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "print('Code execution module activated successfully.')" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "print('Code execution module activated successfully.')" + } + }, + "narrative": "An Encrypted Logic Chip pulled from a destroyed synthetic chassis." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A bloody Cybernetic Implant, recently extracted and still sparking." + } + ], + "edges": [ + { + "source_id": "text_xor_hex", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "zlib_deflate", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "text" + }, + { + "source_id": "json_get", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "dst" + }, + { + "source_id": "code_py_exec", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "jsonpath" + }, + { + "source_id": "item_16", + "target_id": "json_get", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zip_unzip_file", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_90f9", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "terminal_1", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex_a" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "slot_a" + }, + { + "source_id": "time_convert", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "iso", + "target_port": "src" + }, + { + "source_id": "item_16_6f11", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "time_convert", + "target_id": "zip_unzip_file_90f9", + "connection_type": "Text_Generic", + "source_port": "iso", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_90f9", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zlib_deflate", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "item_8", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_8ee36fb4_narrative.json b/data/questions/15/narrative/skeleton_8ee36fb4_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..b3363236edd72f397dd5208d1649ba3a41271d0b --- /dev/null +++ b/data/questions/15/narrative/skeleton_8ee36fb4_narrative.json @@ -0,0 +1,875 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "text_xor_hex", + "win_condition": { + "type": "tool_output", + "node_id": "text_xor_hex", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute Hex XOR and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "item_7", + "terminal_1", + "calc_modexp", + "zlib_deflate", + "terminal_2_de5f", + "calc_bigmul" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "zlib_deflate": { + "node_name": "Zlib Deflate", + "node_type": "Tool", + "template_id": "zlib_deflate", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to compress" + } + }, + "init_outputs": {} + }, + "terminal_2_de5f": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "System ready for input processing.", + "hex_result": "c4d3e2f1a0b987654321" + } + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "print('UmVxdWVzdGluZyBhY2Nlc3MgdG8gc2VjdXJlIHZhdWx0')" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Initial text sequence for encoding.", + "hex_output": "a1b2c3d4e5f678901234", + "item_dispenser": "Standard issue connector item." + } + }, + "calc_modexp": { + "init_inputs": { + "base": "38471029384756102938", + "mod": "492817" + }, + "init_outputs": {} + }, + "zlib_deflate": { + "init_inputs": { + "text": "Compacting data stream for efficient transfer." + }, + "init_outputs": {} + }, + "terminal_2_de5f": { + "init_inputs": { + "num1": "82736451928374651029" + }, + "init_outputs": { + "text_result": "Calculation module active.", + "hex_result": "123456789abcdef01234" + } + }, + "calc_bigmul": { + "init_inputs": { + "a": "65748392015647382910", + "b": "19283746501928374650" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You have just stepped into the dimly lit, abandoned office of the infamous 'Cipher Killer'. The room is cluttered with strange mechanical gadgets, humming terminals, and heavy steel locks. The air is thick with dust and the quiet ticking of hidden mechanisms. Your objective is clear: trace the flow of hidden data, operate the complex machinery in the correct sequence, and uncover the final password to unlock the master safe before the killer returns. Every device in this room is part of a larger, interconnected web. You must carefully follow the clues and pass the evidence through the right machines to reveal the truth.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "52657175657374696e672061636365737320746f20736563757265207661756c74" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "496e697469616c20746578742073657175656e636520666f7220656e636f64696e672e" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "1b0b18010c1218491a0258154310000206451a0c4553030c0752004e150e11051a672e" + } + ], + "narrative": "This is the Master Vault. It requires inputs from both the Teletype Machine and the Frequency Decoder to finally swing open." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Initial text sequence for encoding." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "496e697469616c20746578742073657175656e636520666f7220656e636f64696e672e" + } + ], + "narrative": "This is a Teletype Machine. It requires input from the Vault Keypad to translate the finalized codes." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": 1846469697 + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "System ready for input processing." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "c4d3e2f1a0b987654321" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "System ready for input processing.", + "hex_result": "c4d3e2f1a0b987654321" + } + }, + "narrative": "This is a Dispatch Terminal. It requires inputs from both the Primary Scanner and the Pattern Matcher to log into the network." + }, + { + "id": "base64_decode", + "name": "Base64 Decoder", + "description": "Decode base64 to hex bytes.", + "type": "Tool", + "template_id": "base64_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "data", + "type": "Text_Generic", + "description": "Base64 string", + "value": "UmVxdWVzdGluZyBhY2Nlc3MgdG8gc2VjdXJlIHZhdWx0\n" + } + ], + "outputs": [ + { + "name": "bytes_hex", + "type": "Hex_String", + "description": "Decoded bytes as Hex", + "value": "52657175657374696e672061636365737320746f20736563757265207661756c74" + } + ], + "narrative": "This is a Frequency Decoder. It requires input from the Analysis Workstation to process the recovered signals." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print('UmVxdWVzdGluZyBhY2Nlc3MgdG8gc2VjdXJlIHZhdWx0')" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "UmVxdWVzdGluZyBhY2Nlc3MgdG8gc2VjdXJlIHZhdWx0\n" + } + ], + "narrative": "This is an Analysis Workstation. It requires input from the Suspect's Notebook to execute the hidden routines." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "print('UmVxdWVzdGluZyBhY2Nlc3MgdG8gc2VjdXJlIHZhdWx0')" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "print('UmVxdWVzdGluZyBhY2Nlc3MgdG8gc2VjdXJlIHZhdWx0')" + } + }, + "narrative": "This is the Suspect's Notebook, filled with frantic, handwritten scribbles and locked away secrets." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "789c05c1c10d00200803c0553a814b3849a360788806bb7fbceb675f0e452e4c8a782ae3869f82b9c7084b41c57c6ed53e97451153" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "6e0ee441" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1846469697 + } + ], + "narrative": "This is a Primary Scanner. It requires input from the Document Compressor to verify the evidence's authenticity." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "System ready for input processing." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 3421124040 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Initial text sequence for encoding." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f678901234" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard issue connector item." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Initial text sequence for encoding.", + "hex_output": "a1b2c3d4e5f678901234", + "item_dispenser": "Standard issue connector item." + } + }, + "narrative": "This is a Vault Keypad. It requires inputs from both the Dispatch Terminal and the Secondary Scanner to grant access." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is a Broken Pocket Watch, its hands mysteriously frozen at a very specific time." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 1846469697 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "316837" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is a Pattern Matcher. It requires inputs from both the Rotational Cipher and the Primary Scanner to function." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "38471029384756102938" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 3421124040 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "492817" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "316837" + } + ], + "init": { + "inputs": { + "base": "38471029384756102938", + "mod": "492817" + }, + "outputs": {} + }, + "narrative": "This is a Rotational Cipher. It requires input from the Secondary Scanner to align its inner mechanisms." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "Compacting data stream for efficient transfer." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c05c1c10d00200803c0553a814b3849a360788806bb7fbceb675f0e452e4c8a782ae3869f82b9c7084b41c57c6ed53e97451153" + } + ], + "init": { + "inputs": { + "text": "Compacting data stream for efficient transfer." + }, + "outputs": {} + }, + "narrative": "This is a Document Compressor, a strange pneumatic device designed to shrink files down for covert transport." + }, + { + "id": "checksum_crc32_712b", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "6e0ee441" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "cbea35c8" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3421124040 + } + ], + "narrative": "This is a Secondary Scanner. It requires input from the Primary Scanner to complete the dual-authentication process." + }, + { + "id": "terminal_2_de5f", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "82736451928374651029" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1267875324539155697866109131542487231500" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation module active." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "123456789abcdef01234" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "82736451928374651029" + }, + "outputs": { + "text_result": "Calculation module active.", + "hex_result": "123456789abcdef01234" + } + }, + "narrative": "This is an Encrypted Laptop. It requires input from the Antique Arithmometer to bypass its initial lock screen." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "65748392015647382910" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "19283746501928374650" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "1267875324539155697866109131542487231500" + } + ], + "init": { + "inputs": { + "a": "65748392015647382910", + "b": "19283746501928374650" + }, + "outputs": {} + }, + "narrative": "This is an Antique Arithmometer, a heavy mechanical calculator with brass gears used for complex calculations." + } + ], + "edges": [ + { + "source_id": "hex_encode", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + }, + { + "source_id": "terminal_2", + "target_id": "hex_encode", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "base64_decode", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "bytes_hex", + "target_port": "hex_a" + }, + { + "source_id": "code_py_exec", + "target_id": "base64_decode", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "data" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num2" + }, + { + "source_id": "terminal_1", + "target_id": "hex_encode", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "text" + }, + { + "source_id": "item_16", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num1" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "terminal_2", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "slot_a" + }, + { + "source_id": "zlib_deflate", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "checksum_crc32_712b", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "checksum_crc32", + "target_id": "checksum_crc32_712b", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "checksum_crc32_712b", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "terminal_2_de5f", + "target_id": "zlib_deflate", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_2_de5f", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num2" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_8fff2538_narrative.json b/data/questions/15/narrative/skeleton_8fff2538_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..b5e01cd60d593621a61bd5efbf6a8c073236dbe3 --- /dev/null +++ b/data/questions/15/narrative/skeleton_8fff2538_narrative.json @@ -0,0 +1,913 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 16, + "win_node_id": "unicode_norm", + "win_condition": { + "type": "tool_output", + "node_id": "unicode_norm", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute Unicode Normalizer and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "unicode_norm", + "csv_query", + "zip_unzip_file", + "terminal_2", + "calc_modexp", + "item_7", + "zip_unzip_file_b394", + "num_base_convert", + "calc_modexp_e6a0" + ], + "by_node": { + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": {}, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "zip_unzip_file_b394": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "calc_modexp_e6a0": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "unicode_norm": { + "init_inputs": { + "text": "The quick brown föx jümps över the låzy døg." + }, + "init_outputs": {} + }, + "csv_query": { + "init_inputs": {}, + "init_outputs": { + "rows": "NFC" + } + }, + "zip_unzip_file": { + "init_inputs": { + "password": "SecurePassword123!" + }, + "init_outputs": { + "files": "target_data.csv" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "928374651029384756102938" + }, + "init_outputs": { + "text_result": "Calculation initialized.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "calc_modexp": { + "init_inputs": { + "mod": "999983" + }, + "init_outputs": {} + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "val = 42\nprint(f'The value is {val}')" + } + }, + "zip_unzip_file_b394": { + "init_inputs": { + "zip_id": "archive_outer.zip", + "password": "UnlockKey_9988" + }, + "init_outputs": { + "files": "inner_archive.zip" + } + }, + "num_base_convert": { + "init_inputs": { + "s": "485720394857263849502837465", + "to_base": "10" + }, + "init_outputs": {} + }, + "calc_modexp_e6a0": { + "init_inputs": { + "base": "12345", + "exp": "65537", + "mod": "100003" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the sealed laboratory of Professor Gearwick, surrounded by hissing pipes, turning cogs, and the suffocating heat of trapped steam. The heavy brass door is locked tight, and the pressure in the room is slowly rising. The only way out is to activate his master invention: the linguistic difference engine. You must trace the flow of data through his array of steam-powered analytical machines, decrypters, and punch-card readers. Follow the mechanical logic, deduce the connections between the various gear-driven devices, and power up the final engine before the boiler overloads completely.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "The quick brown föx jümps över the låzy døg." + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "The quick brown föx jümps över the låzy døg." + } + ], + "init": { + "inputs": { + "text": "The quick brown föx jümps över the låzy døg." + }, + "outputs": {} + }, + "narrative": "This is the linguistic difference engine. It requires input from the brass records indexer. Once you have the indexer's output, bring it here." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "target_data.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "False" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "false" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "NFC" + } + ], + "init": { + "inputs": {}, + "outputs": { + "rows": "NFC" + } + }, + "narrative": "This is the brass records indexer. It requires inputs from the banking guild verifier, the merchant logic checker, and the secondary steam-powered decrypter." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "The value is 42\n" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "This is the banking guild verifier. It requires input from the analytical engine. Feed it the results from the engine to verify the routing." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "The value is 42\n" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "This is the merchant logic checker. It requires input from the analytical engine. Process the data through the engine before checking it here." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "inner_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "target_data.csv" + } + ], + "init": { + "inputs": { + "password": "SecurePassword123!" + }, + "outputs": { + "files": "target_data.csv" + } + }, + "narrative": "This is the secondary steam-powered decrypter. It requires input from the primary steam-powered decrypter to unlock the inner cylinders." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A discarded chronometer found in the workshop debris." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "val = 42\nprint(f'The value is {val}')" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "The value is 42\n" + } + ], + "narrative": "This is the analytical engine. It requires input from a punch card of instructions. Insert the punch card to begin its calculations." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "928374651029384756102938" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "571351" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation initialized." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "928374651029384756102938" + }, + "outputs": { + "text_result": "Calculation initialized.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "narrative": "This is the main control console. It requires input from the heavy gear exponentiator. After processing with the exponentiator, use the output here." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "81672" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "485720394857263849502837465" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "571351" + } + ], + "init": { + "inputs": { + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "This is the heavy gear exponentiator. It requires inputs from both the arithmometer base converter and the primary gear exponentiator to function." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "val = 42\nprint(f'The value is {val}')" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "val = 42\nprint(f'The value is {val}')" + } + }, + "narrative": "A punch card of instructions hidden within a mechanical contraption." + }, + { + "id": "zip_unzip_file_b394", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_outer.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "UnlockKey_9988" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "inner_archive.zip" + } + ], + "init": { + "inputs": { + "zip_id": "archive_outer.zip", + "password": "UnlockKey_9988" + }, + "outputs": { + "files": "inner_archive.zip" + } + }, + "narrative": "This is the primary steam-powered decrypter. It hums with latent boiler pressure, waiting to unseal locked cylinders." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A rusted mechanical integer, shaped from solid brass." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "485720394857263849502837465" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "81672" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "485720394857263849502837465" + } + ], + "init": { + "inputs": { + "s": "485720394857263849502837465", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the arithmometer base converter. It requires input from the primary gear exponentiator to shift its mathematical gears." + }, + { + "id": "calc_modexp_e6a0", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "12345" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "65537" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "100003" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "81672" + } + ], + "init": { + "inputs": { + "base": "12345", + "exp": "65537", + "mod": "100003" + }, + "outputs": {} + }, + "narrative": "This is the primary gear exponentiator, waiting for its starting configuration to spin up the cogs." + }, + { + "id": "item_16_c8e2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A brass timezone gauge, clicking faintly with clockwork precision." + } + ], + "edges": [ + { + "source_id": "csv_query", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "form" + }, + { + "source_id": "iban_validate", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "select" + }, + { + "source_id": "luhn_check", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "where" + }, + { + "source_id": "zip_unzip_file", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_16", + "target_id": "csv_query", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "code_py_exec", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "iban" + }, + { + "source_id": "code_py_exec", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "number" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num2" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "zip_unzip_file_b394", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_8", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "calc_modexp_e6a0", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "from_base" + }, + { + "source_id": "calc_modexp_e6a0", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "base" + }, + { + "source_id": "item_16_c8e2", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_931603ff_narrative.json b/data/questions/15/narrative/skeleton_931603ff_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..8ee831d8821ed946479ad92dba5bb118adfe494e --- /dev/null +++ b/data/questions/15/narrative/skeleton_931603ff_narrative.json @@ -0,0 +1,923 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 20, + "win_node_id": "hash_md5", + "win_condition": { + "type": "tool_output", + "node_id": "hash_md5", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute MD5 Hasher and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "csv_query", + "zip_unzip_file", + "zip_unzip_file_7ab4", + "json_get", + "zip_unzip_file_5597", + "zip_unzip_file_5dab", + "terminal_1", + "hash_sha256", + "matter_synthesizer", + "calc_gcd" + ], + "by_node": { + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": {}, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_7ab4": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": {}, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "zip_unzip_file_5597": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_5dab": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "hash_sha256": { + "node_name": "SHA-256 Hasher", + "node_type": "Tool", + "template_id": "hash_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "csv_query": { + "init_inputs": {}, + "init_outputs": { + "rows": "[{\"id\": 101, \"status\": \"active\", \"value\": 500}, {\"id\": 102, \"status\": \"pending\", \"value\": 350}]" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "financial_records.csv" + } + }, + "zip_unzip_file_7ab4": { + "init_inputs": {}, + "init_outputs": { + "files": "encrypted_ledger.zip" + } + }, + "json_get": { + "init_inputs": {}, + "init_outputs": { + "values": "DE21300098000004567890" + } + }, + "zip_unzip_file_5597": { + "init_inputs": {}, + "init_outputs": { + "files": "intermediate_bundle.zip" + } + }, + "zip_unzip_file_5dab": { + "init_inputs": { + "zip_id": "root_archive_v1.zip" + }, + "init_outputs": { + "files": "level1_data.zip" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "SuperSecretPassword2024!", + "hex_output": "48656c6c6f576f726c6d", + "item_dispenser": "Admin Access Badge" + } + }, + "hash_sha256": { + "init_inputs": { + "text": "Initiate secure hashing sequence alpha." + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "Schematic: Quantum Resonance Emitter" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "837465920183746592018374", + "b": "293847561029384756102938" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the forgotten sanctum of the Archmage, a hidden subterranean chamber where reality bends and magic is woven into physical form. The air is thick with the scent of ozone, ancient dust, and old parchment. Flickering torches cast long, dancing shadows across walls etched with glowing runes. To escape this mystical prison, you must unlock the ultimate power of the sanctum and forge an artifact capable of breaking the warding seal. Many enchanted objects, arcane tools, and locked magical chests lie scattered around the room, each bound by intricate, interwoven dependencies. You will need to carefully trace the flow of arcane energy, using spells and artifacts in the precise order to uncover the final incantation. The ultimate goal is to ignite the master forge and synthesize the essence of pure magic to blast the doors open.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "[{\"id\": 101, \"status\": \"active\", \"value\": 500}, {\"id\": 102, \"status\": \"pending\", \"value\": 350}]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "337d786e08792df7af8e8852f93dbc19" + } + ], + "narrative": "A blazing mystical furnace known as the Soul Forge. It requires input from the Archive of the Ancients to ignite its true power." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "financial_records.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "False" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "DE21300098000004567890" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"id\": 101, \"status\": \"active\", \"value\": 500}, {\"id\": 102, \"status\": \"pending\", \"value\": 350}]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "rows": "[{\"id\": 101, \"status\": \"active\", \"value\": 500}, {\"id\": 102, \"status\": \"pending\", \"value\": 350}]" + } + }, + "narrative": "A massive library of magical scrolls, the Archive of the Ancients. It requires inputs from the Runic Authenticator, the Silver Chest, and the Scrying Pool to reveal its hidden secrets." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A strange, dusty relic pulsing with faint magical energy. It seems to have been left behind by a previous adventurer." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A smooth, glowing Moonstone resting on a velvet cushion. It hums softly when held in your hand." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "DE21300098000004567890" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "An enchanted stone slab covered in validation runes, known as the Runic Authenticator. It requires input from the Scrying Pool to function properly." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_ledger.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "False" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "financial_records.csv" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "financial_records.csv" + } + }, + "narrative": "An ornate Silver Chest sealed by defensive magic. It requires inputs from the Bronze Chest and the Runic Authenticator to be safely opened." + }, + { + "id": "zip_unzip_file_7ab4", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "intermediate_bundle.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "False" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "encrypted_ledger.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "encrypted_ledger.zip" + } + }, + "narrative": "A sturdy Bronze Chest with a complex magical lock. It requires inputs from the Runic Authenticator and the Golden Chest to pop open." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "intermediate_bundle.zip" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "wCOgAxkBjsV2tlmamsLQ7TMOhO7EbeBAYofNwtsEK7Y=" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "DE21300098000004567890" + } + ], + "init": { + "inputs": {}, + "outputs": { + "values": "DE21300098000004567890" + } + }, + "narrative": "A dark, reflective Scrying Pool surrounded by candles. It requires inputs from the Golden Chest and the Celestial Translator to show you visions of what you seek." + }, + { + "id": "zip_unzip_file_5597", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "level1_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretPassword2024!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "intermediate_bundle.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "intermediate_bundle.zip" + } + }, + "narrative": "A gleaming Golden Chest that radiates warmth. It requires inputs from the Iron Chest and the Altar of Equivalence to unlock its treasures." + }, + { + "id": "zip_unzip_file_5dab", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "root_archive_v1.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretPassword2024!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "level1_data.zip" + } + ], + "init": { + "inputs": { + "zip_id": "root_archive_v1.zip" + }, + "outputs": { + "files": "level1_data.zip" + } + }, + "narrative": "A heavy Iron Chest bound in thick, rusted chains. It requires input from the Altar of Equivalence to shatter its magical bindings." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "wCOgAxkBjsV2tlmamsLQ7TMOhO7EbeBAYofNwtsEK7Y=" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "2" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "SuperSecretPassword2024!" + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "48656c6c6f576f726c6d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Admin Access Badge" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "SuperSecretPassword2024!", + "hex_output": "48656c6c6f576f726c6d", + "item_dispenser": "Admin Access Badge" + } + }, + "narrative": "An ancient stone table known as the Altar of Equivalence. It requires inputs from the Celestial Translator and the Abacus of the Fates to balance its scales." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool", + "value": "synthesized_item_674c4fc6b2542c46" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "c023a00319018ec576b6599a9ac2d0ed330e84eec46de0406287cdc2db042bb6" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "wCOgAxkBjsV2tlmamsLQ7TMOhO7EbeBAYofNwtsEK7Y=" + } + ], + "narrative": "A delicate arrangement of star-glass lenses, the Celestial Translator. It requires input from the Crystal of Truth to decipher cosmic language." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Initiate secure hashing sequence alpha." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "c023a00319018ec576b6599a9ac2d0ed330e84eec46de0406287cdc2db042bb6" + } + ], + "init": { + "inputs": { + "text": "Initiate secure hashing sequence alpha." + }, + "outputs": {} + }, + "narrative": "A flawless, multifaceted Crystal of Truth resting on a pedestal. It reflects the pure essence of whatever is placed before it." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Schematic: Quantum Resonance Emitter" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_674c4fc6b2542c46" + } + ], + "init": { + "inputs": { + "blueprint": "Schematic: Quantum Resonance Emitter" + }, + "outputs": {} + }, + "narrative": "A spinning wheel of pure magic, the Aether Loom, capable of weaving physical forms out of thin air." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "837465920183746592018374" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "293847561029384756102938" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "2" + } + ], + "init": { + "inputs": { + "a": "837465920183746592018374", + "b": "293847561029384756102938" + }, + "outputs": {} + }, + "narrative": "An intricate Abacus of the Fates made of carved bone and gold wire. Its ethereal beads seem to move on their own." + } + ], + "edges": [ + { + "source_id": "csv_query", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "text" + }, + { + "source_id": "item_8", + "target_id": "csv_query", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "iban_validate", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "select" + }, + { + "source_id": "zip_unzip_file", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_7ab4", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "iban_validate", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "iban_validate", + "target_id": "zip_unzip_file_7ab4", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "json_get", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "iban" + }, + { + "source_id": "json_get", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "where" + }, + { + "source_id": "zip_unzip_file_5597", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_5dab", + "target_id": "zip_unzip_file_5597", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "terminal_1", + "target_id": "zip_unzip_file_5597", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "password" + }, + { + "source_id": "base64_encode", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "slot_a" + }, + { + "source_id": "zip_unzip_file_5597", + "target_id": "zip_unzip_file_7ab4", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "hash_sha256", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "matter_synthesizer", + "target_id": "base64_encode", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_1", + "target_id": "zip_unzip_file_5dab", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "password" + }, + { + "source_id": "base64_encode", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "jsonpath" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "slot_b" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_93505631_narrative.json b/data/questions/15/narrative/skeleton_93505631_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..1497aa669b7a6c68adc9c0f96594d36cb8659db7 --- /dev/null +++ b/data/questions/15/narrative/skeleton_93505631_narrative.json @@ -0,0 +1,948 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "zip_unzip_file", + "win_condition": { + "type": "tool_output", + "node_id": "zip_unzip_file", + "output_port": "files", + "output_type": "File_Id", + "description": "Execute Zip Unzipper and get the output from port 'files'" + }, + "source_init": { + "source_nodes": [ + "zip_unzip_file", + "json_get", + "terminal_2", + "calc_modexp", + "calc_modexp_df89", + "checksum_crc32", + "calc_modexp_60ff", + "container_4", + "calc_gcd_b2f8" + ], + "by_node": { + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "JSON file ID" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + } + }, + "init_outputs": {} + }, + "calc_modexp_df89": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_modexp_60ff": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "calc_gcd_b2f8": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "zip_unzip_file": { + "init_inputs": { + "zip_id": "archive_vault_8821.zip" + }, + "init_outputs": { + "files": "extracted_manifest_v4.bin" + } + }, + "json_get": { + "init_inputs": { + "file_id": "system_schema_config.json" + }, + "init_outputs": { + "values": "[\"$.node.private_key\", \"$.node.session_id\", \"$.node.auth_secret\"]" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "$.access_control.credentials.password_hash", + "hex_result": "a4f2e8d1c0b3928a7156d4f3e2b1c099", + "math_token": "Verified mathematical sequence for cryptographic validation." + } + }, + "calc_modexp": { + "init_inputs": { + "base": "16" + }, + "init_outputs": {} + }, + "calc_modexp_df89": { + "init_inputs": { + "base": "2", + "exp": "882736451092837465019283746501", + "mod": "999983" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "da39a3ee5e6b4b0d3255bfef95601890afd80709" + }, + "init_outputs": {} + }, + "calc_modexp_60ff": { + "init_inputs": { + "base": "10", + "exp": "102938475610293847561029384756" + }, + "init_outputs": {} + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "sha256:7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1f" + }, + "init_outputs": {} + }, + "calc_gcd_b2f8": { + "init_inputs": { + "a": "293847561029384756102938475610", + "b": "384756102938475610293847561029" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The ash storms have finally subsided, revealing the entrance to Sector 7's central bunker. As a scrapper, you've heard legends about this place—it holds the coordinates to the last uncorrupted oasis on Earth. But the facility is dead, its systems fragmented and locked behind layers of post-apocalyptic security measures. You must reactivate the scattered machinery, route power through ancient generators, and bypass the bunker's mainframe to extract the final archives. Time is running out before the radiation levels spike again.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_vault_8821.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"$.node.private_key\", \"$.node.session_id\", \"$.node.auth_secret\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_manifest_v4.bin" + } + ], + "init": { + "inputs": { + "zip_id": "archive_vault_8821.zip" + }, + "outputs": { + "files": "extracted_manifest_v4.bin" + } + }, + "narrative": "This is the Mainframe Archive Extractor. The final firewall blocking the bunker's secrets. It requires input from the Data Parser Module to bypass the lockdown." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "system_schema_config.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.access_control.credentials.password_hash" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"$.node.private_key\", \"$.node.session_id\", \"$.node.auth_secret\"]" + } + ], + "init": { + "inputs": { + "file_id": "system_schema_config.json" + }, + "outputs": { + "values": "[\"$.node.private_key\", \"$.node.session_id\", \"$.node.auth_secret\"]" + } + }, + "narrative": "This is the Data Parser Module. An automated script processor. It requires input from the Central Control Terminal to filter through the vast amount of corrupted logs." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1072912117" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "855711" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "$.access_control.credentials.password_hash" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a4f2e8d1c0b3928a7156d4f3e2b1c099" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Verified mathematical sequence for cryptographic validation." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "$.access_control.credentials.password_hash", + "hex_result": "a4f2e8d1c0b3928a7156d4f3e2b1c099", + "math_token": "Verified mathematical sequence for cryptographic validation." + } + }, + "narrative": "This is the Central Control Terminal. The main bunker console. It requires inputs from both the Quantum Reversal Engine and the Power Amplifier to boot up." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "855711" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "27" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "855711" + } + ], + "narrative": "This is the Quantum Reversal Engine. A strange, pulsing machine. It requires inputs from the Signal Translator and the Frequency Synchronizer to operate." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "855711" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "27" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "411443100" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "855711" + } + ], + "narrative": "This is the Signal Translator. A complex decoding station. It requires inputs from the Frequency Synchronizer, the Primary Core Generator, and the Secondary Power Router." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "900000000090000000009" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "855711" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "27" + } + ], + "narrative": "This is the Frequency Synchronizer. A rusted antenna array. It requires inputs from both the Primary Core Generator and the Backup Frequency Emitter to stabilize." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "16" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "855711" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 3087229729 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1072912117" + } + ], + "init": { + "inputs": { + "base": "16" + }, + "outputs": {} + }, + "narrative": "This is the Power Amplifier. A massive transformer unit. It requires inputs from both the Integrity Scanner and the Primary Core Generator to function safely." + }, + { + "id": "calc_modexp_df89", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "2" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "882736451092837465019283746501" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "855711" + } + ], + "init": { + "inputs": { + "base": "2", + "exp": "882736451092837465019283746501", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "This is the Primary Core Generator. A humming machine, barely functioning after the fallout, used to produce base energy sequences." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "da39a3ee5e6b4b0d3255bfef95601890afd80709" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "b8036321" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3087229729 + } + ], + "init": { + "inputs": { + "hex": "da39a3ee5e6b4b0d3255bfef95601890afd80709" + }, + "outputs": {} + }, + "narrative": "This is the Integrity Scanner. A handheld device used to scan for data corruption in wasteland tech." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An Encrypted Log Drive. A small, heavily armored data storage device." + }, + { + "id": "calc_modexp_60ff", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "10" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "102938475610293847561029384756" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1072912117" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "411443100" + } + ], + "init": { + "inputs": { + "base": "10", + "exp": "102938475610293847561029384756" + }, + "outputs": {} + }, + "narrative": "This is the Secondary Power Router. A series of thick, glowing cables. It requires input from the Power Amplifier to distribute the energy flow." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "sha256:7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1f" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "sha256:7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1f" + }, + "outputs": {} + }, + "narrative": "This is a Biometric Lockbox. A sealed container designed to keep its contents safe from scavengers." + }, + { + "id": "item_16_3d48", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An Access Keycard. A scratched security badge belonging to a former technician." + }, + { + "id": "item_16_1ef6", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Rusted Toolbox. A heavy metal case covered in thick, radioactive dust." + }, + { + "id": "calc_gcd_b2f8", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "293847561029384756102938475610" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "384756102938475610293847561029" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "900000000090000000009" + } + ], + "init": { + "inputs": { + "a": "293847561029384756102938475610", + "b": "384756102938475610293847561029" + }, + "outputs": {} + }, + "narrative": "This is the Backup Frequency Emitter. An old radio tower component emitting steady, rhythmic pulses." + } + ], + "edges": [ + { + "source_id": "json_get", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "password" + }, + { + "source_id": "terminal_2", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "jsonpath" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num2" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num1" + }, + { + "source_id": "calc_modexp_df89", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "item_16", + "target_id": "json_get", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_modexp_df89", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "s" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "calc_modexp_60ff", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "to_base" + }, + { + "source_id": "container_4", + "target_id": "calc_inv_mod", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "item_16_3d48", + "target_id": "calc_gcd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_modexp_df89", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "exp" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_modexp_60ff", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "item_16_1ef6", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "calc_gcd_b2f8", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_943e247d_narrative.json b/data/questions/15/narrative/skeleton_943e247d_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..a49c9ed68e0911dbed7419c7ae202215c1ed1be2 --- /dev/null +++ b/data/questions/15/narrative/skeleton_943e247d_narrative.json @@ -0,0 +1,938 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "calc_modexp", + "win_condition": { + "type": "tool_output", + "node_id": "calc_modexp", + "output_port": "value", + "output_type": "Big_Int", + "description": "Execute BigInt Modular Exponentiation and get the output from port 'value'" + }, + "source_init": { + "source_nodes": [ + "calc_modexp_0e62", + "num_base_convert", + "checksum_crc32_a7c9", + "calc_gcd_0d69", + "csv_query", + "graph_shortest_path", + "terminal_2" + ], + "by_node": { + "calc_modexp_0e62": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "checksum_crc32_a7c9": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_gcd_0d69": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + }, + "select": { + "type": "Text_Generic", + "description": "Columns to select" + }, + "where": { + "type": "Text_Generic", + "description": "Where clause" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + } + } + }, + "initial_values": { + "calc_modexp_0e62": { + "init_inputs": { + "base": "8374928374651029384756102", + "exp": "1928374650912837465091283" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "from_base": "16" + }, + "init_outputs": {} + }, + "checksum_crc32_a7c9": { + "init_inputs": { + "hex": "4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d" + }, + "init_outputs": {} + }, + "calc_gcd_0d69": { + "init_inputs": { + "a": "3847561029384756102938475", + "b": "9182736450918273645091827" + }, + "init_outputs": {} + }, + "csv_query": { + "init_inputs": { + "file_id": "customer_transactions_2023.csv", + "select": "transaction_id, customer_name, amount, status", + "where": "amount > 1000 AND status = 'completed'" + }, + "init_outputs": { + "rows": "[{\"id\": \"TXN_001\", \"amount\": 1500}, {\"id\": \"TXN_002\", \"amount\": 2300}, {\"id\": \"TXN_003\", \"amount\": 1100}, {\"id\": \"TXN_004\", \"amount\": 4500}]" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "logistics_network_map.json", + "src": "Warehouse_North_A", + "dst": "Distribution_Center_Z" + }, + "init_outputs": { + "path": "[\"Warehouse_North_A\", \"Transit_Hub_1\", \"Route_66_Checkpoint\", \"Cross_Dock_Facility\", \"Highway_Interchange_4\", \"Local_Depot_B\", \"Distribution_Center_Z\"]", + "cost": "850" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "7465839201746583920174658", + "num2": "1029384756102938475610293" + }, + "init_outputs": { + "text_result": "Calculation completed successfully; verification passed.", + "hex_result": "deadbeef1234567890abcdef" + } + } + }, + "intro_narrative": "You are a private investigator who has just broken into the abandoned Blackwood Research Facility. Rumors suggest this site was the headquarters of a notorious syndicate that left behind a complex web of interconnected security modules. The air is stale, and the hum of backup generators is the only sound. Your objective is to navigate through the darkened corridors, reactivate the dormant systems, and bypass the facility's layers of defense to crack the final vault. Keep your wits about you, as every machine and terminal is a piece of a larger puzzle.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": 1378283405 + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1378283405" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "982424157" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "912188828" + } + ], + "narrative": "The Final Vault Lock. The massive steel door securing the syndicate's secrets. It requires inputs from The Signal Synchronizer, The Security Checkpoint, and The Mainframe Translator to finally open." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "0" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": 1378283405 + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1378283405" + } + ], + "narrative": "The Signal Synchronizer. A complex alignment console with blinking indicators. It requires inputs from both The Phase Inverter and The Security Checkpoint to align the facility's internal frequencies." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "0" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "9" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "0" + } + ], + "narrative": "The Phase Inverter. A heavy piece of machinery that balances the electrical load. It requires inputs from both The Power Grid Controller and The Frequency Tuner to stabilize the network." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "924fdc3b7e55013bf0eb3f961e980fffbb72e40383a425c0b2bd4bdc4455ae7f" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "5226ef8d" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1378283405 + } + ], + "narrative": "The Security Checkpoint. A fortified turnstile mechanism blocking the main hallway. It requires input from The Cryptographic Decoder to verify your clearance and allow passage." + }, + { + "id": "calc_modexp_0e62", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "8374928374651029384756102" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1928374650912837465091283" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "9" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "0" + } + ], + "init": { + "inputs": { + "base": "8374928374651029384756102", + "exp": "1928374650912837465091283" + }, + "outputs": {} + }, + "narrative": "The Power Grid Controller. A breaker panel covered in warning labels. It requires input from The Frequency Tuner to route energy correctly through the sector." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Digital Keycard. A plastic card with a damaged magnetic stripe lying forgotten on a desk." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "[{\"id\": \"TXN_001\", \"amount\": 1500}, {\"id\": \"TXN_002\", \"amount\": 2300}, {\"id\": \"TXN_003\", \"amount\": 1100}, {\"id\": \"TXN_004\", \"amount\": 4500}]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "924fdc3b7e55013bf0eb3f961e980fffbb72e40383a425c0b2bd4bdc4455ae7f" + } + ], + "narrative": "The Cryptographic Decoder. An advanced cipher machine sitting on a reinforced glass table. It requires input from The Employee Database Archive to decipher the underlying text." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": 982424157 + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "835060533450" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "982424157" + } + ], + "init": { + "inputs": { + "from_base": "16" + }, + "outputs": {} + }, + "narrative": "The Mainframe Translator. A server rack dedicated to formatting network commands. It requires inputs from both The Sector Amplifier and The Biometric Scanner to convert localized signals into mainframe instructions." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "850" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 982424157 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "835060533450" + } + ], + "narrative": "The Sector Amplifier. A large antenna array designed to boost local network signals. It requires inputs from both The Biometric Scanner and The Surveillance Mapper to function properly." + }, + { + "id": "checksum_crc32_a7c9", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "3a8e9a5d" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 982424157 + } + ], + "init": { + "inputs": { + "hex": "4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d" + }, + "outputs": {} + }, + "narrative": "The Biometric Scanner. A wall-mounted handprint reader that glow faintly in the dark." + }, + { + "id": "item_16_4777", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Master Override Chip. A small, sophisticated piece of hardware safely encased in a glass vial." + }, + { + "id": "calc_gcd_0d69", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "3847561029384756102938475" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "9182736450918273645091827" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "9" + } + ], + "init": { + "inputs": { + "a": "3847561029384756102938475", + "b": "9182736450918273645091827" + }, + "outputs": {} + }, + "narrative": "The Frequency Tuner. An old radio-like device used to pinpoint secure broadcast channels within the facility." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "customer_transactions_2023.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "transaction_id, customer_name, amount, status" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "amount > 1000 AND status = 'completed'" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"id\": \"TXN_001\", \"amount\": 1500}, {\"id\": \"TXN_002\", \"amount\": 2300}, {\"id\": \"TXN_003\", \"amount\": 1100}, {\"id\": \"TXN_004\", \"amount\": 4500}]" + } + ], + "init": { + "inputs": { + "file_id": "customer_transactions_2023.csv", + "select": "transaction_id, customer_name, amount, status", + "where": "amount > 1000 AND status = 'completed'" + }, + "outputs": { + "rows": "[{\"id\": \"TXN_001\", \"amount\": 1500}, {\"id\": \"TXN_002\", \"amount\": 2300}, {\"id\": \"TXN_003\", \"amount\": 1100}, {\"id\": \"TXN_004\", \"amount\": 4500}]" + } + }, + "narrative": "The Employee Database Archive. An isolated server terminal containing the remaining personnel records of the Blackwood Facility." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "logistics_network_map.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Warehouse_North_A" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Distribution_Center_Z" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Warehouse_North_A\", \"Transit_Hub_1\", \"Route_66_Checkpoint\", \"Cross_Dock_Facility\", \"Highway_Interchange_4\", \"Local_Depot_B\", \"Distribution_Center_Z\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "850" + } + ], + "init": { + "inputs": { + "file_id": "logistics_network_map.json", + "src": "Warehouse_North_A", + "dst": "Distribution_Center_Z" + }, + "outputs": { + "path": "[\"Warehouse_North_A\", \"Transit_Hub_1\", \"Route_66_Checkpoint\", \"Cross_Dock_Facility\", \"Highway_Interchange_4\", \"Local_Depot_B\", \"Distribution_Center_Z\"]", + "cost": "850" + } + }, + "narrative": "The Surveillance Mapper. An interactive digital map displaying the layout of the facility's security camera blind spots." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "7465839201746583920174658" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1029384756102938475610293" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation completed successfully; verification passed." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeef1234567890abcdef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "7465839201746583920174658", + "num2": "1029384756102938475610293" + }, + "outputs": { + "text_result": "Calculation completed successfully; verification passed.", + "hex_result": "deadbeef1234567890abcdef" + } + }, + "narrative": "The Reception Computer. A dusty, outdated terminal sitting on the front lobby desk." + } + ], + "edges": [ + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "exp" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "base" + }, + { + "source_id": "calc_modexp_0e62", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "item_16", + "target_id": "calc_inv_mod", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "hash_sha256", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "to_base" + }, + { + "source_id": "checksum_crc32_a7c9", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "item_16_4777", + "target_id": "calc_bigmul", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32_a7c9", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "s" + }, + { + "source_id": "calc_gcd_0d69", + "target_id": "calc_modexp_0e62", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "calc_gcd_0d69", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "csv_query", + "target_id": "hash_sha256", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "text" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_954a7e3c_narrative.json b/data/questions/15/narrative/skeleton_954a7e3c_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..18491d66c45e2f0ea6558ca3e9674ce50fe7dbe7 --- /dev/null +++ b/data/questions/15/narrative/skeleton_954a7e3c_narrative.json @@ -0,0 +1,809 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 16, + "win_node_id": "hash_sha256", + "win_condition": { + "type": "tool_output", + "node_id": "hash_sha256", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute SHA-256 Hasher and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "item_7", + "zip_unzip_item", + "terminal_2", + "calc_gcd", + "hmac_sha256", + "calc_bigmul", + "graph_shortest_path" + ], + "by_node": { + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "hex_key": { + "type": "Hex_String", + "description": "Hex key" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "def calculate_value():\n x = 100\n y = 200\n return x * y\nprint(calculate_value())" + } + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "secured_payload_v4.zip" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Process initialization sequence complete. Ready for input.", + "hex_result": "a1b2c3d4e5f6789012345678abcdef12" + } + }, + "calc_gcd": { + "init_inputs": { + "a": "837465192837465192837465" + }, + "init_outputs": {} + }, + "hmac_sha256": { + "init_inputs": { + "hex_key": "9f8e7d6c5b4a392817062534435261708192a3b4c5d6e7f8a9b0c1d2e3f4a5b6" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "102938475610293847561029", + "b": "593847561059384756105938" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_graph_data.json", + "src": "Server_Alpha_01", + "dst": "Gateway_Node_99" + }, + "init_outputs": { + "path": "[\"Server_Alpha_01\", \"Switch_Core_05\", \"Router_Backbone_02\", \"Gateway_Node_99\"]", + "cost": "452910" + } + } + }, + "intro_narrative": "Welcome to the Clockwork Sanctum, the abandoned workshop of the legendary inventor Archimedes Vance. Surrounded by hissing steam pipes, rotating brass gears, and the heavy smell of machine oil and ozone, you have been sent to retrieve his final masterpiece. The workshop is powered by an interconnected web of mechanical logic engines, high-pressure vaults, and aetheric synthesizers. To uncover the sanctum's ultimate secret and escape before the primary boiler pressure reaches critical mass, you must trace the pneumatic tubes connecting the devices and operate his inventions in the precise intended sequence. The Final Verification Engine holds the key to your exit, but it remains locked behind layers of analog cryptography and steam-powered computation. Explore the sprawling lab, deduce the flow of information, and complete Vance's unfinished masterpiece.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "20000\n" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "0be508172e87a2af98f344d18610bbaaa0e6bbfcef0c7804b24457f839e129c9" + } + ], + "narrative": "This is the Final Verification Engine. It requires input from the Analytical Engine to distill the ultimate signature and complete your mission." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def calculate_value():\n x = 100\n y = 200\n return x * y\nprint(calculate_value())" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "20000\n" + } + ], + "narrative": "This is the Analytical Engine. It requires input from the perforated logic-scroll to execute its complex mechanical routines." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A small, precisely machined brass cipher-key covered in intricate mathematical engravings." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "def calculate_value():\n x = 100\n y = 200\n return x * y\nprint(calculate_value())" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def calculate_value():\n x = 100\n y = 200\n return x * y\nprint(calculate_value())" + } + }, + "narrative": "A spool of stiff parchment known as the perforated logic-scroll, dotted with mechanical instructions." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A strange temporal chronometer that seems to tick backwards, housed in a heavy brass casing." + }, + { + "id": "item_16_d2b7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_3b4b9fbdab3b2881" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A delicately forged aetheric pocket-watch pulsing with a faint, rhythmic blue energy." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secured_payload_v4.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "\u00157,6x\u001f\u00056{\u001faՒ\u0016/" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "secured_payload_v4.zip" + }, + "outputs": {} + }, + "narrative": "This is the Pressure-Sealed Vault. It requires input from the Punch-Card Translator to release the heavy steam valves." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "3" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "452910" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Process initialization sequence complete. Ready for input." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f6789012345678abcdef12" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Process initialization sequence complete. Ready for input.", + "hex_result": "a1b2c3d4e5f6789012345678abcdef12" + } + }, + "narrative": "This is the Master Control Console. It requires inputs from both the Harmonic Calibrator and the Navigational Orrery to function properly." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "cc15372c36a9a0fa9dd3781feb05ea36bf7b831f8e618cbed592ad9f162ffee4" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "\u00157,6x\u001f\u00056{\u001faՒ\u0016/" + } + ], + "narrative": "This is the Punch-Card Translator. It requires input from the Steam-Powered Cryptograph to decode the mechanical perforations." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Process initialization sequence complete. Ready for input." + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_3b4b9fbdab3b2881" + } + ], + "narrative": "This is the Aetheric Forge. It requires input from the Master Control Console to shape raw aether into solid form." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "837465192837465192837465" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "61129762680343964135457217755185211896844290202" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3" + } + ], + "init": { + "inputs": { + "a": "837465192837465192837465" + }, + "outputs": {} + }, + "narrative": "This is the Harmonic Calibrator. It requires input from the brass Difference Engine to align its internal gear frequencies." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "9f8e7d6c5b4a392817062534435261708192a3b4c5d6e7f8a9b0c1d2e3f4a5b6" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Process initialization sequence complete. Ready for input." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "cc15372c36a9a0fa9dd3781feb05ea36bf7b831f8e618cbed592ad9f162ffee4" + } + ], + "init": { + "inputs": { + "hex_key": "9f8e7d6c5b4a392817062534435261708192a3b4c5d6e7f8a9b0c1d2e3f4a5b6" + }, + "outputs": {} + }, + "narrative": "This is the Steam-Powered Cryptograph. It requires input from the Master Control Console to stamp the cryptographic seal." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "102938475610293847561029" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "593847561059384756105938" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "61129762680343964135457217755185211896844290202" + } + ], + "init": { + "inputs": { + "a": "102938475610293847561029", + "b": "593847561059384756105938" + }, + "outputs": {} + }, + "narrative": "A massive brass Difference Engine with interlocking gears. It whirs quietly, waiting to be operated." + }, + { + "id": "item_8_2486", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A perfectly balanced golden master artisan's gear, heavy and unnaturally warm to the touch." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_graph_data.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Server_Alpha_01" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Gateway_Node_99" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Server_Alpha_01\", \"Switch_Core_05\", \"Router_Backbone_02\", \"Gateway_Node_99\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "452910" + } + ], + "init": { + "inputs": { + "file_id": "network_graph_data.json", + "src": "Server_Alpha_01", + "dst": "Gateway_Node_99" + }, + "outputs": { + "path": "[\"Server_Alpha_01\", \"Switch_Core_05\", \"Router_Backbone_02\", \"Gateway_Node_99\"]", + "cost": "452910" + } + }, + "narrative": "A spinning Navigational Orrery mapping the city's vast pneumatic tube network." + } + ], + "edges": [ + { + "source_id": "code_py_exec", + "target_id": "hash_sha256", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "text" + }, + { + "source_id": "item_8", + "target_id": "code_py_exec", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16_d2b7", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "zip_unzip_item", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "hex_decode", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "matter_synthesizer", + "target_id": "item_16_d2b7", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num1" + }, + { + "source_id": "terminal_2", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "blueprint" + }, + { + "source_id": "hmac_sha256", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "terminal_2", + "target_id": "hmac_sha256", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "item_8_2486", + "target_id": "terminal_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num2" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_99479deb_narrative.json b/data/questions/15/narrative/skeleton_99479deb_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..86701b1887208758f0383681df0571c1e670dad3 --- /dev/null +++ b/data/questions/15/narrative/skeleton_99479deb_narrative.json @@ -0,0 +1,995 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 26, + "win_node_id": "calc_inv_mod", + "win_condition": { + "type": "tool_output", + "node_id": "calc_inv_mod", + "output_port": "inv", + "output_type": "Big_Int", + "description": "Execute BigInt Modular Inverse and get the output from port 'inv'" + }, + "source_init": { + "source_nodes": [ + "num_base_convert_fae4", + "terminal_2", + "checksum_crc32", + "graph_shortest_path", + "calc_gcd_d0a4", + "num_base_convert_f03f", + "base64_encode", + "container_2" + ], + "by_node": { + "num_base_convert_fae4": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "calc_gcd_d0a4": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "num_base_convert_f03f": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "container_2": { + "node_name": "", + "node_type": "Item", + "template_id": "container_2", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "num_base_convert_fae4": { + "init_inputs": { + "from_base": "10", + "to_base": "10" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Initialization sequence complete. Standby for data stream.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "a1b2c3d4e5f67890123456789abcdef0" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "city_grid_v5.json", + "dst": "Sector_7G" + }, + "init_outputs": { + "path": "[\"HQ_Hub\", \"Relay_Alpha\", \"Junction_42\", \"Sector_7G\"]", + "cost": "34982" + } + }, + "calc_gcd_d0a4": { + "init_inputs": { + "a": "847261539402837465192837465019" + }, + "init_outputs": {} + }, + "num_base_convert_f03f": { + "init_inputs": { + "s": "592837461029384756102938475610", + "from_base": "10" + }, + "init_outputs": {} + }, + "base64_encode": { + "init_inputs": { + "hex": "cafebabedeadbeef0123456789abcdef" + }, + "init_outputs": {} + }, + "container_2": { + "init_inputs": { + "fingerprint_input": "ff00ee11dd22cc33bb44aa5599668877" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the dimly lit sub-basement of Blackwood Manor, the former workshop of a notoriously reclusive cryptographer who vanished decades ago. The heavy steel door behind you is hermetically sealed. Dominating the center of the room is a massive, menacing mechanical vault door, humming with a strange, latent energy. Scattered across the decaying workbenches are various cryptic machines, interconnected by a chaotic web of thick cables and glowing data lines. Your only hope of escape is to unravel this complex network of devices, restoring the flow of information to eventually power up the master override mechanism. Time is ticking, and the shadows in the corners of the room seem to grow longer by the minute.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "592837461029384756102938475610" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "34982" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "592837461029384756102938475610" + } + ], + "narrative": "The Master Override Switch. The final, imposing mechanism controlling the main vault door. It requires inputs from The Tertiary Decoder and The Final Decoder to secure your escape." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "592837461029384756102938475610" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": 2809552065 + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "34982" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "592837461029384756102938475610" + } + ], + "narrative": "The Tertiary Decoder. A sleek modern tablet connected to a mess of thick wires. It requires inputs from The Secondary Decoder, The Cryptographic Core, and The Digital Fingerprinter." + }, + { + "id": "num_base_convert_fae4", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "34982" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "34982" + } + ], + "init": { + "inputs": { + "from_base": "10", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The Final Decoder. A pristine quantum processing unit encased in glass. It requires input from The Map Analyzer." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "592837461029384756102938475610" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "291943375485759643570087127445" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Initialization sequence complete. Standby for data stream." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Initialization sequence complete. Standby for data stream.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "narrative": "The Mainframe Console. An imposing server rack with a single blinking green cursor. It requires inputs from The Power Amplifier and The Reversal Engine." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": 2809552065 + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "592837461029384756102938475610" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "592837461029384756102938475610" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "291943375485759643570087127445" + } + ], + "narrative": "The Power Amplifier. A massive, sparking capacitor bank. It requires inputs from The Reversal Engine, The Tertiary Decoder, and The Digital Fingerprinter." + }, + { + "id": "calc_inv_mod_d8fa", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "592837461029384756102938475610" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "592837461029384756102938475610" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "592837461029384756102938475610" + } + ], + "narrative": "The Reversal Engine. A complex set of counter-rotating gears and logic boards. It requires inputs from The Tertiary Decoder and The Primary Decoder." + }, + { + "id": "num_base_convert_3c02", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "592837461029384756102938475610" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 2809552065 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "592837461029384756102938475610" + } + ], + "narrative": "The Secondary Decoder. A modified wartime cipher machine. It requires inputs from The Digital Fingerprinter, The Signal Comparator, and The Primary Decoder." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "a1b2c3d4e5f67890123456789abcdef0" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "a7765cc1" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2809552065 + } + ], + "init": { + "inputs": { + "hex": "a1b2c3d4e5f67890123456789abcdef0" + }, + "outputs": {} + }, + "narrative": "The Digital Fingerprinter. A dusty biometric scanner that hums quietly with standby power." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "city_grid_v5.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "yv66vt6tvu8BI0VniavN7w==" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Sector_7G" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"HQ_Hub\", \"Relay_Alpha\", \"Junction_42\", \"Sector_7G\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "34982" + } + ], + "init": { + "inputs": { + "file_id": "city_grid_v5.json", + "dst": "Sector_7G" + }, + "outputs": { + "path": "[\"HQ_Hub\", \"Relay_Alpha\", \"Junction_42\", \"Sector_7G\"]", + "cost": "34982" + } + }, + "narrative": "The Map Analyzer. A glowing interactive cartography table. It requires input from The Symbol Translator." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 2809552065 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "34982" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "The Signal Comparator. A dual-screen oscilloscope. It requires inputs from The Cryptographic Core and The Digital Fingerprinter." + }, + { + "id": "calc_modexp_a542", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "34982" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 2809552065 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "34982" + } + ], + "narrative": "The Cryptographic Core. A pulsating crystal matrix. It requires inputs from The Digital Fingerprinter, The Resonance Tuner, and The Map Analyzer." + }, + { + "id": "calc_gcd_d0a4", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "847261539402837465192837465019" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "592837461029384756102938475610" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "847261539402837465192837465019" + }, + "outputs": {} + }, + "narrative": "The Resonance Tuner. An antique radio frequency modulator. It requires input from The Primary Decoder." + }, + { + "id": "num_base_convert_f03f", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "592837461029384756102938475610" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "34982" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "592837461029384756102938475610" + } + ], + "init": { + "inputs": { + "s": "592837461029384756102938475610", + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "The Primary Decoder. A heavy mechanical cipher wheel. It requires input from The Map Analyzer." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "cafebabedeadbeef0123456789abcdef" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "yv66vt6tvu8BI0VniavN7w==" + } + ], + "init": { + "inputs": { + "hex": "cafebabedeadbeef0123456789abcdef" + }, + "outputs": {} + }, + "narrative": "The Symbol Translator. An old brass typewriter retrofitted with a glowing digital screen." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "ff00ee11dd22cc33bb44aa5599668877" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "ff00ee11dd22cc33bb44aa5599668877" + }, + "outputs": {} + }, + "narrative": "The Lead-Lined Lockbox. A heavy, secure container sealed with an advanced electronic clasp." + } + ], + "edges": [ + { + "source_id": "num_base_convert", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "num_base_convert_fae4", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "terminal_2", + "target_id": "num_base_convert_fae4", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num2" + }, + { + "source_id": "calc_inv_mod_d8fa", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "calc_inv_mod_d8fa", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num1" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_inv_mod_d8fa", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "num_base_convert_3c02", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "s" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert_3c02", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert_fae4", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "s" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert_3c02", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "calc_modexp_a542", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "to_base" + }, + { + "source_id": "calc_modexp_a542", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_a542", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "base" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "from_base" + }, + { + "source_id": "calc_gcd_d0a4", + "target_id": "calc_modexp_a542", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "exp" + }, + { + "source_id": "num_base_convert_f03f", + "target_id": "num_base_convert_3c02", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "s" + }, + { + "source_id": "num_base_convert_f03f", + "target_id": "calc_gcd_d0a4", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp_a542", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "base" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "num_base_convert_f03f", + "target_id": "calc_inv_mod_d8fa", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert_f03f", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "to_base" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "src" + }, + { + "source_id": "container_2", + "target_id": "num_base_convert_3c02", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_a267e7bf_narrative.json b/data/questions/15/narrative/skeleton_a267e7bf_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..bca14ee87a7a019793fa3f8dab7488f88341c3df --- /dev/null +++ b/data/questions/15/narrative/skeleton_a267e7bf_narrative.json @@ -0,0 +1,897 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "zlib_deflate", + "win_condition": { + "type": "tool_output", + "node_id": "zlib_deflate", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute Zlib Deflate and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "csv_query", + "zip_unzip_file", + "zip_unzip_file_9f8b", + "regex_search", + "zip_unzip_file_b3a1", + "json_get", + "checksum_crc32", + "regex_search_b430", + "container_2" + ], + "by_node": { + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": {}, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_9f8b": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": {}, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "zip_unzip_file_b3a1": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "JSON file ID" + }, + "jsonpath": { + "type": "Text_Generic", + "description": "JSONPath expression" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "regex_search_b430": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "pattern": { + "type": "Text_Generic", + "description": "Regex pattern" + }, + "file_id": { + "type": "File_Id", + "description": "File ID (optional)" + }, + "text": { + "type": "Text_Generic", + "description": "Text (optional)" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "container_2": { + "node_name": "", + "node_type": "Item", + "template_id": "container_2", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "csv_query": { + "init_inputs": {}, + "init_outputs": { + "rows": "id,product,price\n101,Widget_A,25.50\n102,Widget_B,40.00\n103,Widget_C,15.75" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "inventory_data_sheet.csv" + } + }, + "zip_unzip_file_9f8b": { + "init_inputs": {}, + "init_outputs": { + "files": "secure_payload_v2.zip" + } + }, + "regex_search": { + "init_inputs": {}, + "init_outputs": { + "matches": "[\"S3cur3P@ssw0rd!\"]" + } + }, + "zip_unzip_file_b3a1": { + "init_inputs": { + "zip_id": "master_archive_2024.zip" + }, + "init_outputs": { + "files": "internal_docs_bundle.zip" + } + }, + "json_get": { + "init_inputs": { + "file_id": "app_config_production.json", + "jsonpath": "$.system.settings.export_path" + }, + "init_outputs": { + "values": "[\"/var/data/exports/2024/summary.txt\"]" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "4c6f72656d20697073756d20646f6c6f722073697420616d6574" + }, + "init_outputs": {} + }, + "regex_search_b430": { + "init_inputs": { + "pattern": "(?<=Error_Code:)\\d{4}", + "file_id": "system_error_logs.txt", + "text": "Timestamp: 2023-11-15 08:30:00 | Error_Code:4004 | Status: Critical" + }, + "init_outputs": { + "matches": "[\"4004\"]" + } + }, + "container_2": { + "init_inputs": { + "fingerprint_input": "a1b2c3d4e5f678901234567890abcdef1234567890abcdef1234567890abcdef" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You wake up in the dimly lit office of a disgraced private investigator who vanished weeks ago. Rain lashes against the frosted glass window, casting distorted shadows across a chaotic array of retro-tech machines and locked archives. The investigator was on the verge of uncovering a city-wide conspiracy, and now the culprits are coming for you. Your only way out is to piece together the evidence left behind, navigate the interconnected systems, and send out the final compressed distress signal before they breach the door. Time is running out.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "id,product,price\n101,Widget_A,25.50\n102,Widget_B,40.00\n103,Widget_C,15.75" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789ccb4cd12928ca4f294d2e01d299c9a95c8606863ae19929e9a925f18e3a46a67aa6064021239890938e89819e0148c81826e4ac6368aa676e0a0044011514" + } + ], + "narrative": "The Master Compressor. It requires input from the Suspect Database to generate the final transmission code and secure your escape." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "inventory_data_sheet.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "_)a" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "eJyLVtIvSyzST0ksSdRPrSjILyop1jcyMDLRLy7NzU0sqtQrqShRigUA/mINRA==" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "id,product,price\n101,Widget_A,25.50\n102,Widget_B,40.00\n103,Widget_C,15.75" + } + ], + "init": { + "inputs": {}, + "outputs": { + "rows": "id,product,price\n101,Widget_A,25.50\n102,Widget_B,40.00\n103,Widget_C,15.75" + } + }, + "narrative": "The precinct's Suspect Database terminal. It requires inputs from the Cipher Translator, the Signal Encoder, and the Main Evidence Archive to run a full background check." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "5f29d461" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "_)a" + } + ], + "narrative": "A dusty Cipher Translator. It requires input from the Integrity Scanner to function properly and reveal hidden meanings." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "789c8b56d22f4b2cd24f492c49d44fad28c82f2a29d637323032d12f2ecdcd4d2caad42ba928518a0500fe620d44" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "eJyLVtIvSyzST0ksSdRPrSjILyop1jcyMDLRLy7NzU0sqtQrqShRigUA/mINRA==" + } + ], + "narrative": "A retro Signal Encoder. It requires input from the Data Minimizer to broadcast the signal securely." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_payload_v2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "_)a" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "inventory_data_sheet.csv" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "inventory_data_sheet.csv" + } + }, + "narrative": "The Main Evidence Archive of the agency. It requires inputs from the Text Purifier and the Secondary Evidence Archive to grant access to the most crucial files." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "_)a" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "_)a" + } + ], + "narrative": "A specialized Text Purifier. It requires input from the Cipher Translator to clear out anomalies from the documents." + }, + { + "id": "zip_unzip_file_9f8b", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "internal_docs_bundle.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"S3cur3P@ssw0rd!\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "secure_payload_v2.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "secure_payload_v2.zip" + } + }, + "narrative": "A secure Secondary Evidence Archive. It requires inputs from the Pattern Analyzer and the Initial Evidence Archive to proceed." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An antique silver pocket watch resting on the detective's desk." + }, + { + "id": "zlib_deflate_ddfd", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "[\"/var/data/exports/2024/summary.txt\"]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c8b56d22f4b2cd24f492c49d44fad28c82f2a29d637323032d12f2ecdcd4d2caad42ba928518a0500fe620d44" + } + ], + "narrative": "An industrial Data Minimizer. It requires input from the Digital Ledger to condense the sprawling financial records." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "_)a" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "internal_docs_bundle.zip" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "[\"4004\"]" + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"S3cur3P@ssw0rd!\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "matches": "[\"S3cur3P@ssw0rd!\"]" + } + }, + "narrative": "An advanced Pattern Analyzer. It requires inputs from the Text Purifier, the Initial Evidence Archive, and the Document Scanner to compile a complete profile." + }, + { + "id": "zip_unzip_file_b3a1", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "master_archive_2024.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "_)a" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "internal_docs_bundle.zip" + } + ], + "init": { + "inputs": { + "zip_id": "master_archive_2024.zip" + }, + "outputs": { + "files": "internal_docs_bundle.zip" + } + }, + "narrative": "An encrypted Initial Evidence Archive. It requires input from the Cipher Translator to unlock its contents." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "app_config_production.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.system.settings.export_path" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"/var/data/exports/2024/summary.txt\"]" + } + ], + "init": { + "inputs": { + "file_id": "app_config_production.json", + "jsonpath": "$.system.settings.export_path" + }, + "outputs": { + "values": "[\"/var/data/exports/2024/summary.txt\"]" + } + }, + "narrative": "An old Digital Ledger abandoned on the desk, filled with cryptic transactions." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "4c6f72656d20697073756d20646f6c6f722073697420616d6574" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "5f29d461" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1596576865 + } + ], + "init": { + "inputs": { + "hex": "4c6f72656d20697073756d20646f6c6f722073697420616d6574" + }, + "outputs": {} + }, + "narrative": "A handheld Integrity Scanner used for verifying raw data integrity." + }, + { + "id": "regex_search_b430", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "(?<=Error_Code:)\\d{4}" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "system_error_logs.txt" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "Timestamp: 2023-11-15 08:30:00 | Error_Code:4004 | Status: Critical" + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"4004\"]" + } + ], + "init": { + "inputs": { + "pattern": "(?<=Error_Code:)\\d{4}", + "file_id": "system_error_logs.txt", + "text": "Timestamp: 2023-11-15 08:30:00 | Error_Code:4004 | Status: Critical" + }, + "outputs": { + "matches": "[\"4004\"]" + } + }, + "narrative": "A portable Document Scanner used for finding specific keywords in physical paperwork." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a1b2c3d4e5f678901234567890abcdef1234567890abcdef1234567890abcdef" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "a1b2c3d4e5f678901234567890abcdef1234567890abcdef1234567890abcdef" + }, + "outputs": {} + }, + "narrative": "A heavy Locked Briefcase with a biometric lock." + } + ], + "edges": [ + { + "source_id": "csv_query", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "text" + }, + { + "source_id": "hex_decode", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "select" + }, + { + "source_id": "base64_encode", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "where" + }, + { + "source_id": "zip_unzip_file", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_9f8b", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "hex_decode", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "item_16", + "target_id": "zip_unzip_file_9f8b", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zlib_deflate_ddfd", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "regex_search", + "target_id": "zip_unzip_file_9f8b", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "password" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "pattern" + }, + { + "source_id": "zip_unzip_file_b3a1", + "target_id": "regex_search", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "json_get", + "target_id": "zlib_deflate_ddfd", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "text" + }, + { + "source_id": "hex_decode", + "target_id": "zip_unzip_file_b3a1", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "checksum_crc32", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "zip_unzip_file_b3a1", + "target_id": "zip_unzip_file_9f8b", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "regex_search_b430", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "text" + }, + { + "source_id": "container_2", + "target_id": "regex_search_b430", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_a5f66c02_narrative.json b/data/questions/15/narrative/skeleton_a5f66c02_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..f106a9fe8e882793a0580b2ab079a83b2459f958 --- /dev/null +++ b/data/questions/15/narrative/skeleton_a5f66c02_narrative.json @@ -0,0 +1,700 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 15, + "win_node_id": "item_4", + "win_condition": { + "type": "item_content", + "node_id": "item_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_4", + "terminal_1", + "item_11", + "terminal_2", + "item_1" + ], + "by_node": { + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + } + } + }, + "initial_values": { + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "secure_payload_v1.zip" + } + }, + "terminal_1": { + "init_inputs": { + "slot_b": "8472910384756291038475" + }, + "init_outputs": { + "text_output": "Terminal 1 access granted. Waiting for further instructions.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def calculate_checksum(data):\n return sum(ord(c) for c in data) % 256\nprint('Checksum initialized')" + } + }, + "terminal_2": { + "init_inputs": { + "num2": "3748291056473829104657" + }, + "init_outputs": { + "text_result": "Calculation pending. Partial data received.", + "hex_result": "aa11bb22cc33dd44ee55ff6600778899" + } + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "9283746510293847561029" + } + } + }, + "intro_narrative": "You awaken in the humming heart of the 'Aetherius', a derelict sky-dreadnought suspended in the clouds. The air smells of ozone and heated brass. Around you, piston-driven machinery lies dormant, waiting for a spark of logic to resume its eternal rotation. Your escape pod is locked behind the Master Chronometer mechanism. To leave this floating tomb, you must decipher the engineer's legacy—a series of interlocking logic engines and puzzle boxes that guard the final launch codes. The steam pressure is rising; time is not on your side.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "secure_payload_v1.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "secure_payload_v1.zip" + } + }, + "narrative": "The Master Chronometer Key. The final component needed to activate the escape pod." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Core Housing. A small, intricately carved box made of ivory and gold." + }, + { + "id": "item_8_1a46", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Filament Cage. A delicate wire structure glowing with faint heat." + }, + { + "id": "item_8_1208", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Glass Insulator. A fragile barrier protecting the volatile core." + }, + { + "id": "item_8_3111", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Steel Tumbler. A rotating cylinder made of high-tensile steel." + }, + { + "id": "item_8_7961", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Copper Mesh. A conductive lattice wrapping around the inner mechanisms." + }, + { + "id": "item_8_f629", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Bronze Shielding. A plate of dull bronze that fits beneath the iron shell." + }, + { + "id": "item_8_bf0b", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Outer Casing. A rusted iron shell covered in rivets. It appears to be the first layer of a complex containment device." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Navigator's Sextant. Engraved on the side are coordinates and timezone adjustments used for celestial navigation." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Pneumatic Vault. A heavy reinforced locker sealed by a biometric scanner. It requires the verification hash from the Steam Distribution Monitor to disengage the locks." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Checksum initialized\n" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "8472910384756291038475" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal 1 access granted. Waiting for further instructions." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_b": "8472910384756291038475" + }, + "outputs": { + "text_output": "Terminal 1 access granted. Waiting for further instructions.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "narrative": "The Steam Distribution Monitor. A glowing cathode screen connected to the ship's main valves. It requires the output from The Automaton Brain to unlock the pressure systems." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def calculate_checksum(data):\n return sum(ord(c) for c in data) % 256\nprint('Checksum initialized')" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Checksum initialized\n" + } + ], + "narrative": "The Automaton Brain. A primitive computing core suspended in a vat of conductive gel. It requires the Perforated Logic Card to execute its programming." + }, + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def calculate_checksum(data):\n return sum(ord(c) for c in data) % 256\nprint('Checksum initialized')" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def calculate_checksum(data):\n return sum(ord(c) for c in data) % 256\nprint('Checksum initialized')" + } + }, + "narrative": "A Perforated Logic Card. The holes punched into this stiff cardboard represent a complex algorithm." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "9283746510293847561029" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "3748291056473829104657" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation pending. Partial data received." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "aa11bb22cc33dd44ee55ff6600778899" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num2": "3748291056473829104657" + }, + "outputs": { + "text_result": "Calculation pending. Partial data received.", + "hex_result": "aa11bb22cc33dd44ee55ff6600778899" + } + }, + "narrative": "The Difference Engine. A massive calculator of polished mahogany and clicking gears. It requires the value from the Brass Pressure Gauge to initialize its calculation sequence." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "9283746510293847561029" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "9283746510293847561029" + } + }, + "narrative": "A sealed Brass Pressure Gauge. The needle is frozen on a specific value, etched deeply into the glass face." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_1a46", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_1208", + "target_id": "item_8_1a46", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_3111", + "target_id": "item_8_1208", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_7961", + "target_id": "item_8_3111", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_f629", + "target_id": "item_8_7961", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_bf0b", + "target_id": "item_8_f629", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_bf0b", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "code_py_exec", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "slot_a" + }, + { + "source_id": "terminal_1", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_11", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "terminal_2", + "target_id": "item_11", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "item_1", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "num1" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_aa68ad8d_narrative.json b/data/questions/15/narrative/skeleton_aa68ad8d_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..3260a974a758222761cb1fb3fad7495572d58a6e --- /dev/null +++ b/data/questions/15/narrative/skeleton_aa68ad8d_narrative.json @@ -0,0 +1,909 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 20, + "win_node_id": "crypto_rsa_decrypt_hex", + "win_condition": { + "type": "tool_output", + "node_id": "crypto_rsa_decrypt_hex", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute RSA Decrypt and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "calc_modexp_8b2c", + "graph_shortest_path", + "terminal_1", + "calc_inv_mod", + "crypto_rsa_decrypt_hex_9273", + "zlib_deflate_a6f8", + "calc_gcd" + ], + "by_node": { + "calc_modexp_8b2c": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "crypto_rsa_decrypt_hex_9273": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "n": { + "type": "Big_Int", + "description": "Modulus n" + }, + "d": { + "type": "Big_Int", + "description": "Private exponent d" + } + }, + "init_outputs": {} + }, + "zlib_deflate_a6f8": { + "node_name": "Zlib Deflate", + "node_type": "Tool", + "template_id": "zlib_deflate", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to compress" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "calc_modexp_8b2c": { + "init_inputs": { + "base": "5" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "traffic_network_v4.json", + "dst": "Sector_7_North" + }, + "init_outputs": { + "path": "[\"Sector_1_Entry\", \"Hub_Alpha\", \"Corridor_9\", \"Sector_7_North\"]", + "cost": "3842" + } + }, + "terminal_1": { + "init_inputs": { + "slot_b": "9182736455102938475612" + }, + "init_outputs": { + "text_output": "System diagnostics completed. Waiting for user input.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "calc_inv_mod": { + "init_inputs": { + "mod": "104729" + }, + "init_outputs": {} + }, + "crypto_rsa_decrypt_hex_9273": { + "init_inputs": { + "n": "837192837465019283746501928374", + "d": "192837465019283746501928374651" + }, + "init_outputs": {} + }, + "zlib_deflate_a6f8": { + "init_inputs": { + "text": "Initializing compression stream with standard test vector data." + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "293847561029384756102938475610", + "b": "564738291056473829105647382910" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the 'Black Box,' a secure data haven designed by the renegade cryptographer known only as 'The Architect.' The heavy steel door is sealed tight, governed by a complex algorithm that changes every hour. The room is filled with humming server racks, vintage terminals, and scattered notes. The Architect has left a trail of digital breadcrumbs—a sequence of mathematical operations that, if performed correctly, will generate the unlock code for the exit. You must navigate the data flow, manipulating the signals through the various workstations to derive the final key.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "789c73cf2cb60809332d4bcd2f4d76093229f3cf2e494e0ab4b50500698b085b" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "49523" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "0" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0001" + } + ], + "narrative": "This is the Master Vault Lock controlling the exit door. It requires three distinct inputs to release the mechanism: the private exponent from the Key Generator, the compressed cipher from the Archive Compressor, and the modulus n from the Inversion Engine." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "5218487235521848723552184872350" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 552752160 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "193277305" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "0" + } + ], + "narrative": "The Key Generator is a high-power calculation unit. To synthesize the correct private key, it requires data inputs from the Mainframe Processor, the Signal Multiplier, and the Integrity Checker." + }, + { + "id": "calc_modexp_8b2c", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "5" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "3842" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 552752160 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "193277305" + } + ], + "init": { + "inputs": { + "base": "5" + }, + "outputs": {} + }, + "narrative": "The Mainframe Processor sits at the heart of the room's server rack. It computes the core system values but requires input data from both the Network Map Console and the Integrity Checker to function." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "193277305" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "27000000002700000000270" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "5218487235521848723552184872350" + } + ], + "narrative": "The Signal Multiplier is a massive amplifier for combining large data streams. It requires inputs from the Mainframe Processor and the Common Factor Analyzer to produce its output." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "Gis8TV5veoucDR4vOktcbQ==" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c73cf2cb60809332d4bcd2f4d76093229f3cf2e494e0ab4b50500698b085b" + } + ], + "narrative": "The Archive Compressor is a backup utility running on a side monitor. It requires a text string input from the Encoder Unit to create the necessary file format." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "traffic_network_v4.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Gis8TV5veoucDR4vOktcbQ==" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Sector_7_North" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Sector_1_Entry\", \"Hub_Alpha\", \"Corridor_9\", \"Sector_7_North\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "3842" + } + ], + "init": { + "inputs": { + "file_id": "traffic_network_v4.json", + "dst": "Sector_7_North" + }, + "outputs": { + "path": "[\"Sector_1_Entry\", \"Hub_Alpha\", \"Corridor_9\", \"Sector_7_North\"]", + "cost": "3842" + } + }, + "narrative": "The Network Map Console displays a complex web of server nodes. To trace the correct route, it requires the coordinate data input from the Encoder Unit." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "\u0005\u0002\u0012oϋfK\r:" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "9182736455102938475612" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System diagnostics completed. Waiting for user input." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_b": "9182736455102938475612" + }, + "outputs": { + "text_output": "System diagnostics completed. Waiting for user input.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "narrative": "The Access Terminal is an old green-screen computer acting as a gatekeeper. It requires the plaintext password recovered by the Secondary Decryptor to grant access to the system internals." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A plastic Timezone Card dispensed by the terminal. It contains specific time offset data." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "193277305" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "49523" + } + ], + "init": { + "inputs": { + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "The Inversion Engine is a specialized mathematical coprocessor. It requires the base value derived from the Mainframe Processor to calculate the modular inverse." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "789c0dc6c10980400c04c05652817d5846b88473c14b245914ac5ee7357b80d0132f62cac875957723439ae5bae4018fff1aa665426fcaed8359624add3e16cb1832" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "20f25420" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 552752160 + } + ], + "narrative": "The Integrity Checker verifies data consistency. It requires the raw hex data input from the Compression Utility to generate the valid checksum." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "Gis8TV5veoucDR4vOktcbQ==" + } + ], + "narrative": "The Encoder Unit is a text transformation tool. It requires the hexadecimal output from the Access Terminal to convert it into a readable string format." + }, + { + "id": "crypto_rsa_decrypt_hex_9273", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "20f25420" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "837192837465019283746501928374" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "192837465019283746501928374651" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0005\u0002\u0012oϋfK\r:" + } + ], + "init": { + "inputs": { + "n": "837192837465019283746501928374", + "d": "192837465019283746501928374651" + }, + "outputs": {} + }, + "narrative": "The Secondary Decryptor is a standalone laptop with a lock screen. It requires the verification hash from the Integrity Checker to unlock the hidden files." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An Integer Chip containing a hardcoded numerical value, found within the secure files." + }, + { + "id": "zlib_deflate_a6f8", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "Initializing compression stream with standard test vector data." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c0dc6c10980400c04c05652817d5846b88473c14b245914ac5ee7357b80d0132f62cac875957723439ae5bae4018fff1aa665426fcaed8359624add3e16cb1832" + } + ], + "init": { + "inputs": { + "text": "Initializing compression stream with standard test vector data." + }, + "outputs": {} + }, + "narrative": "The Compression Utility is a simple tool available on a tablet, ready to compress any text you provide into a data stream." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "293847561029384756102938475610" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "564738291056473829105647382910" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "27000000002700000000270" + } + ], + "init": { + "inputs": { + "a": "293847561029384756102938475610", + "b": "564738291056473829105647382910" + }, + "outputs": {} + }, + "narrative": "The Common Factor Analyzer is a specialized calculator sitting on the desk, designed to find the greatest common divisor of two numbers." + } + ], + "edges": [ + { + "source_id": "calc_modexp", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "d" + }, + { + "source_id": "calc_modexp_8b2c", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "base" + }, + { + "source_id": "zlib_deflate", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp_8b2c", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "exp" + }, + { + "source_id": "terminal_1", + "target_id": "calc_modexp_8b2c", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "item_16", + "target_id": "calc_bigmul", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_inv_mod", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "n" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_8b2c", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "calc_modexp_8b2c", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "src" + }, + { + "source_id": "crypto_rsa_decrypt_hex_9273", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "slot_a" + }, + { + "source_id": "checksum_crc32", + "target_id": "crypto_rsa_decrypt_hex_9273", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "base64_encode", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "text" + }, + { + "source_id": "calc_modexp_8b2c", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "item_8", + "target_id": "crypto_rsa_decrypt_hex_9273", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zlib_deflate_a6f8", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "terminal_1", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_b45b9e21_narrative.json b/data/questions/15/narrative/skeleton_b45b9e21_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..7b2be66a90f2d1499169ed60726f6f1c737d1ce7 --- /dev/null +++ b/data/questions/15/narrative/skeleton_b45b9e21_narrative.json @@ -0,0 +1,825 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "terminal_1", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_1", + "output_port": "text_output", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_output'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "checksum_crc32_2a04", + "terminal_2", + "terminal_2_a1f1", + "item_1" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "checksum_crc32_2a04": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "terminal_2_a1f1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "{7c9e8b3a-1f4d-4a2e-9c6b-8e5f7d3a2c1b}", + "hex_output": "e4d2c1b0a9f8e7d6c5b4a39281706f5e", + "item_dispenser": "a7f3e9c2d4b8f1e6a9c3d5f7b2e4a8c1" + } + }, + "checksum_crc32_2a04": { + "init_inputs": { + "hex": "af0123456789abcdef0123456789abcd" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Interim processing results: sequence parity verified, waiting for bitshift.", + "hex_result": "7890abcdef1234567890abcdef123456", + "math_token": "A small plastic coin that says 'I survived the terminal' on it." + } + }, + "terminal_2_a1f1": { + "init_inputs": { + "num1": "847295103847562019384756201938475620", + "num2": "102938475610293847561029384756102938" + }, + "init_outputs": { + "text_result": "Total system synchronization achieved through recursive bigint validation.", + "hex_result": "abcdef1234567890abcdef1234567890", + "math_token": "A digital dust bunny collected from the buffer of a large calculation." + } + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "918273645091827364509182736450918273" + } + } + }, + "intro_narrative": "You awaken aboard the derelict Space Station Alpha. Red emergency lights bathe the metallic corridors in an eerie glow, casting long shadows across the walls. The central AI system has locked down the main airlock, and life support systems are rapidly failing. To escape this orbital grave, you must traverse the station's interconnected network of cryptic terminals, abandoned biometric safes, and complex mathematical optimizers. Follow the fragmented data trails left by the former crew, restore power to the consoles, and deduce the correct sequence of inputs to override the final mainframe before the oxygen runs out completely.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Total system synchronization achieved through recursive bigint validation." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "3887832023" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "{7c9e8b3a-1f4d-4a2e-9c6b-8e5f7d3a2c1b}" + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "e4d2c1b0a9f8e7d6c5b4a39281706f5e" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "a7f3e9c2d4b8f1e6a9c3d5f7b2e4a8c1" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "{7c9e8b3a-1f4d-4a2e-9c6b-8e5f7d3a2c1b}", + "hex_output": "e4d2c1b0a9f8e7d6c5b4a39281706f5e", + "item_dispenser": "a7f3e9c2d4b8f1e6a9c3d5f7b2e4a8c1" + } + }, + "narrative": "The Main Mainframe. It requires inputs from both the Primary Optimizer and the Override Console to completely unlock the station's airlock." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "3887832023" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "2732817506998017190" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3887832023" + } + ], + "narrative": "The Primary Optimizer. It requires inputs from both the Quantum Multiplier and the Secondary Optimizer to synthesize the final core signal." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": 702915530 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 3887832023 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "2732817506998017190" + } + ], + "narrative": "The Quantum Multiplier. It requires inputs from both the Alpha Validator and the Gamma Validator to compute the expanded data matrix." + }, + { + "id": "calc_gcd_a894", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 3887832023 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "2732817506998017190" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3887832023" + } + ], + "narrative": "The Secondary Optimizer. It requires inputs from both the Quantum Multiplier and the Alpha Validator to refine the algorithmic sequence." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "7890abcdef1234567890abcdef123456" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "e7bb9bd7" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3887832023 + } + ], + "narrative": "The Alpha Validator. It requires input from the Diagnostic Console to process the datastream and verify integrity." + }, + { + "id": "checksum_crc32_71fe", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "e7bb9bd7" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "29e5a3ca" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 702915530 + } + ], + "narrative": "The Gamma Validator. It requires input from the Alpha Validator to proceed with advanced sequence checking." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": 3288739155 + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Biometric Safe. It requires input from the Beta Validator to release its locking mechanism." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A polished Data Chip C containing fragmented archives." + }, + { + "id": "checksum_crc32_2a04", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "af0123456789abcdef0123456789abcd" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "c4062d53" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3288739155 + } + ], + "init": { + "inputs": { + "hex": "af0123456789abcdef0123456789abcd" + }, + "outputs": {} + }, + "narrative": "The Beta Validator. A standalone diagnostic tool used to generate secure hash codes." + }, + { + "id": "item_8_fd74", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A dusty Data Chip A left behind by the previous engineering crew." + }, + { + "id": "item_8_b439", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavily encrypted Data Chip B with glowing circuitry." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A compact Chrono Module vibrating slightly with temporal energy." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 3288739155 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "918273645091827364509182736450918273" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Interim processing results: sequence parity verified, waiting for bitshift." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "7890abcdef1234567890abcdef123456" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "A small plastic coin that says 'I survived the terminal' on it." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Interim processing results: sequence parity verified, waiting for bitshift.", + "hex_result": "7890abcdef1234567890abcdef123456", + "math_token": "A small plastic coin that says 'I survived the terminal' on it." + } + }, + "narrative": "The Diagnostic Console. It requires inputs from both the Beta Validator and the Power Core to initialize the system analysis." + }, + { + "id": "terminal_2_a1f1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "847295103847562019384756201938475620" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "102938475610293847561029384756102938" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Total system synchronization achieved through recursive bigint validation." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "abcdef1234567890abcdef1234567890" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "A digital dust bunny collected from the buffer of a large calculation." + } + ], + "init": { + "inputs": { + "num1": "847295103847562019384756201938475620", + "num2": "102938475610293847561029384756102938" + }, + "outputs": { + "text_result": "Total system synchronization achieved through recursive bigint validation.", + "hex_result": "abcdef1234567890abcdef1234567890", + "math_token": "A digital dust bunny collected from the buffer of a large calculation." + } + }, + "narrative": "The Override Console. A dusty backup terminal waiting for manual input." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "918273645091827364509182736450918273" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "918273645091827364509182736450918273" + } + }, + "narrative": "A glowing Power Core humming with residual energy." + } + ], + "edges": [ + { + "source_id": "calc_gcd", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "slot_b" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "calc_gcd_a894", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd_a894", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd_a894", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32_71fe", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "container_3", + "target_id": "checksum_crc32_71fe", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "item_8", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32_2a04", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8_fd74", + "target_id": "checksum_crc32_2a04", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_8_b439", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_b439", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex" + }, + { + "source_id": "checksum_crc32", + "target_id": "checksum_crc32_71fe", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "checksum_crc32_2a04", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + }, + { + "source_id": "terminal_2_a1f1", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "slot_a" + }, + { + "source_id": "item_1", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "num2" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_b79ed8ec_narrative.json b/data/questions/15/narrative/skeleton_b79ed8ec_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..502e655eeee7ccd91c7ec5de2f8d05f44cb9b94f --- /dev/null +++ b/data/questions/15/narrative/skeleton_b79ed8ec_narrative.json @@ -0,0 +1,937 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 19, + "win_node_id": "item_5", + "win_condition": { + "type": "item_content", + "node_id": "item_5", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_5", + "terminal_1", + "checksum_crc32", + "text_rotN", + "graph_shortest_path", + "terminal_2", + "num_base_convert", + "text_rotN_c4a2", + "item_2" + ], + "by_node": { + "item_5": { + "node_name": "", + "node_type": "Item", + "template_id": "item_5", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "text_rotN_c4a2": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "item_2": { + "node_name": "", + "node_type": "Item", + "template_id": "item_2", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Text_Generic", + "description": "The text" + } + } + } + } + }, + "initial_values": { + "item_5": { + "init_inputs": {}, + "init_outputs": { + "content": "8f3a2b1c9d4e5f60718293a4b5c6d7e8f90123456789abcdef0123456789abcd" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Initialization sequence alpha completed successfully.", + "hex_output": "1a2b3c4d5e6f7080" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeef12345678" + }, + "init_outputs": {} + }, + "text_rotN": { + "init_inputs": { + "text": "The quick brown fox jumps over the lazy dog" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_topology_v3.json" + }, + "init_outputs": { + "path": "[\"Server_A\", \"Switch_1\", \"Router_X\", \"Gateway_9\", \"Client_Z\"]", + "cost": "4528" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "83746251920384756102" + }, + "init_outputs": { + "text_result": "Calculation pending verification from upstream nodes.", + "hex_result": "aabbccddeeff0011" + } + }, + "num_base_convert": { + "init_inputs": { + "s": "91827364509182736450", + "from_base": "16", + "to_base": "10" + }, + "init_outputs": {} + }, + "text_rotN_c4a2": { + "init_inputs": { + "text": "Secret message awaiting rotation transformation" + }, + "init_outputs": {} + }, + "item_2": { + "init_inputs": {}, + "init_outputs": { + "content": "NFC" + } + } + }, + "intro_narrative": "You have infiltrated the abandoned sanctum of Archmage Velryn, a legendary sorcerer who sealed his greatest creation away centuries ago. The chamber is a dizzying array of magical apparatuses, cryptic scrolls, and arcane machinery humming with dormant power. Your ultimate goal is to navigate this complex web of enchanting devices and obtain the content of the sealed artifact, rumored to hold the secret of eternal mana. To succeed, you must understand how magical energies flow between the various instruments in the room. Be wary, for every tool, crystal, and relic is connected in a delicate, unseen magical ecosystem that must be perfectly balanced.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "item_5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "8f3a2b1c9d4e5f60718293a4b5c6d7e8f90123456789abcdef0123456789abcd" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "8f3a2b1c9d4e5f60718293a4b5c6d7e8f90123456789abcdef0123456789abcd" + } + }, + "narrative": "The sealed artifact of ultimate power. It radiates an ancient, undeniable magic that calls to you." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A mysterious glowing geode humming with trapped magical essence." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A dusty hourglass filled with sparkling, enchanted sand." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "False" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 2982214246 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Initialization sequence alpha completed successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1a2b3c4d5e6f7080" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Initialization sequence alpha completed successfully.", + "hex_output": "1a2b3c4d5e6f7080" + } + }, + "narrative": "The spellweaving altar. It requires inputs from both the rune verifier and the celestial astrolabe to channel its magic." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeef12345678" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "b1c0fa66" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2982214246 + } + ], + "init": { + "inputs": { + "hex": "deadbeef12345678" + }, + "outputs": {} + }, + "narrative": "A mystical rune verifier. It analyzes the purity of magical frequencies." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "Xli uymgo fvsar jsb nyqtw sziv xli pedc hsk" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "A celestial astrolabe. It processes data from the star-shift decoder to align cosmic coordinates." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "The quick brown fox jumps over the lazy dog" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "4528" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Xli uymgo fvsar jsb nyqtw sziv xli pedc hsk" + } + ], + "init": { + "inputs": { + "text": "The quick brown fox jumps over the lazy dog" + }, + "outputs": {} + }, + "narrative": "A star-shift decoder. It needs the result from the harmony scales to unlock celestial patterns." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "4528" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "4528" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "4528" + } + ], + "narrative": "The harmony scales. It requires inputs from both the leyline map and the elemental transmuter." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_v3.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Qcapcr kcqqyec yuygrgle pmryrgml rpylqdmpkyrgml" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Calculation pending verification from upstream nodes." + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Server_A\", \"Switch_1\", \"Router_X\", \"Gateway_9\", \"Client_Z\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "4528" + } + ], + "init": { + "inputs": { + "file_id": "network_topology_v3.json" + }, + "outputs": { + "path": "[\"Server_A\", \"Switch_1\", \"Router_X\", \"Gateway_9\", \"Client_Z\"]", + "cost": "4528" + } + }, + "narrative": "A magical leyline map. It requires inputs from the true-name crystal and the moon-shift cipher." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Calculation pending verification from upstream nodes." + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "Calculation pending verification from upstream nodes." + } + ], + "narrative": "A true-name crystal. It processes data from the archmage's lectern and the torn parchment." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "83746251920384756102" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "687149531605078719554640" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation pending verification from upstream nodes." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "aabbccddeeff0011" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "83746251920384756102" + }, + "outputs": { + "text_result": "Calculation pending verification from upstream nodes.", + "hex_result": "aabbccddeeff0011" + } + }, + "narrative": "The archmage's lectern. It requires input from the base alchemist's crucible to function." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "91827364509182736450" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "687149531605078719554640" + } + ], + "init": { + "inputs": { + "s": "91827364509182736450", + "from_base": "16", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The base alchemist's crucible. It transforms raw arcane energies into stable magical formats." + }, + { + "id": "num_base_convert_7803", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "4528" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": 2982214246 + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "687149531605078719554640" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "4528" + } + ], + "narrative": "An elemental transmuter. It requires inputs from the rune verifier, the leyline map, and the base alchemist's crucible." + }, + { + "id": "text_rotN_c4a2", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Secret message awaiting rotation transformation" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": 2982214246 + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Qcapcr kcqqyec yuygrgle pmryrgml rpylqdmpkyrgml" + } + ], + "init": { + "inputs": { + "text": "Secret message awaiting rotation transformation" + }, + "outputs": {} + }, + "narrative": "A moon-shift cipher. It processes data from the rune verifier to translate lunar phases." + }, + { + "id": "item_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Text_Generic", + "description": "The text", + "value": "NFC" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "NFC" + } + }, + "narrative": "A torn piece of ancient parchment covered in faded magical script." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "iban_validate", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "slot_a" + }, + { + "source_id": "text_rotN", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "iban" + }, + { + "source_id": "calc_gcd", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "n" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "unicode_norm", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + }, + { + "source_id": "terminal_2", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "terminal_2", + "target_id": "checksum_crc32", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "num_base_convert_7803", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert_7803", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "from_base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert_7803", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "s" + }, + { + "source_id": "text_rotN_c4a2", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "num_base_convert", + "target_id": "num_base_convert_7803", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "to_base" + }, + { + "source_id": "checksum_crc32", + "target_id": "text_rotN_c4a2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "n" + }, + { + "source_id": "item_2", + "target_id": "unicode_norm", + "connection_type": "Text_Generic", + "source_port": "content", + "target_port": "form" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_bb9b5a90_narrative.json b/data/questions/15/narrative/skeleton_bb9b5a90_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..994bad353db693bf9cc081b00139a2f26a0c48af --- /dev/null +++ b/data/questions/15/narrative/skeleton_bb9b5a90_narrative.json @@ -0,0 +1,906 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "checksum_crc32", + "win_condition": { + "type": "tool_output", + "node_id": "checksum_crc32", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute CRC32 Checksum and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "graph_shortest_path", + "zip_unzip_file", + "zip_unzip_item", + "terminal_2", + "zip_unzip_file_9552", + "checksum_crc32_91b5", + "text_rotN" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "zip_unzip_file_9552": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "checksum_crc32_91b5": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "n": { + "type": "Big_Int", + "description": "Shift N" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Initialization sequence complete. Terminal active.", + "hex_output": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", + "item_dispenser": "Standard access token item" + } + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"start_node\", \"alpha_junction\", \"beta_waypoint\", \"gamma_hub\", \"target_dest\"]", + "cost": "48291038475629384756" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "mission_logs_archive.zip" + }, + "init_outputs": { + "files": "network_graph_data.json" + } + }, + "zip_unzip_item": { + "init_inputs": { + "password": "CorrectHorseBatteryStaple" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num2": "91827364509182736450" + }, + "init_outputs": { + "text_result": "U2VjcmV0UGF5bG9hZEZvckRlY29kaW5n", + "hex_result": "1234567890abcdef1234567890abcdef", + "math_token": "Calculated value token" + } + }, + "zip_unzip_file_9552": { + "init_inputs": { + "password": "HiddenLayerPass_99" + }, + "init_outputs": { + "files": "internal_package.zip" + } + }, + "checksum_crc32_91b5": { + "init_inputs": { + "hex": "deadbeefcafebabe1122334455667788" + }, + "init_outputs": {} + }, + "text_rotN": { + "init_inputs": { + "text": "The quick brown fox jumps over the lazy dog", + "n": "10000000000000000013" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are an apprentice mechanist trapped in the legendary subterranean workshop of the eccentric inventor, Dr. Thaddeus Gearwright. The main boiler is rapidly overheating, and the blast doors have sealed shut. The air is thick with hissing steam, the smell of ozone, and the relentless clacking of brass gears. To prevent a catastrophic explosion and escape the facility, you must navigate a complex series of interconnected pneumatic devices and steam-powered analytical engines. Use logical deduction to restore the workshop's balance before the pressure gauge reaches the critical redline.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "02a888a2ce9ad52e74e2bef8375b71c1d71b3bf7609fb3eb8a59ced67c05ca22" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "9441be83" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2487336579 + } + ], + "narrative": "This is the Brass Chronometer. It requires input from the Steam-Powered Compressor. Activate this to finally stabilize the workshop and escape." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Initialization sequence complete. Terminal active." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "02a888a2ce9ad52e74e2bef8375b71c1d71b3bf7609fb3eb8a59ced67c05ca22" + } + ], + "narrative": "This is the Steam-Powered Compressor. It requires input from the Main Cogwheel Terminal to compress the aether." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Qeb nrfzh yoltk clu grjmp lsbo qeb ixwv ald" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "48291038475629384756" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Initialization sequence complete. Terminal active." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard access token item" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Initialization sequence complete. Terminal active.", + "hex_output": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4", + "item_dispenser": "Standard access token item" + } + }, + "narrative": "This is the Main Cogwheel Terminal. It requires inputs from both the Navigational Astrolabe and the Brass Cipher Wheel to activate." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_graph_data.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "U2VjcmV0UGF5bG9hZEZvckRlY29kaW5n" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "odaq1Q==" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"start_node\", \"alpha_junction\", \"beta_waypoint\", \"gamma_hub\", \"target_dest\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "48291038475629384756" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"start_node\", \"alpha_junction\", \"beta_waypoint\", \"gamma_hub\", \"target_dest\"]", + "cost": "48291038475629384756" + } + }, + "narrative": "This is the Navigational Astrolabe. It requires inputs from the Copper Pressure Cylinder, the Gearwork Translator, and the Auxiliary Valve Station." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "mission_logs_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "odaq1Q==" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "network_graph_data.json" + } + ], + "init": { + "inputs": { + "zip_id": "mission_logs_archive.zip" + }, + "outputs": { + "files": "network_graph_data.json" + } + }, + "narrative": "This is a Copper Pressure Cylinder. It requires input from the Gearwork Translator to release its mechanical seal." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "a1d6aad5" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "odaq1Q==" + } + ], + "narrative": "This is a Gearwork Translator. It requires input from the Aether Resonance Chamber to begin processing." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A small, intricately carved Hidden Compartment Key." + }, + { + "id": "checksum_crc32_97eb", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "5365637265745061796c6f6164466f724465636f64696e67" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "a1d6aad5" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2715200213 + } + ], + "narrative": "This is the Aether Resonance Chamber. It requires input from the Phonograph Decoder to stabilize its energy." + }, + { + "id": "base64_decode", + "name": "Base64 Decoder", + "description": "Decode base64 to hex bytes.", + "type": "Tool", + "template_id": "base64_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "data", + "type": "Text_Generic", + "description": "Base64 string", + "value": "U2VjcmV0UGF5bG9hZEZvckRlY29kaW5n" + } + ], + "outputs": [ + { + "name": "bytes_hex", + "type": "Hex_String", + "description": "Decoded bytes as Hex", + "value": "5365637265745061796c6f6164466f724465636f64696e67" + } + ], + "narrative": "This is a Phonograph Decoder. It requires input from the Auxiliary Valve Station to translate the audio signals." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "internal_package.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "CorrectHorseBatteryStaple" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "password": "CorrectHorseBatteryStaple" + }, + "outputs": {} + }, + "narrative": "This is an Iron Lockbox. It requires input from the Secondary Steam Vault to reveal what is hidden inside." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 2221453986 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "91827364509182736450" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "U2VjcmV0UGF5bG9hZEZvckRlY29kaW5n" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1234567890abcdef1234567890abcdef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Calculated value token" + } + ], + "init": { + "inputs": { + "num2": "91827364509182736450" + }, + "outputs": { + "text_result": "U2VjcmV0UGF5bG9hZEZvckRlY29kaW5n", + "hex_result": "1234567890abcdef1234567890abcdef", + "math_token": "Calculated value token" + } + }, + "narrative": "This is the Auxiliary Valve Station. It requires input from the Pneumatic Calibrator to function properly." + }, + { + "id": "zip_unzip_file_9552", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "network_graph_data.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "HiddenLayerPass_99" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "internal_package.zip" + } + ], + "init": { + "inputs": { + "password": "HiddenLayerPass_99" + }, + "outputs": { + "files": "internal_package.zip" + } + }, + "narrative": "This is a Secondary Steam Vault. It requires input from the Copper Pressure Cylinder to unlock its heavy doors." + }, + { + "id": "checksum_crc32_91b5", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeefcafebabe1122334455667788" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "8468b2a2" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2221453986 + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafebabe1122334455667788" + }, + "outputs": {} + }, + "narrative": "A delicate Pneumatic Calibrator used to measure anomalous steam pressure within the pipes." + }, + { + "id": "item_16_907f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An old ticking Rusty Pocket Watch covered in soot and grease." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "The quick brown fox jumps over the lazy dog" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "10000000000000000013" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Qeb nrfzh yoltk clu grjmp lsbo qeb ixwv ald" + } + ], + "init": { + "inputs": { + "text": "The quick brown fox jumps over the lazy dog", + "n": "10000000000000000013" + }, + "outputs": {} + }, + "narrative": "A complex rotating Brass Cipher Wheel covered in faded letters and Roman numerals." + } + ], + "edges": [ + { + "source_id": "hash_sha256", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "terminal_1", + "target_id": "hash_sha256", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "text" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "base64_encode", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "password" + }, + { + "source_id": "item_16", + "target_id": "terminal_1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "dst" + }, + { + "source_id": "checksum_crc32_97eb", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "base64_decode", + "target_id": "checksum_crc32_97eb", + "connection_type": "Hex_String", + "source_port": "bytes_hex", + "target_port": "hex" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "src" + }, + { + "source_id": "zip_unzip_file_9552", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file", + "target_id": "zip_unzip_file_9552", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "terminal_2", + "target_id": "base64_decode", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "data" + }, + { + "source_id": "checksum_crc32_91b5", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + }, + { + "source_id": "item_16_907f", + "target_id": "checksum_crc32_91b5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "text_rotN", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "slot_a" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_bce77c44_narrative.json b/data/questions/15/narrative/skeleton_bce77c44_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..1ce2f8ccfa97563811814e9f539f9eed8aa1ab03 --- /dev/null +++ b/data/questions/15/narrative/skeleton_bce77c44_narrative.json @@ -0,0 +1,997 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 19, + "win_node_id": "text_rotN", + "win_condition": { + "type": "tool_output", + "node_id": "text_rotN", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute ROT-N Cipher and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "graph_shortest_path_e3d6", + "zip_unzip_file", + "hex_decode", + "zip_unzip_file_728d", + "zip_unzip_file_3efd", + "zip_unzip_file_7bb0", + "base64_decode", + "terminal_1", + "terminal_1_ff4b" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "graph_shortest_path_e3d6": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "hex_decode": { + "node_name": "Hex to Text Decoder", + "node_type": "Tool", + "template_id": "hex_decode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex string" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_728d": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_3efd": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_7bb0": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "base64_decode": { + "node_name": "Base64 Decoder", + "node_type": "Tool", + "template_id": "base64_decode", + "init_inputs": { + "data": { + "type": "Text_Generic", + "description": "Base64 string" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "terminal_1_ff4b": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\"]", + "cost": "82736451928374651029" + } + }, + "graph_shortest_path_e3d6": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Gateway\", \"Router_1\", \"Switch_Core\", \"Firewall_Ext\", \"Load_Balancer\", \"Server_Main\"]", + "cost": "19283746556473829102" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "payload_config.json" + } + }, + "hex_decode": { + "init_inputs": { + "hex": "48656c6c6f20576f726c64212054686973206973206120746573742e" + }, + "init_outputs": {} + }, + "zip_unzip_file_728d": { + "init_inputs": { + "password": "SecurePassword!2024" + }, + "init_outputs": { + "files": "hidden_manifest.xml" + } + }, + "zip_unzip_file_3efd": { + "init_inputs": { + "zip_id": "project_alpha_archive.zip" + }, + "init_outputs": { + "files": "source_code_v2.py" + } + }, + "zip_unzip_file_7bb0": { + "init_inputs": { + "zip_id": "financial_report_2023.zip" + }, + "init_outputs": { + "files": "q3_earnings_data.csv" + } + }, + "base64_decode": { + "init_inputs": { + "data": "VGhpcyBpcyBhIHNhbXBsZSBCYXNlNjQgZW5jb2RlZCBzdHJpbmcgZm9yIHRlc3Rpbmcu" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_b": "3847562910384756291038" + }, + "init_outputs": { + "text_output": "Terminal initialized successfully. Status: Operational.", + "hex_output": "aabbccddeeff00112233445566778899" + } + }, + "terminal_1_ff4b": { + "init_inputs": { + "slot_a": "Initiate system override sequence immediately.", + "slot_b": "9102938475610293847561" + }, + "init_outputs": { + "text_output": "Override command accepted. Processing request...", + "hex_output": "1234567890abcdef1234567890abcdef", + "item_dispenser": "You found a small dispensed ticket with number 42." + } + } + }, + "intro_narrative": "You awaken in the belly of the Airborne Leviathan, a colossal steam-powered airship rapidly losing altitude. The master chronometer has locked the main engine controls, and the air is thick with the smell of burning coal, hot oil, and the sharp hiss of escaping steam. Around you lies a complex network of brass contraptions, locked steel vaults, and pressure terminals interconnected by intricate copper piping. Your objective is to trace the flow of information through these mechanical marvels and restore the power sequence before the airship crashes. You must carefully navigate the gear-driven machines, using the correct outputs from one device to fuel the next, ultimately overriding the system.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\"]" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "19283746556473829102" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "[\"Xyno_Kvzrk\", \"Xyno_Lodk\", \"Xyno_Qkwwk\", \"Xyno_Novdk\", \"Xyno_Ozcsvyx\", \"Xyno_Jodk\"]" + } + ], + "narrative": "This is The Master Chronometer, the heart of the ship's control. It requires inputs from both The Grand Orrery and The Navigator's Astrolabe to finally override the lockdown." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "hidden_manifest.xml" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[\"Gateway\", \"Router_1\", \"Switch_Core\", \"Firewall_Ext\", \"Load_Balancer\", \"Server_Main\"]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "VGhpcyBpcyBhIHNhbXBsZSBCYXNlNjQgZW5jb2RlZCBzdHJpbmcgZm9yIHRlc3Rpbmcu" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "82736451928374651029" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta\"]", + "cost": "82736451928374651029" + } + }, + "narrative": "This is The Grand Orrery. It requires inputs from The Navigator's Astrolabe, The Steam Encoder, and The Aether Vault to align its mechanical planets." + }, + { + "id": "graph_shortest_path_e3d6", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "payload_config.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Hello World! This is a test." + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "VGhpcyBpcyBhIHNhbXBsZSBCYXNlNjQgZW5jb2RlZCBzdHJpbmcgZm9yIHRlc3Rpbmcu" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Gateway\", \"Router_1\", \"Switch_Core\", \"Firewall_Ext\", \"Load_Balancer\", \"Server_Main\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "19283746556473829102" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Gateway\", \"Router_1\", \"Switch_Core\", \"Firewall_Ext\", \"Load_Balancer\", \"Server_Main\"]", + "cost": "19283746556473829102" + } + }, + "narrative": "This is The Navigator's Astrolabe. It requires inputs from The Bronze Cylinder, The Steam Encoder, and The Brass Decryptor to chart its course." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "source_code_v2.py" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Hello World! This is a test." + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "payload_config.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "payload_config.json" + } + }, + "narrative": "This is The Bronze Cylinder. It requires inputs from both The Iron Lockbox and The Brass Decryptor to open." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "48656c6c6f20576f726c64212054686973206973206120746573742e" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "Hello World! This is a test." + } + ], + "init": { + "inputs": { + "hex": "48656c6c6f20576f726c64212054686973206973206120746573742e" + }, + "outputs": {} + }, + "narrative": "This is The Brass Decryptor. An old, gear-driven decryption device covered in intricate dials." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "5468697320697320612073616d706c652042617365363420656e636f64656420737472696e6720666f722074657374696e672e" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "VGhpcyBpcyBhIHNhbXBsZSBCYXNlNjQgZW5jb2RlZCBzdHJpbmcgZm9yIHRlc3Rpbmcu" + } + ], + "narrative": "This is The Steam Encoder. It processes data from The Copper Translator. Feed it the result from the translator to activate its gears." + }, + { + "id": "zip_unzip_file_728d", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "q3_earnings_data.csv" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword!2024" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "hidden_manifest.xml" + } + ], + "init": { + "inputs": { + "password": "SecurePassword!2024" + }, + "outputs": { + "files": "hidden_manifest.xml" + } + }, + "narrative": "This is The Aether Vault. It requires input from The Steel Safe to unlock its pressurized mechanisms." + }, + { + "id": "zip_unzip_file_3efd", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "project_alpha_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Hello World! This is a test." + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "source_code_v2.py" + } + ], + "init": { + "inputs": { + "zip_id": "project_alpha_archive.zip" + }, + "outputs": { + "files": "source_code_v2.py" + } + }, + "narrative": "This is The Iron Lockbox. It requires input from The Brass Decryptor to spring its heavy latches." + }, + { + "id": "zip_unzip_file_7bb0", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "financial_report_2023.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"Gateway\", \"Router_1\", \"Switch_Core\", \"Firewall_Ext\", \"Load_Balancer\", \"Server_Main\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "q3_earnings_data.csv" + } + ], + "init": { + "inputs": { + "zip_id": "financial_report_2023.zip" + }, + "outputs": { + "files": "q3_earnings_data.csv" + } + }, + "narrative": "This is The Steel Safe. It requires input from The Navigator's Astrolabe to bypass its intricate tumbler security." + }, + { + "id": "base64_decode", + "name": "Base64 Decoder", + "description": "Decode base64 to hex bytes.", + "type": "Tool", + "template_id": "base64_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "data", + "type": "Text_Generic", + "description": "Base64 string", + "value": "VGhpcyBpcyBhIHNhbXBsZSBCYXNlNjQgZW5jb2RlZCBzdHJpbmcgZm9yIHRlc3Rpbmcu" + } + ], + "outputs": [ + { + "name": "bytes_hex", + "type": "Hex_String", + "description": "Decoded bytes as Hex", + "value": "5468697320697320612073616d706c652042617365363420656e636f64656420737472696e6720666f722074657374696e672e" + } + ], + "init": { + "inputs": { + "data": "VGhpcyBpcyBhIHNhbXBsZSBCYXNlNjQgZW5jb2RlZCBzdHJpbmcgZm9yIHRlc3Rpbmcu" + }, + "outputs": {} + }, + "narrative": "This is The Copper Translator. A strange contraption emitting a faint hiss of steam." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A mechanical valve. A solid brass piece used for regulating high-pressure steam." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A polished gear. Its teeth are perfectly aligned for delicate machinery." + }, + { + "id": "item_8_1df5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A rusted cogwheel. It seems discarded but might be part of a larger mechanism." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Override command accepted. Processing request..." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "3847562910384756291038" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialized successfully. Status: Operational." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "aabbccddeeff00112233445566778899" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_b": "3847562910384756291038" + }, + "outputs": { + "text_output": "Terminal initialized successfully. Status: Operational.", + "hex_output": "aabbccddeeff00112233445566778899" + } + }, + "narrative": "This is The Secondary Pressure Terminal. It requires input from The Primary Boiler Console to function properly." + }, + { + "id": "terminal_1_ff4b", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Initiate system override sequence immediately." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "9102938475610293847561" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Override command accepted. Processing request..." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1234567890abcdef1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "You found a small dispensed ticket with number 42." + } + ], + "init": { + "inputs": { + "slot_a": "Initiate system override sequence immediately.", + "slot_b": "9102938475610293847561" + }, + "outputs": { + "text_output": "Override command accepted. Processing request...", + "hex_output": "1234567890abcdef1234567890abcdef", + "item_dispenser": "You found a small dispensed ticket with number 42." + } + }, + "narrative": "This is The Primary Boiler Console. A sturdy interface with glowing vacuum tubes and heavy iron levers." + } + ], + "edges": [ + { + "source_id": "graph_shortest_path", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "text" + }, + { + "source_id": "graph_shortest_path_e3d6", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "src" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path_e3d6", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "hex_decode", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "dst" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path_e3d6", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "dst" + }, + { + "source_id": "hex_decode", + "target_id": "graph_shortest_path_e3d6", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "zip_unzip_file_728d", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "graph_shortest_path_e3d6", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "n" + }, + { + "source_id": "zip_unzip_file_3efd", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_7bb0", + "target_id": "zip_unzip_file_728d", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "base64_decode", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "bytes_hex", + "target_port": "hex" + }, + { + "source_id": "hex_decode", + "target_id": "zip_unzip_file_3efd", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "item_16", + "target_id": "zip_unzip_file_3efd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_8", + "target_id": "zip_unzip_file_728d", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "graph_shortest_path_e3d6", + "target_id": "zip_unzip_file_7bb0", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "password" + }, + { + "source_id": "item_8_1df5", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1_ff4b", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "slot_a" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_bdececa9_narrative.json b/data/questions/15/narrative/skeleton_bdececa9_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..2166468f68cc9c53095c199f50b4b7efe72ef7d6 --- /dev/null +++ b/data/questions/15/narrative/skeleton_bdececa9_narrative.json @@ -0,0 +1,1049 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "hex_encode", + "win_condition": { + "type": "tool_output", + "node_id": "hex_encode", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute Text to Hex Encoder and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "zip_unzip_file", + "zip_unzip_file_2736", + "zip_unzip_file_6df4", + "csv_query", + "zip_unzip_file_f4aa", + "zip_unzip_file_ecd9", + "container_3", + "unicode_norm", + "zip_unzip_item", + "zip_unzip_file_ac72", + "graph_shortest_path_874d" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_2736": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_6df4": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "where": { + "type": "Text_Generic", + "description": "Where clause" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "zip_unzip_file_f4aa": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_ecd9": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": { + "fingerprint_input": { + "type": "Big_Int", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "form": { + "type": "Text_Generic", + "description": "Form" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_ac72": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "graph_shortest_path_874d": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Entrance_Gate\", \"Main_Hall\", \"Corridor_A\", \"Library_East\", \"Reading_Room_04\", \"Archive_Section\"]", + "cost": "38294710293847561029" + } + }, + "zip_unzip_file": { + "init_inputs": { + "password": "sec_Alpha_v3_2024" + }, + "init_outputs": { + "files": "unpacked_v1_0.zip" + } + }, + "zip_unzip_file_2736": { + "init_inputs": {}, + "init_outputs": { + "files": "topology_data_final.csv" + } + }, + "zip_unzip_file_6df4": { + "init_inputs": {}, + "init_outputs": { + "files": "graph_edges_manifest.json" + } + }, + "csv_query": { + "init_inputs": { + "where": "category='node_link' AND weight < 100" + }, + "init_outputs": { + "rows": "[\"link_id_992\", \"link_id_401\", \"link_id_023\", \"link_id_887\", \"link_id_102\"]" + } + }, + "zip_unzip_file_f4aa": { + "init_inputs": { + "zip_id": "encrypted_source_04.zip" + }, + "init_outputs": { + "files": "temp_buffer_99.txt" + } + }, + "zip_unzip_file_ecd9": { + "init_inputs": { + "zip_id": "vault_storage_beta.zip", + "password": "Unlock_Key_99812_Gamma" + }, + "init_outputs": { + "files": "extracted_database.csv" + } + }, + "container_3": { + "init_inputs": { + "fingerprint_input": "918273645019283746556677889900" + }, + "init_outputs": {} + }, + "unicode_norm": { + "init_inputs": { + "text": "Unicode_Normalization_Standard_Reference_String", + "form": "NFC" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "password": "Item_Access_Pass_881" + }, + "init_outputs": {} + }, + "zip_unzip_file_ac72": { + "init_inputs": { + "zip_id": "resource_package_x.zip" + }, + "init_outputs": { + "files": "node_definition_config.json" + } + }, + "graph_shortest_path_874d": { + "init_inputs": { + "file_id": "coordinate_map_v9.json", + "src": "Terminal_Alpha_0", + "dst": "Terminal_Omega_9" + }, + "init_outputs": { + "path": "[\"Terminal_Alpha_0\", \"Relay_Station_1\", \"Hub_Central\", \"Relay_Station_8\", \"Terminal_Omega_9\"]", + "cost": "29384756102938475610" + } + } + }, + "intro_narrative": "The sky above is a perpetual bruised purple, choked with radioactive dust. You are a wasteland scavenger who just stumbled upon a massive find: an intact pre-war military bunker. Rumor has it this facility houses the master override for the automated defense grid that's been terrorizing the remaining settlements. As the heavy steel doors seal behind you to block out the incoming mutant horde, the facility's emergency lights flicker to life. You must navigate the remnants of the bunker's fragmented mainframe and broadcast the final shutdown signal before the bunker's life support runs out.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "[\"Entrance_Gate\", \"Main_Hall\", \"Corridor_A\", \"Library_East\", \"Reading_Room_04\", \"Archive_Section\"]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "5b22456e7472616e63655f47617465222c20224d61696e5f48616c6c222c2022436f727269646f725f41222c20224c6962726172795f45617374222c202252656164696e675f526f6f6d5f3034222c2022417263686976655f53656374696f6e225d" + } + ], + "narrative": "This is the Final Signal Transmitter. It requires input from the Network Router Terminal to officially broadcast the defense grid shutdown sequence." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "unpacked_v1_0.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Unicode_Normalization_Standard_Reference_String" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "[\"link_id_992\", \"link_id_401\", \"link_id_023\", \"link_id_887\", \"link_id_102\"]" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Entrance_Gate\", \"Main_Hall\", \"Corridor_A\", \"Library_East\", \"Reading_Room_04\", \"Archive_Section\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "38294710293847561029" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Entrance_Gate\", \"Main_Hall\", \"Corridor_A\", \"Library_East\", \"Reading_Room_04\", \"Archive_Section\"]", + "cost": "38294710293847561029" + } + }, + "narrative": "This is the Network Router Terminal. It requires inputs from the Core Archive Extractor, the Wasteland Database, and the Signal Stabilizer to map the final system connection." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "topology_data_final.csv" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "sec_Alpha_v3_2024" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "unpacked_v1_0.zip" + } + ], + "init": { + "inputs": { + "password": "sec_Alpha_v3_2024" + }, + "outputs": { + "files": "unpacked_v1_0.zip" + } + }, + "narrative": "This is the Core Archive Extractor. It requires input from the Secondary Archive Extractor to finally reveal the bunker's core logic routines." + }, + { + "id": "zip_unzip_file_2736", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "graph_edges_manifest.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"link_id_992\", \"link_id_401\", \"link_id_023\", \"link_id_887\", \"link_id_102\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "topology_data_final.csv" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "topology_data_final.csv" + } + }, + "narrative": "This is the Secondary Archive Extractor. It requires inputs from both the Tertiary Archive Extractor and the Wasteland Database to unlock its isolated files." + }, + { + "id": "zip_unzip_file_6df4", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "temp_buffer_99.txt" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"link_id_992\", \"link_id_401\", \"link_id_023\", \"link_id_887\", \"link_id_102\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "graph_edges_manifest.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "graph_edges_manifest.json" + } + }, + "narrative": "This is the Tertiary Archive Extractor. It requires inputs from both the Wasteland Database and the Quarantine Archive Extractor to process the next layer of encrypted archives." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "extracted_database.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "Unicode_Normalization_Standard_Reference_String" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "category='node_link' AND weight < 100" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[\"link_id_992\", \"link_id_401\", \"link_id_023\", \"link_id_887\", \"link_id_102\"]" + } + ], + "init": { + "inputs": { + "where": "category='node_link' AND weight < 100" + }, + "outputs": { + "rows": "[\"link_id_992\", \"link_id_401\", \"link_id_023\", \"link_id_887\", \"link_id_102\"]" + } + }, + "narrative": "This is the Wasteland Database. It requires inputs from both the Ruins Archive Extractor and the Signal Stabilizer to parse the surviving pre-war records." + }, + { + "id": "zip_unzip_file_f4aa", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_source_04.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"link_id_992\", \"link_id_401\", \"link_id_023\", \"link_id_887\", \"link_id_102\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "temp_buffer_99.txt" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_source_04.zip" + }, + "outputs": { + "files": "temp_buffer_99.txt" + } + }, + "narrative": "This is the Quarantine Archive Extractor. It requires input from the Wasteland Database to bypass the military quarantine protocols." + }, + { + "id": "zip_unzip_file_ecd9", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "vault_storage_beta.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Unlock_Key_99812_Gamma" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_database.csv" + } + ], + "init": { + "inputs": { + "zip_id": "vault_storage_beta.zip", + "password": "Unlock_Key_99812_Gamma" + }, + "outputs": { + "files": "extracted_database.csv" + } + }, + "narrative": "An offline Ruins Archive Extractor hooked up to a rusted fusion generator." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "918273645019283746556677889900" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "918273645019283746556677889900" + }, + "outputs": {} + }, + "narrative": "A heavy Biometric Lockbox with a cracked glass scanner on its lid." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A degraded Rusted Memory Module salvaged from the chassis of a dead android." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Unicode_Normalization_Standard_Reference_String" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "Unicode_Normalization_Standard_Reference_String" + } + ], + "init": { + "inputs": { + "text": "Unicode_Normalization_Standard_Reference_String", + "form": "NFC" + }, + "outputs": {} + }, + "narrative": "A bulky Signal Stabilizer salvaged from a fallen communications tower." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "node_definition_config.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Item_Access_Pass_881" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "password": "Item_Access_Pass_881" + }, + "outputs": {} + }, + "narrative": "This is a Supply Cache Decoder. It requires input from the Outpost Archive Extractor to function properly." + }, + { + "id": "zip_unzip_file_ac72", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "resource_package_x.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"Terminal_Alpha_0\", \"Relay_Station_1\", \"Hub_Central\", \"Relay_Station_8\", \"Terminal_Omega_9\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "node_definition_config.json" + } + ], + "init": { + "inputs": { + "zip_id": "resource_package_x.zip" + }, + "outputs": { + "files": "node_definition_config.json" + } + }, + "narrative": "This is the Outpost Archive Extractor. It requires input from the Sector Mapping Terminal to initiate its extraction process." + }, + { + "id": "graph_shortest_path_874d", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "coordinate_map_v9.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Terminal_Alpha_0" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Terminal_Omega_9" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Terminal_Alpha_0\", \"Relay_Station_1\", \"Hub_Central\", \"Relay_Station_8\", \"Terminal_Omega_9\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "29384756102938475610" + } + ], + "init": { + "inputs": { + "file_id": "coordinate_map_v9.json", + "src": "Terminal_Alpha_0", + "dst": "Terminal_Omega_9" + }, + "outputs": { + "path": "[\"Terminal_Alpha_0\", \"Relay_Station_1\", \"Hub_Central\", \"Relay_Station_8\", \"Terminal_Omega_9\"]", + "cost": "29384756102938475610" + } + }, + "narrative": "An old Sector Mapping Terminal covered in a thick layer of radioactive dust." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A delicate Temporal Synchronizer emitting a faint, pulsing blue glow." + } + ], + "edges": [ + { + "source_id": "graph_shortest_path", + "target_id": "hex_encode", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "text" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_2736", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_6df4", + "target_id": "zip_unzip_file_2736", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "csv_query", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "dst" + }, + { + "source_id": "csv_query", + "target_id": "zip_unzip_file_6df4", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_f4aa", + "target_id": "zip_unzip_file_6df4", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "csv_query", + "target_id": "zip_unzip_file_f4aa", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_ecd9", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "container_3", + "target_id": "zip_unzip_file_ecd9", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "csv_query", + "target_id": "zip_unzip_file_2736", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "password" + }, + { + "source_id": "item_8", + "target_id": "graph_shortest_path", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "unicode_norm", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "zip_unzip_item", + "target_id": "unicode_norm", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "unicode_norm", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "select" + }, + { + "source_id": "zip_unzip_file_ac72", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "graph_shortest_path_874d", + "target_id": "zip_unzip_file_ac72", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "password" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_ca8aca2e_narrative.json b/data/questions/15/narrative/skeleton_ca8aca2e_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..7c32c0f5ee9c1d1967c5ea8cf4ab663acb49d888 --- /dev/null +++ b/data/questions/15/narrative/skeleton_ca8aca2e_narrative.json @@ -0,0 +1,849 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "base64_encode", + "win_condition": { + "type": "tool_output", + "node_id": "base64_encode", + "output_port": "b64", + "output_type": "Text_Generic", + "description": "Execute Base64 Encoder and get the output from port 'b64'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "calc_modexp", + "calc_gcd", + "calc_inv_mod", + "container_2", + "item_7", + "calc_inv_mod_ed48" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "container_2": { + "node_name": "", + "node_type": "Item", + "template_id": "container_2", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "calc_inv_mod_ed48": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": { + "slot_a": "Initial terminal handshake protocol v2.4.1" + }, + "init_outputs": { + "text_output": "The mainframe accepts the sequence. Access level: Restricted.", + "hex_output": "7e8f90a1b2c3d4e5f60718293a4b5c6d", + "item_dispenser": "A small encrypted storage module ejected from the port." + } + }, + "calc_modexp": { + "init_inputs": { + "exp": "394857610293847561029384756102" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "b": "556677889900112233445566778899" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "mod": "778891" + }, + "init_outputs": {} + }, + "container_2": { + "init_inputs": { + "fingerprint_input": "cafebabe00112233445566778899aabb" + }, + "init_outputs": {} + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "def calculate_logic():\n data = [i**2 for i in range(10)]\n return sum(data)\nprint(calculate_logic())" + } + }, + "calc_inv_mod_ed48": { + "init_inputs": { + "a": "112233445566778899001122334455", + "mod": "665543" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the dimly lit sub-basement of the abandoned Blackwood Research Facility. The air is thick with dust and the faint smell of ozone. Decades ago, brilliant minds worked here on a top-secret communication protocol before the project was abruptly shut down and sealed away. Your mission is to restart the facility's dormant systems and transmit the final distress signal that was never sent. Surrounding you are archaic machines, rusted safes, and cryptic notes left behind by the desperate researchers. You must navigate this web of interconnected devices, deciphering their mechanical logic to restore the network. The only way out is to successfully broadcast the signal, but every machine depends on another in a complex chain of data.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "bd75a42c" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "vXWkLA==" + } + ], + "narrative": "This is the Transmission Encoder. It requires input from the Data Integrity Verifier to finalize the broadcast format." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "7e8f90a1b2c3d4e5f60718293a4b5c6d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "bd75a42c" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3178603564 + } + ], + "narrative": "This is the Data Integrity Verifier. It requires input from the Main Control Terminal to process the data stream." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Initial terminal handshake protocol v2.4.1" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "0" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "The mainframe accepts the sequence. Access level: Restricted." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "7e8f90a1b2c3d4e5f60718293a4b5c6d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A small encrypted storage module ejected from the port." + } + ], + "init": { + "inputs": { + "slot_a": "Initial terminal handshake protocol v2.4.1" + }, + "outputs": { + "text_output": "The mainframe accepts the sequence. Access level: Restricted.", + "hex_output": "7e8f90a1b2c3d4e5f60718293a4b5c6d", + "item_dispenser": "A small encrypted storage module ejected from the port." + } + }, + "narrative": "This is the Main Control Terminal. It requires input from the Final Cryptographic Module to fully activate." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": 1874090106 + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "394857610293847561029384756102" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "0" + } + ], + "init": { + "inputs": { + "exp": "394857610293847561029384756102" + }, + "outputs": {} + }, + "narrative": "This is the Final Cryptographic Module. It requires inputs from the Secondary Cryptographic Module and the Anomaly Detector." + }, + { + "id": "calc_modexp_3fff", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1122247163" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "51743" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1" + } + ], + "narrative": "This is the Secondary Cryptographic Module. It requires inputs from the Base Translator, the Geometric Analyzer, and the Inversion Matrix." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": 1122247163 + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": 1874090106 + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "1" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1122247163" + } + ], + "narrative": "This is the Base Translator. It requires inputs from the Anomaly Detector, the Geometric Analyzer, and the Secondary Detector." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 1874090106 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "556677889900112233445566778899" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "556677889900112233445566778899" + }, + "outputs": {} + }, + "narrative": "This is the Geometric Analyzer. It requires input from the Anomaly Detector to calculate structural factors." + }, + { + "id": "checksum_crc32_deac", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "5131e6710ad926457f97498945b6a565" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "6fb4587a" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1874090106 + } + ], + "narrative": "This is the Anomaly Detector. It requires input from the Cipher Generator to scan the sequence for irregularities." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "285\n" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "5131e6710ad926457f97498945b6a565" + } + ], + "narrative": "This is the Cipher Generator. It requires input from the Legacy Execution Environment to produce the digital signature." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "238546" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "778891" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "51743" + } + ], + "init": { + "inputs": { + "mod": "778891" + }, + "outputs": {} + }, + "narrative": "This is the Inversion Matrix. It requires input from the Primary Matrix Core to align its quantum state." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def calculate_logic():\n data = [i**2 for i in range(10)]\n return sum(data)\nprint(calculate_logic())" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "285\n" + } + ], + "narrative": "This is the Legacy Execution Environment. It requires input from the Torn Journal Page to run its routines." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "cafebabe00112233445566778899aabb" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "cafebabe00112233445566778899aabb" + }, + "outputs": {} + }, + "narrative": "This is the Biometric Safe. A heavy steel lockbox embedded in the wall, designed to protect sensitive prototypes." + }, + { + "id": "checksum_crc32_3337", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "6fb4587a" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "42e421fb" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1122247163 + } + ], + "narrative": "This is the Secondary Detector. It requires input from the Anomaly Detector to perform a backup screening." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "def calculate_logic():\n data = [i**2 for i in range(10)]\n return sum(data)\nprint(calculate_logic())" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def calculate_logic():\n data = [i**2 for i in range(10)]\n return sum(data)\nprint(calculate_logic())" + } + }, + "narrative": "This is the Torn Journal Page. A crumpled piece of paper containing handwritten code logic and fading ink." + }, + { + "id": "calc_inv_mod_ed48", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "112233445566778899001122334455" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "665543" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "238546" + } + ], + "init": { + "inputs": { + "a": "112233445566778899001122334455", + "mod": "665543" + }, + "outputs": {} + }, + "narrative": "This is the Primary Matrix Core. An archaic computational unit that hums with latent energy." + } + ], + "edges": [ + { + "source_id": "checksum_crc32", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "terminal_1", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "slot_b" + }, + { + "source_id": "calc_modexp_3fff", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp_3fff", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp_3fff", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "checksum_crc32_deac", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "base" + }, + { + "source_id": "hash_md5", + "target_id": "checksum_crc32_deac", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_modexp_3fff", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32_deac", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "from_base" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "to_base" + }, + { + "source_id": "code_py_exec", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "text" + }, + { + "source_id": "container_2", + "target_id": "hash_md5", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "checksum_crc32_3337", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "s" + }, + { + "source_id": "checksum_crc32_deac", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "checksum_crc32_deac", + "target_id": "checksum_crc32_3337", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_inv_mod_ed48", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_cd4a6784_narrative.json b/data/questions/15/narrative/skeleton_cd4a6784_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..789246156c8f34e777606686058db1307fb4eb78 --- /dev/null +++ b/data/questions/15/narrative/skeleton_cd4a6784_narrative.json @@ -0,0 +1,945 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 21, + "win_node_id": "num_base_convert", + "win_condition": { + "type": "tool_output", + "node_id": "num_base_convert", + "output_port": "str", + "output_type": "Big_Int", + "description": "Execute Base Converter and get the output from port 'str'" + }, + "source_init": { + "source_nodes": [ + "num_base_convert_0411", + "graph_shortest_path", + "num_base_convert_1549", + "hex_decode", + "regex_search", + "calc_gcd_6bad", + "calc_bigmul", + "item_1", + "zip_unzip_file" + ], + "by_node": { + "num_base_convert_0411": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "num_base_convert_1549": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "hex_decode": { + "node_name": "Hex to Text Decoder", + "node_type": "Tool", + "template_id": "hex_decode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex string" + } + }, + "init_outputs": {} + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "pattern": { + "type": "Text_Generic", + "description": "Regex pattern" + }, + "file_id": { + "type": "File_Id", + "description": "File ID (optional)" + }, + "text": { + "type": "Text_Generic", + "description": "Text (optional)" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "calc_gcd_6bad": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + } + } + }, + "initial_values": { + "num_base_convert_0411": { + "init_inputs": { + "from_base": "10" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Gate_Entry\", \"Checkpoint_Alpha\", \"Sector_7_Corridor\", \"Main_Hall_West\", \"Server_Room_Access\", \"Vault_Door_Secure\"]", + "cost": "845291" + } + }, + "num_base_convert_1549": { + "init_inputs": { + "s": "91827364501928374651029384756" + }, + "init_outputs": {} + }, + "hex_decode": { + "init_inputs": { + "hex": "6f7065726174696f6e5f6b65795f73657175656e63655f616c706861" + }, + "init_outputs": {} + }, + "regex_search": { + "init_inputs": { + "pattern": "user_id_[0-9]{5}", + "file_id": "access_logs_2023.log", + "text": "Login attempt: user_id_45102, user_id_92834, user_id_10293." + }, + "init_outputs": { + "matches": "[\"user_id_45102\", \"user_id_92834\", \"user_id_10293\", \"user_id_55612\", \"user_id_88291\"]" + } + }, + "calc_gcd_6bad": { + "init_inputs": { + "a": "28374651029384756102938475610" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "b": "37465102938475610293847561029" + }, + "init_outputs": {} + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "74658392019283746510293847561" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_data_bundle.zip", + "password": "SuperSecurePassword123!" + }, + "init_outputs": { + "files": "network_topology_graph.json" + } + } + }, + "intro_narrative": "You are a rogue cyber-operative infiltrating the Blackwood Syndicate's subterranean server farm. They have stolen highly classified intelligence and are preparing to broadcast it to the highest bidder on the dark web. The clock is ticking. You have exactly 60 minutes to navigate their isolated internal network, bypass layers of military-grade cryptographic security, and reach the core system. Your ultimate objective is to trigger the Mainframe Override and purge the stolen data before the upload completes. Trust your instincts, follow the data trail, and leave no trace.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "1" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1" + } + ], + "narrative": "The Mainframe Override. The primary access terminal for the facility's central server. It requires inputs from the Subnet Translator, the Quantum Decryptor, and the Node Synchronizer to initiate the final purge." + }, + { + "id": "num_base_convert_0411", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "845291" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1" + } + ], + "init": { + "inputs": { + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "The Subnet Translator. An internal IP spoofing unit designed to mask outgoing traffic. It requires inputs from both the Network Router and the Firewall Bypass." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[\"user_id_45102\", \"user_id_92834\", \"user_id_10293\", \"user_id_55612\", \"user_id_88291\"]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "operation_key_sequence_alpha" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Gate_Entry\", \"Checkpoint_Alpha\", \"Sector_7_Corridor\", \"Main_Hall_West\", \"Server_Room_Access\", \"Vault_Door_Secure\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "845291" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Gate_Entry\", \"Checkpoint_Alpha\", \"Sector_7_Corridor\", \"Main_Hall_West\", \"Server_Room_Access\", \"Vault_Door_Secure\"]", + "cost": "845291" + } + }, + "narrative": "The Network Router. A physical routing matrix governing the server floor's traffic. It requires inputs from the Hexadecimal Decryptor, the Pattern Analyzer, and the Archive Extractor." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "9" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1" + } + ], + "narrative": "The Quantum Decryptor. A state-of-the-art quantum processing core humming with intense energy. It requires inputs from the Node Synchronizer, the Subnet Translator, and the Signal Aligner." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "1" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "91827364501928374651029384756" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "The Firewall Bypass. An automated intrusion countermeasure system. It requires inputs from both the Frequency Converter and the Node Synchronizer." + }, + { + "id": "num_base_convert_1549", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "91827364501928374651029384756" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "2797084342223531543804935223392193338607824357904170300269" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "9" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "91827364501928374651029384756" + } + ], + "init": { + "inputs": { + "s": "91827364501928374651029384756" + }, + "outputs": {} + }, + "narrative": "The Frequency Converter. A digital band translator used for scrambling internal communications. It requires inputs from both the Signal Aligner and the Cryptographic Multiplier." + }, + { + "id": "calc_gcd_f8c1", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "91827364501928374651029384756" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "845291" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "The Node Synchronizer. A timing calibration device that prevents packet collision. It requires inputs from both the Frequency Converter and the Network Router." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Security Keycard. A high-level biometric access badge dropped by a fleeing technician." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "6f7065726174696f6e5f6b65795f73657175656e63655f616c706861" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "operation_key_sequence_alpha" + } + ], + "init": { + "inputs": { + "hex": "6f7065726174696f6e5f6b65795f73657175656e63655f616c706861" + }, + "outputs": {} + }, + "narrative": "The Hexadecimal Decryptor. A legacy decryption terminal used by the syndicate for offline processing." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "user_id_[0-9]{5}" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "access_logs_2023.log" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "Login attempt: user_id_45102, user_id_92834, user_id_10293." + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"user_id_45102\", \"user_id_92834\", \"user_id_10293\", \"user_id_55612\", \"user_id_88291\"]" + } + ], + "init": { + "inputs": { + "pattern": "user_id_[0-9]{5}", + "file_id": "access_logs_2023.log", + "text": "Login attempt: user_id_45102, user_id_92834, user_id_10293." + }, + "outputs": { + "matches": "[\"user_id_45102\", \"user_id_92834\", \"user_id_10293\", \"user_id_55612\", \"user_id_88291\"]" + } + }, + "narrative": "The Pattern Analyzer. An automated surveillance script running continuously on an isolated server blade." + }, + { + "id": "calc_gcd_6bad", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "28374651029384756102938475610" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "2797084342223531543804935223392193338607824357904170300269" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "9" + } + ], + "init": { + "inputs": { + "a": "28374651029384756102938475610" + }, + "outputs": {} + }, + "narrative": "The Signal Aligner. A frequency harmonization module emitting a low, pulsing drone. It requires input from the Cryptographic Multiplier." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "74658392019283746510293847561" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "37465102938475610293847561029" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "2797084342223531543804935223392193338607824357904170300269" + } + ], + "init": { + "inputs": { + "b": "37465102938475610293847561029" + }, + "outputs": {} + }, + "narrative": "The Cryptographic Multiplier. A dual-input processing array used to scale encryption keys. It requires input from the Intercepted Comm Log." + }, + { + "id": "item_8_3cbd", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Guard's Pocket. A tactical vest left behind by a neutralized sentry, potentially holding useful clearance items." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "74658392019283746510293847561" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "74658392019283746510293847561" + } + }, + "narrative": "The Intercepted Comm Log. A classified data packet saved locally on a ruggedized datapad." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_data_bundle.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecurePassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "network_topology_graph.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_data_bundle.zip", + "password": "SuperSecurePassword123!" + }, + "outputs": { + "files": "network_topology_graph.json" + } + }, + "narrative": "The Archive Extractor. A brute-force cracking tool loaded onto a portable, heavily modified drive." + } + ], + "edges": [ + { + "source_id": "num_base_convert_0411", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "to_base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert_0411", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "to_base" + }, + { + "source_id": "calc_modexp", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "from_base" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert_0411", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "s" + }, + { + "source_id": "num_base_convert_1549", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "calc_gcd_f8c1", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "num_base_convert_1549", + "target_id": "calc_gcd_f8c1", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "num_base_convert_0411", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "item_8", + "target_id": "graph_shortest_path", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_gcd_f8c1", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "hex_decode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_gcd_f8c1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "regex_search", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "src" + }, + { + "source_id": "calc_gcd_f8c1", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "s" + }, + { + "source_id": "calc_gcd_6bad", + "target_id": "num_base_convert_1549", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "to_base" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert_1549", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "from_base" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd_6bad", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "item_8_3cbd", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_gcd_6bad", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "item_1", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "a" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_cd867395_narrative.json b/data/questions/15/narrative/skeleton_cd867395_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..2872d89f4c9400aa734adc2118e7f9df7a30457b --- /dev/null +++ b/data/questions/15/narrative/skeleton_cd867395_narrative.json @@ -0,0 +1,816 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 20, + "win_node_id": "item_5", + "win_condition": { + "type": "item_content", + "node_id": "item_5", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_5", + "calc_modexp", + "calc_modexp_e777", + "terminal_2", + "calc_inv_mod_3ec2", + "calc_gcd" + ], + "by_node": { + "item_5": { + "node_name": "", + "node_type": "Item", + "template_id": "item_5", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "calc_modexp_e777": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_inv_mod_3ec2": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_5": { + "init_inputs": {}, + "init_outputs": { + "content": "a4f2b1c8d3e90756a4f2b1c8d3e90756a4f2b1c8d3e90756a4f2b1c8d3e90756" + } + }, + "calc_modexp": { + "init_inputs": { + "exp": "827364519283746519283746" + }, + "init_outputs": {} + }, + "calc_modexp_e777": { + "init_inputs": { + "exp": "918273645019283746510293" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "192837465019283746501928" + }, + "init_outputs": { + "text_result": "System ready awaiting secondary numeric input stream.", + "hex_result": "1234567890abcdef1234567890abcdef" + } + }, + "calc_inv_mod_3ec2": { + "init_inputs": { + "a": "283746510293847561029384", + "mod": "492837" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "374651029384756102938475", + "b": "485762130495867213049586" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are the Chief Engineer of the stellar cruiser Aethelgard. Waking from cryosleep, you find the ship adrift in the void, systems critical and the main reactor offline. The AI is unresponsive, leaving only the manual override subsystems active. To restart the core and survive, you must navigate the complex web of backup protocols, synchronize the drifting navigation arrays, and synthesize the Core Activation Key. The silence of space is deafening; time is running out before life support fails completely.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "item_5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "a4f2b1c8d3e90756a4f2b1c8d3e90756a4f2b1c8d3e90756a4f2b1c8d3e90756" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "a4f2b1c8d3e90756a4f2b1c8d3e90756a4f2b1c8d3e90756a4f2b1c8d3e90756" + } + }, + "narrative": "The Core Activation Key. This is the final sequence required to restart the Aethelgard's reactor." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A hidden data fragment extracted from the Captain's Log." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Captain's personal logbook, retrieved from the safe. It contains time-stamped entries." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "1" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Captain's Safe. It is a heavy, plasteel box welded to the bulkhead. The locking mechanism requires a specific code derived from the Coordinates Translator to disengage." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "404897" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "0" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1" + } + ], + "narrative": "The Coordinates Translator. This holographic projection table calculates deep-space vectors. It requires data streams from the Stabilizer Algorithm, the Backup Power Array, and the Primary Nav-Computer to function." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "0" + } + ], + "narrative": "The Stabilizer Algorithm. This system manages the ship's gyroscopes. To calibrate it, you must input the calculated values from the Engine Ignition Sequence and the Backup Power Array." + }, + { + "id": "item_16_1be4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A technical maintenance manual found inside the locker." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "827364519283746519283746" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "404897" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1" + } + ], + "init": { + "inputs": { + "exp": "827364519283746519283746" + }, + "outputs": {} + }, + "narrative": "The Engine Ignition Sequence. This complex interface controls the spark plugs for the thrusters. It requires synchronization data from both the Primary Nav-Computer and the Signal Harmonizer." + }, + { + "id": "calc_modexp_e777", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "918273645019283746510293" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "404897" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1" + } + ], + "init": { + "inputs": { + "exp": "918273645019283746510293" + }, + "outputs": {} + }, + "narrative": "The Backup Power Array. This panel monitors the auxiliary battery cells and displays current voltage parameters." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "1234567890abcdef1234567890abcdef" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A Maintenance Locker located in the engineering bay. The biometric scanner on the front is active and requires a specific hex verification code generated by the Command Console." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "192837465019283746501928" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "System ready awaiting secondary numeric input stream." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1234567890abcdef1234567890abcdef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "192837465019283746501928" + }, + "outputs": { + "text_result": "System ready awaiting secondary numeric input stream.", + "hex_result": "1234567890abcdef1234567890abcdef" + } + }, + "narrative": "The Command Console. This is the central operations terminal. While one input accepts manual entry, the second parameter requires live data from the Engine Ignition Sequence." + }, + { + "id": "item_8_a6e7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A decrypted security token processed from the emergency protocols." + }, + { + "id": "calc_inv_mod_3ec2", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "283746510293847561029384" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "492837" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "404897" + } + ], + "init": { + "inputs": { + "a": "283746510293847561029384", + "mod": "492837" + }, + "outputs": {} + }, + "narrative": "The Primary Nav-Computer. It displays the ship's current orbital trajectory parameters." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "374651029384756102938475" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "485762130495867213049586" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "374651029384756102938475", + "b": "485762130495867213049586" + }, + "outputs": {} + }, + "narrative": "The Signal Harmonizer. A frequency tool used to analyze conflicting wavelengths." + }, + { + "id": "item_8_d043", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Emergency Protocol Alpha. A red data tape labeled for catastrophic failure scenarios." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_3", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "num_base_convert", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "item_16_1be4", + "target_id": "num_base_convert", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "calc_modexp_e777", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "s" + }, + { + "source_id": "container_1", + "target_id": "item_16_1be4", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "item_8_a6e7", + "target_id": "calc_modexp", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_modexp_e777", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "base" + }, + { + "source_id": "calc_inv_mod_3ec2", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "from_base" + }, + { + "source_id": "calc_modexp_e777", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num2" + }, + { + "source_id": "calc_inv_mod_3ec2", + "target_id": "calc_modexp_e777", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "terminal_2", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_inv_mod_3ec2", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "item_8_d043", + "target_id": "item_8_a6e7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_d643af50_narrative.json b/data/questions/15/narrative/skeleton_d643af50_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..87cacefcbe23f4ac8554bc818b9498fa6e3dc9ad --- /dev/null +++ b/data/questions/15/narrative/skeleton_d643af50_narrative.json @@ -0,0 +1,887 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "container_3", + "win_condition": { + "type": "item_content", + "node_id": "container_3", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_3", + "graph_shortest_path", + "zip_unzip_file", + "terminal_1", + "zip_unzip_file_346d", + "container_4", + "calc_modexp", + "zip_unzip_item", + "item_9" + ], + "by_node": { + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "zip_unzip_file_346d": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + } + } + }, + "initial_values": { + "container_3": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "ARMA_VIRUMQUE_CANO_TROIAE_QUI_PRIMUS_AB_ORIS" + } + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Gateway_Alpha" + }, + "init_outputs": { + "path": "[\"Node_Gateway_Alpha\", \"Node_Router_7\", \"Node_Switch_B\", \"Node_Server_Final\"]", + "cost": "3847562910384756291038475" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_manifest_data.xml" + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "init_sequence --verbose --force" + }, + "init_outputs": { + "text_output": "Terminal initialization complete. Ready for command input.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "zip_unzip_file_346d": { + "init_inputs": { + "zip_id": "secure_archive_bundle_v2.zip" + }, + "init_outputs": { + "files": "recovered_payload_script.py" + } + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "fp_hash_verification_token_x92" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "9283746510293847561029384", + "exp": "5610293847561029384756102", + "mod": "876543" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "password": "StrongPassword!2024" + }, + "init_outputs": {} + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "network_topology_config.json" + } + } + }, + "intro_narrative": "You awaken in the belly of the Chronos Spire, a legendary steam-powered citadel built by the mad inventor Archimedes Locke. The air is thick with the smell of ozone, hot copper, and machine oil. Surrounding you is a dizzying array of brass calculation engines, hissing pneumatic tubes, and intricate gearwork mechanisms. Your goal is simple but daunting: you must find a way to unlock The Grand Vault hidden somewhere in this mechanical labyrinth. Rumor has it that Locke secured his ultimate blueprint within it, protected by an interlocking web of computational devices and logic engines. To succeed, you will need to decipher the dependencies of these steampunk contraptions, feeding the output of one machine into the next. The boiler pressure is rising, and time is ticking. Explore the room, trace the pneumatic lines, and master the machinery before the Spire undergoes its automated purge cycle.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "3847562910384756291038475" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "ARMA_VIRUMQUE_CANO_TROIAE_QUI_PRIMUS_AB_ORIS" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "ARMA_VIRUMQUE_CANO_TROIAE_QUI_PRIMUS_AB_ORIS" + } + }, + "narrative": "The Grand Vault. A massive steel vault door at the heart of the facility. It requires input from The Navigational Orrery to align its primary locking mechanism." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_manifest_data.xml" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Gateway_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "j0yIeR4X6xLD/xwBPjrzTw==" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Gateway_Alpha\", \"Node_Router_7\", \"Node_Switch_B\", \"Node_Server_Final\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "3847562910384756291038475" + } + ], + "init": { + "inputs": { + "src": "Node_Gateway_Alpha" + }, + "outputs": { + "path": "[\"Node_Gateway_Alpha\", \"Node_Router_7\", \"Node_Switch_B\", \"Node_Server_Final\"]", + "cost": "3847562910384756291038475" + } + }, + "narrative": "The Navigational Orrery. An intricate mechanical map of the city's pneumatic pipe network. It requires inputs from both The Alignment Calibrator and The Clockwork Archive to calculate the optimal route." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "j0yIeR4X6xLD/xwBPjrzTw==" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "j0yIeR4X6xLD/xwBPjrzTw==" + } + ], + "narrative": "The Alignment Calibrator. A precise set of tuning forks and optical lenses. It requires input from The Gearwork Translator to calibrate the garbled frequencies." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "recovered_payload_script.py" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "j0yIeR4X6xLD/xwBPjrzTw==" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_manifest_data.xml" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_manifest_data.xml" + } + }, + "narrative": "The Clockwork Archive. A massive rotating bookshelf of metal punch cards. It requires inputs from both The Gearwork Translator and The Steam-Powered Extractor to retrieve the correct records." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Iron Cogwheel. A heavy, rust-spotted gear with strange alchemical markings etched deeply into its teeth." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "8f4c88791e17eb12c3ff1c013e3af34f" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "j0yIeR4X6xLD/xwBPjrzTw==" + } + ], + "narrative": "The Gearwork Translator. A complex mechanical typewriter driven by a series of springs. It requires input from The Aetheric Compressor to translate incoming signals." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Terminal initialization complete. Ready for command input." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "8f4c88791e17eb12c3ff1c013e3af34f" + } + ], + "narrative": "The Aetheric Compressor. A pulsating glass chamber that densifies information into a pure essence. It requires input from The Mainframe Telegraph before it can be activated." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Bronze Pocket Watch. A sturdy bronze timepiece, its hands ticking erratically backwards in defiance of logic." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "init_sequence --verbose --force" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "121252" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialization complete. Ready for command input." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "init_sequence --verbose --force" + }, + "outputs": { + "text_output": "Terminal initialization complete. Ready for command input.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "narrative": "The Mainframe Telegraph. A towering communication terminal humming with pressurized steam. It requires input from The Brass Arithmometer to function." + }, + { + "id": "zip_unzip_file_346d", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_archive_bundle_v2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "j0yIeR4X6xLD/xwBPjrzTw==" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "recovered_payload_script.py" + } + ], + "init": { + "inputs": { + "zip_id": "secure_archive_bundle_v2.zip" + }, + "outputs": { + "files": "recovered_payload_script.py" + } + }, + "narrative": "The Steam-Powered Extractor. A heavy industrial machine designed to unpack compressed data cylinders. It requires input from The Alignment Calibrator to unlock its mechanism." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "fp_hash_verification_token_x92" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "fp_hash_verification_token_x92" + }, + "outputs": {} + }, + "narrative": "The Copper Lockbox. A small, sturdy container made of oxidized copper, secured with a primitive biometric scanning mechanism." + }, + { + "id": "item_16_87a5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Silver Pocket Watch. An elegant timepiece with gleaming silver gears, its hands mysteriously frozen at a specific moment in time." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "9283746510293847561029384" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "5610293847561029384756102" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "876543" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "121252" + } + ], + "init": { + "inputs": { + "base": "9283746510293847561029384", + "exp": "5610293847561029384756102", + "mod": "876543" + }, + "outputs": {} + }, + "narrative": "The Brass Arithmometer. A heavy mechanical calculator with numerous spinning dials, number wheels, and input levers." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "network_topology_config.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "StrongPassword!2024" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "password": "StrongPassword!2024" + }, + "outputs": {} + }, + "narrative": "The Pressure-Sealed Cylinder. A pneumatically locked tube designed to hold sensitive materials safely. It requires input from The Leather Satchel to bypass its vacuum seal." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "network_topology_config.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "network_topology_config.json" + } + }, + "narrative": "The Leather Satchel. A weather-beaten aviator's bag, containing securely wrapped mechanical schematics." + } + ], + "edges": [ + { + "source_id": "graph_shortest_path", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "fingerprint_input" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_8", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "base64_encode", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "password" + }, + { + "source_id": "hash_md5", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_file_346d", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "container_4", + "target_id": "base64_encode", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "item_16_87a5", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "slot_b" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file_346d", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "base64_encode", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "text" + }, + { + "source_id": "terminal_1", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "text" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16_87a5", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "item_9", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_d86442c8_narrative.json b/data/questions/15/narrative/skeleton_d86442c8_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..d30c609ff5c5a1a1297e53b646c641269e7b683c --- /dev/null +++ b/data/questions/15/narrative/skeleton_d86442c8_narrative.json @@ -0,0 +1,704 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 14, + "win_node_id": "item_8", + "win_condition": { + "type": "item_content", + "node_id": "item_8", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_8", + "calc_bigmul", + "calc_bigmul_d1db", + "calc_bigmul_ee9b", + "calc_inv_mod", + "num_base_convert" + ], + "by_node": { + "item_8": { + "node_name": "", + "node_type": "Item", + "template_id": "item_8", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hidden_Item", + "description": "The integer" + } + } + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "calc_bigmul_d1db": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "calc_bigmul_ee9b": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_8": { + "init_inputs": {}, + "init_outputs": { + "content": "IN_PRINCIPIO_CREAVIT_DEUS_CAELUM_ET_TERRAM" + } + }, + "calc_bigmul": { + "init_inputs": { + "a": "8475629103847562910384756291" + }, + "init_outputs": {} + }, + "calc_bigmul_d1db": { + "init_inputs": { + "b": "2910384756291038475629103847" + }, + "init_outputs": {} + }, + "calc_bigmul_ee9b": { + "init_inputs": { + "b": "5629103847562910384756291038" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "7562910384756291038475629103" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "s": "9103847562910384756291038475", + "from_base": "10", + "to_base": "10" + }, + "init_outputs": {} + } + }, + "intro_narrative": "Welcome to the grand workshop of the late Inventor-General Archimedes. The air is thick with the smell of engine oil and escaping steam, accompanied by the rhythmic hissing of interconnected brass pipes. The city's mechanical power grid is failing, and the only way to save it is to retrieve Archimedes' masterwork: the final engine blueprint. However, the eccentric inventor locked it away behind a complex series of steam-powered calculators and mechanized vaults. You must decipher his mechanical logic, operate the grand brass machinery in the correct sequence, and uncover the hidden schematics before the entire city grinds to a permanent halt.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer", + "value": "IN_PRINCIPIO_CREAVIT_DEUS_CAELUM_ET_TERRAM" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "IN_PRINCIPIO_CREAVIT_DEUS_CAELUM_ET_TERRAM" + } + }, + "narrative": "A secure, heavy brass canister holding the final engine blueprint." + }, + { + "id": "item_8_ac4a", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An intricate brass combination casing adorned with interlocking gears." + }, + { + "id": "item_8_b3e4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavy mechanical dial with glowing gauge meters." + }, + { + "id": "item_8_1bd7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A metallic cypher disk covered in strange, stamped symbols." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A rolled-up parchment containing early clockwork schematics." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "584677325563172081677410017795981179944448186872022977752265368682184854975883339305368195825046973232558727942" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Chronos Biometric Vault. It requires input from the Master Cog Multiplier to authenticate and open the heavy brass doors." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "8475629103847562910384756291" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "68983354320890975061475953973312316627899349976497061160830848935744792018123736962" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "584677325563172081677410017795981179944448186872022977752265368682184854975883339305368195825046973232558727942" + } + ], + "init": { + "inputs": { + "a": "8475629103847562910384756291" + }, + "outputs": {} + }, + "narrative": "This is the Master Cog Multiplier. It requires input from the Secondary Cog Multiplier to finalize the grand mechanical calculations." + }, + { + "id": "calc_bigmul_d1db", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "23702486130666305492903996120472772575478643280127680046" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "2910384756291038475629103847" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "68983354320890975061475953973312316627899349976497061160830848935744792018123736962" + } + ], + "init": { + "inputs": { + "b": "2910384756291038475629103847" + }, + "outputs": {} + }, + "narrative": "This is the Secondary Cog Multiplier. It requires input from the Primary Cog Multiplier to align and operate its gear shafts." + }, + { + "id": "item_8_a9fe", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A hidden copper core radiating a faint warmth." + }, + { + "id": "calc_bigmul_ee9b", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "4210703297102640373413129817" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "5629103847562910384756291038" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "23702486130666305492903996120472772575478643280127680046" + } + ], + "init": { + "inputs": { + "b": "5629103847562910384756291038" + }, + "outputs": {} + }, + "narrative": "This is the Primary Cog Multiplier. It requires input from the Aetheric Inverter to process its initial mechanical equations." + }, + { + "id": "item_8_366f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A small, delicate winding gear made of polished steel." + }, + { + "id": "item_16_4205", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An intricate pocket watch ticking away rhythmically." + }, + { + "id": "item_8_606e", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A strange copper coin with specialized gear teeth along its edge." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "7562910384756291038475629103" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "9103847562910384756291038475" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "4210703297102640373413129817" + } + ], + "init": { + "inputs": { + "a": "7562910384756291038475629103" + }, + "outputs": {} + }, + "narrative": "This is an Aetheric Inverter. It requires input from the Differential Base Converter to function properly and invert the steam pressure." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "9103847562910384756291038475" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "9103847562910384756291038475" + } + ], + "init": { + "inputs": { + "s": "9103847562910384756291038475", + "from_base": "10", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is a Differential Base Converter. A bulky steam-powered machine with multiple dials and brass levers." + } + ], + "edges": [ + { + "source_id": "item_8_ac4a", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_b3e4", + "target_id": "item_8_ac4a", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_1bd7", + "target_id": "item_8_b3e4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_1bd7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_3", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_bigmul", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_bigmul_d1db", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "item_8_a9fe", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "calc_bigmul_ee9b", + "target_id": "calc_bigmul_d1db", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "item_8_366f", + "target_id": "calc_bigmul_ee9b", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_16_4205", + "target_id": "item_8_366f", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_606e", + "target_id": "item_8_a9fe", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_bigmul_ee9b", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_decde96f_narrative.json b/data/questions/15/narrative/skeleton_decde96f_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..be44a08d0b7dac5ee808f0ff973681f1e98bfb77 --- /dev/null +++ b/data/questions/15/narrative/skeleton_decde96f_narrative.json @@ -0,0 +1,846 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "container_1", + "win_condition": { + "type": "item_content", + "node_id": "container_1", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_1", + "terminal_2", + "calc_gcd", + "graph_shortest_path", + "terminal_2_4b9c", + "checksum_crc32_7693" + ], + "by_node": { + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "terminal_2_4b9c": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "checksum_crc32_7693": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_1": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "TO_BE_OR_NOT_TO_BE_THAT_IS_THE_ANSWER" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "827364519283746501928374" + }, + "init_outputs": { + "text_result": "Pending calculation for terminal 2 input stream.", + "hex_result": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" + } + }, + "calc_gcd": { + "init_inputs": { + "b": "102938475610293847561029" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_topology_v2.json", + "src": "Data_Center_North", + "dst": "Backup_Storage_South" + }, + "init_outputs": { + "path": "[\"Data_Center_North\", \"Router_A1\", \"Switch_Core_5\", \"Gateway_Ext\", \"Backup_Storage_South\"]", + "cost": "15042" + } + }, + "terminal_2_4b9c": { + "init_inputs": { + "num2": "918273645091827364509182" + }, + "init_outputs": { + "text_result": "Secondary terminal sequence initiated successfully.", + "hex_result": "11223344556677889900aabbccddeeff" + } + }, + "checksum_crc32_7693": { + "init_inputs": { + "hex": "deadbeefcafe1234567890abcdef1234" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The year is 2142, decades after the Great Collapse. You have stumbled into an underground survival bunker, rumored to hold the 'Genesis Stash'—a cache of purified seeds and clean water filtration blueprints that could restore the wasteland. The bunker is sealed tight, its systems locked behind a complex web of interconnected terminals, forgotten datapads, and jury-rigged machinery. Time is running out as the surface radiation storms grow stronger. You must navigate this desolate facility, tracing the flow of power and data between the decaying devices, to finally uncover the salvation hidden within.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "6466254450eb2cedea326209af2255e9" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "TO_BE_OR_NOT_TO_BE_THAT_IS_THE_ANSWER" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "TO_BE_OR_NOT_TO_BE_THAT_IS_THE_ANSWER" + } + }, + "narrative": "A highly secure containment unit known as the Genesis Stash, holding the final salvation. It requires input from the Signal Combiner to unlock." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "9fa97c0b" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A reinforced steel box functioning as a Supply Cache. It requires input from the Data Validator to authenticate." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "c5d4e690b51d8d5f29e687ff0e90963d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "6466254450eb2cedea326209af2255e9" + } + ], + "narrative": "This is the Signal Combiner, a jury-rigged decryption board. It requires inputs from both the Cipher Module and the Main Frame to generate a complete signal." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "obLD1OX2obLD1OX2obLD1A==" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "c5d4e690b51d8d5f29e687ff0e90963d" + } + ], + "narrative": "This is the Cipher Module, an old military-grade scrambler. It processes data from the Translator." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "obLD1OX2obLD1OX2obLD1A==" + } + ], + "narrative": "This is the Translator, a salvaged communication relay. It requires input from the Main Frame to function." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "827364519283746501928374" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "3" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Pending calculation for terminal 2 input stream." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "827364519283746501928374" + }, + "outputs": { + "text_result": "Pending calculation for terminal 2 input stream.", + "hex_result": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" + } + }, + "narrative": "This is the Main Frame, the central bunker computer. It requires input from the Synchronization Processor to operate." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Rusted Datapad covered in dust and scratch marks. It seems to have been dropped in a hurry." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "15042" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "102938475610293847561029" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3" + } + ], + "init": { + "inputs": { + "b": "102938475610293847561029" + }, + "outputs": {} + }, + "narrative": "This is the Synchronization Processor, a rusty computation unit. It receives input from the Navigational Computer." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "94f5c4fd0e21aa96b43b24c6a986ad52" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "9fa97c0b" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2678684683 + } + ], + "narrative": "This is the Data Validator, a damaged identity verifier. It requires input from the Sector Hasher to confirm clearance." + }, + { + "id": "item_16_ab31", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An Old Access Card, cracked and faded, belonging to a forgotten technician." + }, + { + "id": "hash_md5_bc41", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "[\"Data_Center_North\", \"Router_A1\", \"Switch_Core_5\", \"Gateway_Ext\", \"Backup_Storage_South\"]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "94f5c4fd0e21aa96b43b24c6a986ad52" + } + ], + "narrative": "This is the Sector Hasher, a diagnostic terminal. It requires input from the Navigational Computer." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_v2.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Data_Center_North" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Backup_Storage_South" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Data_Center_North\", \"Router_A1\", \"Switch_Core_5\", \"Gateway_Ext\", \"Backup_Storage_South\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "15042" + } + ], + "init": { + "inputs": { + "file_id": "network_topology_v2.json", + "src": "Data_Center_North", + "dst": "Backup_Storage_South" + }, + "outputs": { + "path": "[\"Data_Center_North\", \"Router_A1\", \"Switch_Core_5\", \"Gateway_Ext\", \"Backup_Storage_South\"]", + "cost": "15042" + } + }, + "narrative": "This is the Navigational Computer, an ancient terrain mapping device powered by a flickering battery." + }, + { + "id": "terminal_2_4b9c", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 270578964 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "918273645091827364509182" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Secondary terminal sequence initiated successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "11223344556677889900aabbccddeeff" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num2": "918273645091827364509182" + }, + "outputs": { + "text_result": "Secondary terminal sequence initiated successfully.", + "hex_result": "11223344556677889900aabbccddeeff" + } + }, + "narrative": "This is the Auxiliary Console, a backup terminal left on standby. It requires input from the Checksum Analyzer." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Dusty Map showing old wasteland schematics." + }, + { + "id": "checksum_crc32_7693", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeefcafe1234567890abcdef1234" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "1020b514" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 270578964 + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafe1234567890abcdef1234" + }, + "outputs": {} + }, + "narrative": "This is the Checksum Analyzer, a portable integrity scanner used by scavengers." + } + ], + "edges": [ + { + "source_id": "container_2", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "text_xor_hex", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "hash_md5", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + }, + { + "source_id": "base64_encode", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "text" + }, + { + "source_id": "terminal_2", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex" + }, + { + "source_id": "item_16", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "checksum_crc32", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_16_ab31", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "hash_md5_bc41", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "terminal_2_4b9c", + "target_id": "base64_encode", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_2", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex_a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "hash_md5_bc41", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "text" + }, + { + "source_id": "item_8", + "target_id": "graph_shortest_path", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "terminal_2", + "target_id": "item_16_ab31", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32_7693", + "target_id": "terminal_2_4b9c", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_e0ef8d0e_narrative.json b/data/questions/15/narrative/skeleton_e0ef8d0e_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..065ad4fa77ef9f8ba2ddbea4d481fc5d71f31173 --- /dev/null +++ b/data/questions/15/narrative/skeleton_e0ef8d0e_narrative.json @@ -0,0 +1,889 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 16, + "win_node_id": "item_12", + "win_condition": { + "type": "item_content", + "node_id": "item_12", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_12", + "terminal_1", + "terminal_1_485e", + "graph_shortest_path", + "text_xor_hex", + "hash_md5", + "checksum_crc32", + "zip_unzip_file", + "matter_synthesizer" + ], + "by_node": { + "item_12": { + "node_name": "", + "node_type": "Item", + "template_id": "item_12", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String", + "description": "The hex code" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "terminal_1_485e": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "text_xor_hex": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_a": { + "type": "Hex_String", + "description": "Hex A" + } + }, + "init_outputs": {} + }, + "hash_md5": { + "node_name": "MD5 Hasher", + "node_type": "Tool", + "template_id": "hash_md5", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_12": { + "init_inputs": {}, + "init_outputs": { + "content": "1234567890abcdef1234567890abcdef" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal 1 text output processed successfully.", + "hex_output": "aa11bb22cc33dd44ee55ff6677889900" + } + }, + "terminal_1_485e": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Hidden terminal system override authenticated.", + "hex_output": "deadbeef12345678cafebabe87654321" + } + }, + "graph_shortest_path": { + "init_inputs": { + "dst": "Node_Omega_99" + }, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Omega_99\"]", + "cost": "348529" + } + }, + "text_xor_hex": { + "init_inputs": { + "hex_a": "112233445566778899aabbccddeeff00" + }, + "init_outputs": {} + }, + "hash_md5": { + "init_inputs": { + "text": "Please hash this specific text sequence for integrity verification." + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "0123456789abcdef0123456789abcdef" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_archive_v2.zip", + "password": "Str0ngP@ssw0rd!88" + }, + "init_outputs": { + "files": "extracted_graph_data.json" + } + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "Blueprint details for the advanced plasma inducer assembly." + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken from cryosleep to the blaring silence of the Research Station Aethelgard. The red emergency lights pulse like a dying heartbeat. The crew is missing, and the station's AI has locked down the control deck. To escape, you must override the central mainframe and retrieve the Captain's emergency override key. The systems are fragmented, linked by a complex web of data streams and physical security protocols. You'll need to synthesize components, decrypt logs, and route power through the station's subsystems to unlock the path home.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "item_12", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_12", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String", + "description": "The hex code", + "value": "1234567890abcdef1234567890abcdef" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "1234567890abcdef1234567890abcdef" + } + }, + "narrative": "The Captain's Override Key. A glowing physical cylinder containing the final access codes, currently locked inside the dispenser slot of the Main Command Interface." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "False" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 1743283752 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal 1 text output processed successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "aa11bb22cc33dd44ee55ff6677889900" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal 1 text output processed successfully.", + "hex_output": "aa11bb22cc33dd44ee55ff6677889900" + } + }, + "narrative": "The Main Command Interface. To release the lockdown, it requires validated authorization codes from the Financial Transaction Verifier and structural data from the Integrity Scanner." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "Hidden terminal system override authenticated." + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "Financial Transaction Verifier. This terminal checks for fraudulent activity. It is waiting for specific account details to be transmitted from the Auxiliary Backup Terminal." + }, + { + "id": "terminal_1_485e", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "CbZ7Qm<:'" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "348529" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Hidden terminal system override authenticated." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeef12345678cafebabe87654321" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Hidden terminal system override authenticated.", + "hex_output": "deadbeef12345678cafebabe87654321" + } + }, + "narrative": "Auxiliary Backup Terminal. This sub-system is currently offline. It requires a plotted course from the Navigation Plotter and decoded command strings from the Hex to Text Decoder to initialize." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_graph_data.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "CbZ7Qm<:'" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_Omega_99" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Omega_99\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "348529" + } + ], + "init": { + "inputs": { + "dst": "Node_Omega_99" + }, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Omega_99\"]", + "cost": "348529" + } + }, + "narrative": "Navigation Plotter. A holographic map table. It calculates the optimal route through the sector, but it requires a map file from the Archive Decryptor and a verified source location from the Data Stream Purifier." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Security Chip Alpha. A small, red translucent chip found floating near a ventilation duct." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "CbZ7Qm<:'" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "CbZ7Qm<:'" + } + ], + "narrative": "Data Stream Purifier. A filtering subroutine designed to strip dangerous control characters. It processes raw text output received from the Hex to Text Decoder." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "cdf643625abb378751956ddb3c3a27b9" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "CbZ7Qm<:'" + } + ], + "narrative": "Hex to Text Decoder. A translation module. It converts raw hexadecimal signals received from the Signal Comparator into readable human language." + }, + { + "id": "item_8_5ef5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Security Chip Beta. A blue memory shard wedged between two wall panels." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "112233445566778899aabbccddeeff00" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "dcd470260fdd400fc83fd617e1d4d8b9" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "cdf643625abb378751956ddb3c3a27b9" + } + ], + "init": { + "inputs": { + "hex_a": "112233445566778899aabbccddeeff00" + }, + "outputs": {} + }, + "narrative": "Signal Comparator. An encryption tool used to compare data signatures. It requires a cryptographic hash input from the Algorithm Processor to function." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Please hash this specific text sequence for integrity verification." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "dcd470260fdd400fc83fd617e1d4d8b9" + } + ], + "init": { + "inputs": { + "text": "Please hash this specific text sequence for integrity verification." + }, + "outputs": {} + }, + "narrative": "Algorithm Processor. A dedicated server rack that converts standard text commands into secure MD5 hash strings." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "0123456789abcdef0123456789abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "67e86628" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1743283752 + } + ], + "init": { + "inputs": { + "hex": "0123456789abcdef0123456789abcdef" + }, + "outputs": {} + }, + "narrative": "Integrity Scanner. A diagnostic tool used to verify data packet consistency. It accepts raw hex data to calculate checksum values." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_archive_v2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Str0ngP@ssw0rd!88" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_graph_data.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_archive_v2.zip", + "password": "Str0ngP@ssw0rd!88" + }, + "outputs": { + "files": "extracted_graph_data.json" + } + }, + "narrative": "Archive Decryptor. A console designed to unlock and extract compressed legacy data files using a password." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_568128b977f92c90" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "Temporal Crystal. A synthesized timing component created by the Matter Fabricator, vibrating with low frequency." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Blueprint details for the advanced plasma inducer assembly." + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_568128b977f92c90" + } + ], + "init": { + "inputs": { + "blueprint": "Blueprint details for the advanced plasma inducer assembly." + }, + "outputs": {} + }, + "narrative": "Matter Fabricator. An industrial-grade replicator capable of synthesizing complex physical items from text-based blueprints." + } + ], + "edges": [ + { + "source_id": "terminal_1", + "target_id": "item_12", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "iban_validate", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "slot_a" + }, + { + "source_id": "terminal_1_485e", + "target_id": "iban_validate", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1_485e", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "item_8", + "target_id": "terminal_1_485e", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "hex_decode", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "item_8_5ef5", + "target_id": "graph_shortest_path", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "text_xor_hex", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "terminal_1_485e", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "iban" + }, + { + "source_id": "hash_md5", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + }, + { + "source_id": "hex_decode", + "target_id": "terminal_1_485e", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "slot_a" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_16", + "target_id": "text_xor_hex", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "matter_synthesizer", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_e1cd57a7_narrative.json b/data/questions/15/narrative/skeleton_e1cd57a7_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..8a5f9abf5f02c97c0e4ce5366195457df486f3ee --- /dev/null +++ b/data/questions/15/narrative/skeleton_e1cd57a7_narrative.json @@ -0,0 +1,754 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 15, + "win_node_id": "item_2", + "win_condition": { + "type": "item_content", + "node_id": "item_2", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_2", + "zip_unzip_file", + "zlib_deflate", + "zip_unzip_file_c761", + "container_2", + "json_get", + "item_9", + "luhn_check" + ], + "by_node": { + "item_2": { + "node_name": "", + "node_type": "Item", + "template_id": "item_2", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Text_Generic", + "description": "The text" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zlib_deflate": { + "node_name": "Zlib Deflate", + "node_type": "Tool", + "template_id": "zlib_deflate", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to compress" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_c761": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "container_2": { + "node_name": "", + "node_type": "Item", + "template_id": "container_2", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": {}, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_2": { + "init_inputs": {}, + "init_outputs": { + "content": ".... . .-.. .-.. --- / .-- --- .-. .-.. -.." + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_payload_data.txt" + } + }, + "zlib_deflate": { + "init_inputs": { + "text": "Start compression sequence for the provided text block." + }, + "init_outputs": {} + }, + "zip_unzip_file_c761": { + "init_inputs": { + "zip_id": "archive_secure_backup.zip" + }, + "init_outputs": { + "files": "internal_confidential_doc.pdf" + } + }, + "container_2": { + "init_inputs": { + "fingerprint_input": "1a2b3c4d5e6f78901a2b3c4d5e6f7890" + }, + "init_outputs": {} + }, + "json_get": { + "init_inputs": {}, + "init_outputs": { + "values": "retrieved_secret_key_value_12345" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "configuration_map.json" + } + }, + "luhn_check": { + "init_inputs": { + "number": "4556737586899855" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The neon hum of Neo-Kyoto's undercity buzzes outside the reinforced glass. You are trapped in the server room of the Arasaka sub-grid, surrounded by cooling towers and blinking terminals. Your exit—the Mainframe Airlock—is sealed tight. To escape before the ICE countermeasures fry your neural link, you must navigate a web of encrypted data, physical keys, and legacy protocols. Scattered around the room are various hacking tools and locked containers. You'll need to chain these systems together, feeding the output of one into the next, to synthesize the final key.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "item_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Text_Generic", + "description": "The text", + "value": ".... . .-.. .-.. --- / .-- --- .-. .-.. -.." + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": ".... . .-.. .-.. --- / .-- --- .-. .-.. -.." + } + }, + "narrative": "The Mainframe Airlock. It is a heavy, blast-proof door with a single interface slot waiting for the final key." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Quantum Key. A shimmering, physical manifestation of the unlock code." + }, + { + "id": "item_8_e502", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Raw Data Shard. A fragmented piece of code extracted from the matrix." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Decrypted Matrix. A stable data construct ready for processing." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_payload_data.txt" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "eJwFwYENgCAMBMBVfgKXcQIsbyAqxfY1ju/dqhKC+TWDmd0HkvfDYcTuATVihr+9skL8hO10O5YfUtcU3Q==" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip", + "value": "" + } + ], + "narrative": "The Master Decryptor terminal. It requires the file extracted from the Secondary Archive and the authorization code generated by the Protocol Converter." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "internal_confidential_doc.pdf" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "False" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_payload_data.txt" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_payload_data.txt" + } + }, + "narrative": "The Secondary Archive. A heavily encrypted zip file. It requires the file ID from the Primary Archive and a valid password verified by the Bank Server." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "eJwFwYENgCAMBMBVfgKXcQIsbyAqxfY1ju/dqhKC+TWDmd0HkvfDYcTuATVihr+9skL8hO10O5YfUtcU3Q==" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "The Bank Server Interface. A terminal connected to the global financial grid. It requires the encoded string from the Protocol Converter to verify the transaction." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "789c05c1810d80200c04c0557e029771022c6f202ac5f6358eefddaa1282f9358399dd0792f7c361c4ee01356286bfbdb242fc84ed743b961f52d714dd" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "eJwFwYENgCAMBMBVfgKXcQIsbyAqxfY1ju/dqhKC+TWDmd0HkvfDYcTuATVihr+9skL8hO10O5YfUtcU3Q==" + } + ], + "narrative": "The Protocol Converter. An encoding rig used to translate data formats. It requires the hex output from the Compression Algorithm and the hardware token found inside the Biometric Safe." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "Start compression sequence for the provided text block." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c05c1810d80200c04c0557e029771022c6f202ac5f6358eefddaa1282f9358399dd0792f7c361c4ee01356286bfbdb242fc84ed743b961f52d714dd" + } + ], + "init": { + "inputs": { + "text": "Start compression sequence for the provided text block." + }, + "outputs": {} + }, + "narrative": "The Compression Algorithm. A standalone console running a zlib deflation script." + }, + { + "id": "zip_unzip_file_c761", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_secure_backup.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "retrieved_secret_key_value_12345" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "internal_confidential_doc.pdf" + } + ], + "init": { + "inputs": { + "zip_id": "archive_secure_backup.zip" + }, + "outputs": { + "files": "internal_confidential_doc.pdf" + } + }, + "narrative": "The Primary Archive. A standard security partition. It requires the password value extracted by the Data Miner." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "1a2b3c4d5e6f78901a2b3c4d5e6f7890" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "1a2b3c4d5e6f78901a2b3c4d5e6f7890" + }, + "outputs": {} + }, + "narrative": "The Biometric Safe. A steel box with a fingerprint scanner, waiting for a specific biometric input." + }, + { + "id": "item_8_0d1f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Biometric Finger. A synthetic digit with a unique print, likely lifted from a security guard." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "configuration_map.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "true" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "retrieved_secret_key_value_12345" + } + ], + "init": { + "inputs": {}, + "outputs": { + "values": "retrieved_secret_key_value_12345" + } + }, + "narrative": "The Data Miner. A script designed to parse JSON structures. It requires the target file ID from the Datacore Canister and the search path derived from the Credit Chip Scanner." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "configuration_map.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "configuration_map.json" + } + }, + "narrative": "The Datacore Canister. A portable storage unit labeled with file paths." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "4556737586899855" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "true" + } + ], + "init": { + "inputs": { + "number": "4556737586899855" + }, + "outputs": {} + }, + "narrative": "The Credit Chip Scanner. A handheld device used to validate credit card number checksums." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_e502", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_e502", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_file", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "iban_validate", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "base64_encode", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "iban" + }, + { + "source_id": "zlib_deflate", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "zip_unzip_file_c761", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "container_2", + "target_id": "base64_encode", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "base64_encode", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "password" + }, + { + "source_id": "item_8_0d1f", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "json_get", + "target_id": "zip_unzip_file_c761", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "password" + }, + { + "source_id": "item_9", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + }, + { + "source_id": "luhn_check", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "jsonpath" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_e359fd19_narrative.json b/data/questions/15/narrative/skeleton_e359fd19_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..1e98fc2f968e93cc4e3e72e06fc422a05211f140 --- /dev/null +++ b/data/questions/15/narrative/skeleton_e359fd19_narrative.json @@ -0,0 +1,966 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "calc_modexp", + "win_condition": { + "type": "tool_output", + "node_id": "calc_modexp", + "output_port": "value", + "output_type": "Big_Int", + "description": "Execute BigInt Modular Exponentiation and get the output from port 'value'" + }, + "source_init": { + "source_nodes": [ + "num_base_convert", + "hash_md5", + "calc_modexp_703a", + "num_base_convert_1be9", + "num_base_convert_837c", + "zip_unzip_item", + "num_base_convert_c18d", + "calc_modexp_6ee3", + "item_1", + "checksum_crc32_efa1" + ], + "by_node": { + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "hash_md5": { + "node_name": "MD5 Hasher", + "node_type": "Tool", + "template_id": "hash_md5", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "calc_modexp_703a": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "num_base_convert_1be9": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "num_base_convert_837c": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "num_base_convert_c18d": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "calc_modexp_6ee3": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "checksum_crc32_efa1": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "num_base_convert": { + "init_inputs": { + "to_base": "10" + }, + "init_outputs": {} + }, + "hash_md5": { + "init_inputs": { + "text": "Authentication protocol sequence initiated for node access." + }, + "init_outputs": {} + }, + "calc_modexp_703a": { + "init_inputs": { + "base": "5", + "exp": "82736451029384756102938475", + "mod": "104729" + }, + "init_outputs": {} + }, + "num_base_convert_1be9": { + "init_inputs": { + "from_base": "16", + "to_base": "10" + }, + "init_outputs": {} + }, + "num_base_convert_837c": { + "init_inputs": { + "s": "19283746501928374650192837465", + "to_base": "10" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "crypto_volume_04.zip", + "password": "gamma_delta_secure_99" + }, + "init_outputs": {} + }, + "num_base_convert_c18d": { + "init_inputs": { + "s": "667788990011223344556677889900" + }, + "init_outputs": {} + }, + "calc_modexp_6ee3": { + "init_inputs": { + "base": "2", + "mod": "999983" + }, + "init_outputs": {} + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "772233445566112233445566112233" + } + }, + "checksum_crc32_efa1": { + "init_inputs": { + "hex": "deadbeefcafebabe12345678" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are an elite cyber-infiltrator trapped in the underground server bunker of the shadowy KRONOS Syndicate. Their rogue AI is minutes away from wiping your neural implants and deploying a devastating global financial blackout. The dimly lit room is a maze of blinking server racks, tangled fiber-optic cables, and standalone decryption terminals. To survive and abort the launch sequence, you must trace and manipulate the syndicate's fragmented data streams across various hardware modules. Your ultimate goal is to process the data correctly and feed it into the Final Overload Switch. The system is heavily fortified, and every piece of data must be routed through the precise sequence of quantum multipliers, protocol translators, and integrity validators. Time is running out.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": 4194261055 + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "33541" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "0" + } + ], + "narrative": "The Final Overload Switch. It requires inputs from the Signal Synchronizer, the Mainframe Uplink, and the Core Checksum Validator to execute the complete system override." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "12877473600155210491328652360106498112411782348109865103500" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "33541" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "A Signal Synchronizer. It requires inputs from both the Quantum Multiplier and the Mainframe Uplink to eliminate noise in the transmission." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "667788990011223344556677889900" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "19283746501928374650192837465" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "12877473600155210491328652360106498112411782348109865103500" + } + ], + "narrative": "A Quantum Multiplier array. It requires inputs from both Data Format Converter Beta and Data Format Converter Alpha to combine the deciphered streams." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "33541" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "7992705670666217304465699415055284644488123845089707233334049010365696" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "33541" + } + ], + "init": { + "inputs": { + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The Mainframe Uplink terminal. It requires inputs from both the Cryptographic Key Generator and the Protocol Translator to initiate the handshake." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "616c768b4171fd98aa9fcefab907d28a" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A Biometric Vault hidden in the server rack. It requires input from the Authentication Hasher to unlock." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "616c768b4171fd98aa9fcefab907d28a" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "f9ff583f" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 4194261055 + } + ], + "narrative": "A Core Checksum Validator. It requires input from the Authentication Hasher to establish a verified connection." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Authentication protocol sequence initiated for node access." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "616c768b4171fd98aa9fcefab907d28a" + } + ], + "init": { + "inputs": { + "text": "Authentication protocol sequence initiated for node access." + }, + "outputs": {} + }, + "narrative": "An Authentication Hasher used to verify secure digital footprints and access logs." + }, + { + "id": "calc_modexp_703a", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "5" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "82736451029384756102938475" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "33541" + } + ], + "init": { + "inputs": { + "base": "5", + "exp": "82736451029384756102938475", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "A Cryptographic Key Generator continuously cycling through security variables." + }, + { + "id": "num_base_convert_1be9", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "12877473600155210491328652360106498112411782348109865103500" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "7992705670666217304465699415055284644488123845089707233334049010365696" + } + ], + "init": { + "inputs": { + "from_base": "16", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "A Protocol Translator. It requires input from the Quantum Multiplier to decode the massive data blocks into readable formats." + }, + { + "id": "num_base_convert_837c", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "19283746501928374650192837465" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": 4194261055 + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "19283746501928374650192837465" + } + ], + "init": { + "inputs": { + "s": "19283746501928374650192837465", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "Data Format Converter Beta. It requires input from the Core Checksum Validator to adapt the architecture." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "crypto_volume_04.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "gamma_delta_secure_99" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "crypto_volume_04.zip", + "password": "gamma_delta_secure_99" + }, + "outputs": {} + }, + "narrative": "An Encrypted Archive Extracter used by the syndicate to hide their deepest payloads." + }, + { + "id": "num_base_convert_c18d", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "667788990011223344556677889900" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": 567111675 + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "861450" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "667788990011223344556677889900" + } + ], + "init": { + "inputs": { + "s": "667788990011223344556677889900" + }, + "outputs": {} + }, + "narrative": "Data Format Converter Alpha. It requires inputs from both the Sub-routine Exponentiator and the Legacy Integrity Checker to align the network streams." + }, + { + "id": "calc_modexp_6ee3", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "2" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "772233445566112233445566112233" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "861450" + } + ], + "init": { + "inputs": { + "base": "2", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "A Sub-routine Exponentiator. It requires input from the Torn Digital Ledger to process the raw numeric sequences." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "772233445566112233445566112233" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "772233445566112233445566112233" + } + }, + "narrative": "A Torn Digital Ledger recovered from a compromised operative's datapad." + }, + { + "id": "checksum_crc32_efa1", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeefcafebabe12345678" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "21cd6ffb" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 567111675 + } + ], + "init": { + "inputs": { + "hex": "deadbeefcafebabe12345678" + }, + "outputs": {} + }, + "narrative": "A Legacy Integrity Checker terminal left on standby near the cooling vents." + } + ], + "edges": [ + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "container_1", + "target_id": "num_base_convert", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "base" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "hash_md5", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_modexp_703a", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "s" + }, + { + "source_id": "num_base_convert_1be9", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "from_base" + }, + { + "source_id": "num_base_convert_837c", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert_837c", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "from_base" + }, + { + "source_id": "zip_unzip_item", + "target_id": "hash_md5", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert_1be9", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "num_base_convert_c18d", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "calc_modexp_6ee3", + "target_id": "num_base_convert_c18d", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "to_base" + }, + { + "source_id": "hash_md5", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_1", + "target_id": "calc_modexp_6ee3", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "exp" + }, + { + "source_id": "checksum_crc32_efa1", + "target_id": "num_base_convert_c18d", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "from_base" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_e5b87db3_narrative.json b/data/questions/15/narrative/skeleton_e5b87db3_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..8285883ba85d3b6cef1d29544b095bcbd8202481 --- /dev/null +++ b/data/questions/15/narrative/skeleton_e5b87db3_narrative.json @@ -0,0 +1,863 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 20, + "win_node_id": "calc_bigmul", + "win_condition": { + "type": "tool_output", + "node_id": "calc_bigmul", + "output_port": "product", + "output_type": "Big_Int", + "description": "Execute Big Number Multiplier and get the output from port 'product'" + }, + "source_init": { + "source_nodes": [ + "calc_inv_mod", + "num_base_convert_616c", + "calc_bigmul_9cfd", + "num_base_convert_123d", + "graph_shortest_path", + "checksum_crc32", + "text_bidi_sanitize" + ], + "by_node": { + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "num_base_convert_616c": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "calc_bigmul_9cfd": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "num_base_convert_123d": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "text_bidi_sanitize": { + "node_name": "Bidi Sanitizer", + "node_type": "Tool", + "template_id": "text_bidi_sanitize", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "calc_inv_mod": { + "init_inputs": { + "mod": "982451" + }, + "init_outputs": {} + }, + "num_base_convert_616c": { + "init_inputs": { + "from_base": "10" + }, + "init_outputs": {} + }, + "calc_bigmul_9cfd": { + "init_inputs": { + "a": "8592018374659201837465921", + "b": "1928374650192837465019283" + }, + "init_outputs": {} + }, + "num_base_convert_123d": { + "init_inputs": { + "s": "4728190384756192038475612" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_topology_final.json", + "src": "Gateway_Node_Alpha" + }, + "init_outputs": { + "path": "[\"Gateway_Node_Alpha\", \"Router_Cluster_7\", \"Switch_Edge_9\", \"Terminal_End_Z\"]", + "cost": "16" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "4a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "init_outputs": {} + }, + "text_bidi_sanitize": { + "init_inputs": { + "text": "User supplied text with potential bidirectional override characters for filtering." + }, + "init_outputs": {} + } + }, + "intro_narrative": "The rain hasn't stopped for three days in the neon-lit city of Veridian. You stand inside the dimly lit office of Detective Vance, a private investigator who vanished without a trace last week while looking into the 'Shadow Syndicate'. The room is a mess of scattered files, bizarre electronic devices, and blinking terminals. Vance was paranoid, and rightfully so—he encrypted his ultimate findings behind a complex web of interconnected gadgets and hidden compartments. Your objective is clear: you must piece together the fragmented clues, route the correct data through his custom-built decryption array, and activate the Final Masterframe to uncover the identity of the syndicate's leader before they find you.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "622527" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "4728190384756192038475612" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "2943426175651117961136107311524" + } + ], + "narrative": "The Final Masterframe. It requires inputs from both the Cryptographic Inverter and the Frequency Modulator to reveal the ultimate truth." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "78339639076753749151208495475091971520554318611045138204162340118546466516" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "982451" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "622527" + } + ], + "init": { + "inputs": { + "mod": "982451" + }, + "outputs": {} + }, + "narrative": "A Cryptographic Inverter. It requires input from the Evidence Synthesizer." + }, + { + "id": "calc_bigmul_37c2", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "4728190384756192038475612" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "16568630427683870255371082906881473618562120354643" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "78339639076753749151208495475091971520554318611045138204162340118546466516" + } + ], + "narrative": "An Evidence Synthesizer. It requires inputs from the Signal Decoder and the Financial Records Decryptor." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": 2905191833 + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A heavy steel Evidence Safe. It requires input from the Fingerprint Scanner." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "4728190384756192038475612" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16568630427683870255371082906881473618562120354643" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "4728190384756192038475612" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "4728190384756192038475612" + } + ], + "narrative": "A Signal Decoder. It requires inputs from the Frequency Modulator, the Financial Records Decryptor, and the Coordinates Converter." + }, + { + "id": "num_base_convert_616c", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "4728190384756192038475612" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "75651046156099072615609792" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "4728190384756192038475612" + } + ], + "init": { + "inputs": { + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "A Frequency Modulator device. It requires inputs from both the Coordinates Converter and the Distance Multiplier Unit." + }, + { + "id": "calc_bigmul_9cfd", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "8592018374659201837465921" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "1928374650192837465019283" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "16568630427683870255371082906881473618562120354643" + } + ], + "init": { + "inputs": { + "a": "8592018374659201837465921", + "b": "1928374650192837465019283" + }, + "outputs": {} + }, + "narrative": "An old Financial Records Decryptor left behind by the victim." + }, + { + "id": "num_base_convert_123d", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "4728190384756192038475612" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16568630427683870255371082906881473618562120354643" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "16" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "4728190384756192038475612" + } + ], + "init": { + "inputs": { + "s": "4728190384756192038475612" + }, + "outputs": {} + }, + "narrative": "A complex Coordinates Converter. It requires inputs from both the Financial Records Decryptor and the City Map Analyzer." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Suspect's Wallet found abandoned at the crime scene." + }, + { + "id": "calc_bigmul_7b7d", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "4728190384756192038475612" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "16" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "75651046156099072615609792" + } + ], + "narrative": "A Distance Multiplier Unit. It requires inputs from the City Map Analyzer and the Coordinates Converter." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_topology_final.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Gateway_Node_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "User supplied text with potential bidirectional override characters for filtering." + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Gateway_Node_Alpha\", \"Router_Cluster_7\", \"Switch_Edge_9\", \"Terminal_End_Z\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "16" + } + ], + "init": { + "inputs": { + "file_id": "network_topology_final.json", + "src": "Gateway_Node_Alpha" + }, + "outputs": { + "path": "[\"Gateway_Node_Alpha\", \"Router_Cluster_7\", \"Switch_Edge_9\", \"Terminal_End_Z\"]", + "cost": "16" + } + }, + "narrative": "A high-tech City Map Analyzer. It requires input from the Text Sanitizer Terminal." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "4a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "ad29b599" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2905191833 + } + ], + "init": { + "inputs": { + "hex": "4a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "outputs": {} + }, + "narrative": "A sophisticated Fingerprint Scanner." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Hidden Compartment beneath the squeaky floorboards." + }, + { + "id": "item_8_77ab", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Locked Desk Drawer in the corner of the office." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "User supplied text with potential bidirectional override characters for filtering." + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "User supplied text with potential bidirectional override characters for filtering." + } + ], + "init": { + "inputs": { + "text": "User supplied text with potential bidirectional override characters for filtering." + }, + "outputs": {} + }, + "narrative": "A dusty Text Sanitizer Terminal sitting on the detective's desk." + } + ], + "edges": [ + { + "source_id": "calc_inv_mod", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_bigmul_37c2", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "container_3", + "target_id": "calc_inv_mod", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_bigmul_37c2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "num_base_convert_616c", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "to_base" + }, + { + "source_id": "calc_bigmul_9cfd", + "target_id": "calc_bigmul_37c2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "calc_bigmul_9cfd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "from_base" + }, + { + "source_id": "num_base_convert_123d", + "target_id": "num_base_convert_616c", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "s" + }, + { + "source_id": "item_16", + "target_id": "num_base_convert_123d", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_bigmul_7b7d", + "target_id": "num_base_convert_616c", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "to_base" + }, + { + "source_id": "calc_bigmul_9cfd", + "target_id": "num_base_convert_123d", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "from_base" + }, + { + "source_id": "num_base_convert_616c", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "num_base_convert_123d", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "s" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul_7b7d", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "num_base_convert_123d", + "target_id": "calc_bigmul_7b7d", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "fingerprint_input" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert_123d", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "to_base" + }, + { + "source_id": "item_8", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_77ab", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_e95b1127_narrative.json b/data/questions/15/narrative/skeleton_e95b1127_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..369f56fb5af11b4a574f60c59ef8c792310d043d --- /dev/null +++ b/data/questions/15/narrative/skeleton_e95b1127_narrative.json @@ -0,0 +1,976 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 17, + "win_node_id": "container_1", + "win_condition": { + "type": "item_content", + "node_id": "container_1", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_1", + "terminal_1", + "graph_shortest_path", + "graph_shortest_path_0ed2", + "calc_modexp_3ed3", + "calc_bigmul", + "calc_modexp_cdaa", + "calc_inv_mod" + ], + "by_node": { + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "graph_shortest_path_0ed2": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "calc_modexp_3ed3": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "calc_modexp_cdaa": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_1": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "01000101 01011000 01001001 01010100" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System initialized. Waiting for secure input sequence.", + "hex_output": "48656c6c6f576f726c644b6579313233", + "item_dispenser": "Standard Issue Protocol Droid" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_backbone_v4.json", + "src": "Server_Cluster_Alpha", + "dst": "Gateway_Node_Zeta" + }, + "init_outputs": { + "path": "[\"Server_Cluster_Alpha\", \"Router_X\", \"Switch_99\", \"Firewall_Prime\", \"Gateway_Node_Zeta\"]", + "cost": "3452" + } + }, + "graph_shortest_path_0ed2": { + "init_inputs": { + "file_id": "logistics_map_area_51.json", + "src": "Warehouse_Sector_7" + }, + "init_outputs": { + "path": "[\"Warehouse_Sector_7\", \"Distribution_Hub\", \"Transit_Point_B\", \"Final_Delivery\"]", + "cost": "891" + } + }, + "calc_modexp_3ed3": { + "init_inputs": { + "exp": "8473625192837465102938475", + "mod": "524287" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "394857261524384756291029384", + "b": "918273645019283746519283746" + }, + "init_outputs": {} + }, + "calc_modexp_cdaa": { + "init_inputs": { + "base": "65748392018273645192837465", + "exp": "19283746509182736451928374", + "mod": "104729" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "74839201928374651928374651", + "mod": "999983" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are a rogue cyber-operative who has infiltrated the clandestine server farm of the shadow corporation, OmniCorp. The air hums with the sound of cooling fans, and blinking LEDs cast an eerie glow across the cold, metallic room. Your mission is clear: extract the encrypted ledger hidden within The Mainframe Vault before the automated security sweep locks you out forever. The entire network is a labyrinth of encrypted nodes, financial routing checkpoints, and complex cryptographic processors left behind by previous operatives. You must trace the correct data paths, align the cryptographic defenses, and navigate the maze of interconnected systems to forge the final authentication token. Time is ticking, and the corporation's digital watchdogs are already sniffing your trail.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "48656c6c6f576f726c644b6579313233" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "01000101 01011000 01001001 01010100" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "01000101 01011000 01001001 01010100" + } + }, + "narrative": "The Mainframe Vault. A heavy-duty server vault storing the final objective. It requires input from The Authentication Terminal to release its physical lock." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "False" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "37" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System initialized. Waiting for secure input sequence." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "48656c6c6f576f726c644b6579313233" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Standard Issue Protocol Droid" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System initialized. Waiting for secure input sequence.", + "hex_output": "48656c6c6f576f726c644b6579313233", + "item_dispenser": "Standard Issue Protocol Droid" + } + }, + "narrative": "The Authentication Terminal. A high-security biometric console. It requires inputs from both The Core Crypto-Processor and The Global Routing Checker to grant access." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "802190" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "11" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "77" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "37" + } + ], + "narrative": "The Core Crypto-Processor. A heavily modified quantum calculation unit. It requires inputs from The Sub-Crypto-Processor, The Signal Analyzer, and The Logic Inverter to generate its final key." + }, + { + "id": "calc_modexp_eabf", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "11" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "437964" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "3452" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "77" + } + ], + "narrative": "The Sub-Crypto-Processor. An intermediate decryption relay. It requires inputs from The Signal Analyzer, The Primary Network Tracer, and The Baseline Crypto-Processor to function." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "False" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "The Global Routing Checker. A global financial tracking interface. It requires input from The Regional Routing Checker to validate international transaction paths." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "891" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "77704" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "11" + } + ], + "narrative": "The Signal Analyzer. An advanced frequency alignment tool. It requires inputs from The Secondary Network Tracer and The Auxiliary Crypto-Processor to find the common signal divisor." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Encrypted Payload. A suspicious digital package found hidden deep within the system logs." + }, + { + "id": "item_8_2783", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Data Intercept. A fragmented cache of intercepted network traffic containing garbled data." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_backbone_v4.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Server_Cluster_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Gateway_Node_Zeta" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Server_Cluster_Alpha\", \"Router_X\", \"Switch_99\", \"Firewall_Prime\", \"Gateway_Node_Zeta\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "3452" + } + ], + "init": { + "inputs": { + "file_id": "network_backbone_v4.json", + "src": "Server_Cluster_Alpha", + "dst": "Gateway_Node_Zeta" + }, + "outputs": { + "path": "[\"Server_Cluster_Alpha\", \"Router_X\", \"Switch_99\", \"Firewall_Prime\", \"Gateway_Node_Zeta\"]", + "cost": "3452" + } + }, + "narrative": "The Primary Network Tracer. A diagnostic tool used to map out the fastest data routes across the dark web infrastructure." + }, + { + "id": "graph_shortest_path_0ed2", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "logistics_map_area_51.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Warehouse_Sector_7" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "False" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Warehouse_Sector_7\", \"Distribution_Hub\", \"Transit_Point_B\", \"Final_Delivery\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "891" + } + ], + "init": { + "inputs": { + "file_id": "logistics_map_area_51.json", + "src": "Warehouse_Sector_7" + }, + "outputs": { + "path": "[\"Warehouse_Sector_7\", \"Distribution_Hub\", \"Transit_Point_B\", \"Final_Delivery\"]", + "cost": "891" + } + }, + "narrative": "The Secondary Network Tracer. A backup routing mapper for classified networks. It requires input from The Global Routing Checker to pinpoint the exact destination." + }, + { + "id": "iban_validate_7a42", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "[\"Server_Cluster_Alpha\", \"Router_X\", \"Switch_99\", \"Firewall_Prime\", \"Gateway_Node_Zeta\"]" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "The Regional Routing Checker. A local banking verification module. It requires input from The Primary Network Tracer to verify offshore accounts." + }, + { + "id": "calc_modexp_3ed3", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "362587016802329373884334999594056979311695268719592464" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "8473625192837465102938475" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "524287" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "437964" + } + ], + "init": { + "inputs": { + "exp": "8473625192837465102938475", + "mod": "524287" + }, + "outputs": {} + }, + "narrative": "The Baseline Crypto-Processor. The first layer of cryptographic defense. It requires input from The Bandwidth Amplifier to start processing the cipher." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "394857261524384756291029384" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "918273645019283746519283746" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "362587016802329373884334999594056979311695268719592464" + } + ], + "init": { + "inputs": { + "a": "394857261524384756291029384", + "b": "918273645019283746519283746" + }, + "outputs": {} + }, + "narrative": "The Bandwidth Amplifier. A server rack dedicated to amplifying network throughput and multiplying data packet sizes." + }, + { + "id": "calc_modexp_cdaa", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "65748392018273645192837465" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "19283746509182736451928374" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "77704" + } + ], + "init": { + "inputs": { + "base": "65748392018273645192837465", + "exp": "19283746509182736451928374", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "The Auxiliary Crypto-Processor. A standalone processing unit left behind by a previous hacker. It operates independently." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "74839201928374651928374651" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "802190" + } + ], + "init": { + "inputs": { + "a": "74839201928374651928374651", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "The Logic Inverter. A reverse-engineering workstation designed to invert modular protocols." + } + ], + "edges": [ + { + "source_id": "terminal_1", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "slot_b" + }, + { + "source_id": "calc_modexp_eabf", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "iban_validate", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "slot_a" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "exp" + }, + { + "source_id": "item_8", + "target_id": "calc_modexp_eabf", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp_eabf", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "item_8_2783", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp_eabf", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path_0ed2", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "iban_validate", + "target_id": "graph_shortest_path_0ed2", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "dst" + }, + { + "source_id": "iban_validate_7a42", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "iban" + }, + { + "source_id": "calc_modexp_3ed3", + "target_id": "calc_modexp_eabf", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "exp" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp_3ed3", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "iban_validate_7a42", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "iban" + }, + { + "source_id": "calc_modexp_cdaa", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "base" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_eb9e6398_narrative.json b/data/questions/15/narrative/skeleton_eb9e6398_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..7603067b3a4d300986252876c0fec0cefd6d0c2a --- /dev/null +++ b/data/questions/15/narrative/skeleton_eb9e6398_narrative.json @@ -0,0 +1,966 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "calc_gcd", + "win_condition": { + "type": "tool_output", + "node_id": "calc_gcd", + "output_port": "gcd", + "output_type": "Big_Int", + "description": "Execute BigInt GCD Calculator and get the output from port 'gcd'" + }, + "source_init": { + "source_nodes": [ + "num_base_convert", + "terminal_2", + "calc_inv_mod", + "zip_unzip_item", + "calc_inv_mod_ed3d", + "calc_bigmul", + "time_convert", + "json_get", + "zip_unzip_file", + "checksum_crc32_07b9" + ], + "by_node": { + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "calc_inv_mod_ed3d": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "time_convert": { + "node_name": "Timezone Converter", + "node_type": "Tool", + "template_id": "time_convert", + "init_inputs": { + "from_tz": { + "type": "Text_Generic", + "description": "From Timezone" + } + }, + "init_outputs": {} + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "jsonpath": { + "type": "Text_Generic", + "description": "JSONPath expression" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "checksum_crc32_07b9": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "num_base_convert": { + "init_inputs": { + "from_base": "10" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "2025-06-15T08:30:00Z", + "hex_result": "4a7f9b2c8d1e0f5a3b6c9d2e1f4a7b0c" + } + }, + "calc_inv_mod": { + "init_inputs": { + "a": "8923746510293847561029384" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "archive_data_2024.zip", + "password": "CorrectHorseBatteryStaple" + }, + "init_outputs": {} + }, + "calc_inv_mod_ed3d": { + "init_inputs": { + "a": "5647382910293847561928374", + "mod": "104729" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "3847561029384756102938475", + "b": "9182736450192837465019283" + }, + "init_outputs": {} + }, + "time_convert": { + "init_inputs": { + "from_tz": "America/Los_Angeles" + }, + "init_outputs": {} + }, + "json_get": { + "init_inputs": { + "jsonpath": "$.configuration.preferences.timezone" + }, + "init_outputs": { + "values": "Asia/Tokyo" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "system_backup_v2.zip", + "password": "secure_access_code_99" + }, + "init_outputs": { + "files": "configuration.json" + } + }, + "checksum_crc32_07b9": { + "init_inputs": { + "hex": "1234567890abcdef1234567890abcdef" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You wake up in the dimly lit study of the infamous cryptographer, Elias Thorne. The heavy oak door behind you is sealed shut with an incredibly complex mechanical lock. Thorne was known for his eccentric paranoia, hiding his greatest secrets behind layers of obscure mathematical puzzles and interconnected devices. As you look around the room, you see strange, antique calculating machines, digital archives, and brass-rimmed terminals. Your objective is clear: you must deduce the correct sequence of operations, decipher the hidden connections between these arcane devices, and feed the correct final sequence into the lock to escape before time runs out. Every machine in this room is a piece of a larger puzzle, with information flowing from one contraption to another. Pay close attention to the mechanisms.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 4056184602 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "1367169359" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "The Master Cryptex. The ultimate puzzle lock securing the exit door. It requires inputs from both the Cipher Translator and the Final Verifier to finally open." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1367169359" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "73116" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1367169359" + } + ], + "init": { + "inputs": { + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "The Cipher Translator. A rotating translation cylinder. It requires inputs from both the First Reversal Engine and the Second Reversal Engine to decode the signal." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "91bbd330eef9a782ddda992421447afbbdd9f6485aeff5aad559b9c8d1b5f3da" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "f1c4771a" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 4056184602 + } + ], + "narrative": "The Final Verifier. A pristine validation scanner. It requires input from the Secondary Authenticator to produce its output." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "1911f553c17797386ea394b30c87aff441258156c28b0ad52f61d80f6ee9ba80" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Asia/Tokyo" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "91bbd330eef9a782ddda992421447afbbdd9f6485aeff5aad559b9c8d1b5f3da" + } + ], + "narrative": "The Secondary Authenticator. A reinforced digital padlock. It requires inputs from both the Primary Authenticator and the Data Extractor to proceed." + }, + { + "id": "hmac_sha256_0eba", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "4a7f9b2c8d1e0f5a3b6c9d2e1f4a7b0c" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "2025-06-15T17:30:00+09:00" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "1911f553c17797386ea394b30c87aff441258156c28b0ad52f61d80f6ee9ba80" + } + ], + "narrative": "The Primary Authenticator. A complex locking mechanism. It requires inputs from both the Main Terminal and the Chronograph to generate its key." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "35331138908872874856226625885777310821898837613425" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "73116" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "2025-06-15T08:30:00Z" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "4a7f9b2c8d1e0f5a3b6c9d2e1f4a7b0c" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "2025-06-15T08:30:00Z", + "hex_result": "4a7f9b2c8d1e0f5a3b6c9d2e1f4a7b0c" + } + }, + "narrative": "The Main Terminal. An imposing central computer. It requires inputs from both the Amplification Device and the Second Reversal Engine to function." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "8923746510293847561029384" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 1977564639 + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1367169359" + } + ], + "init": { + "inputs": { + "a": "8923746510293847561029384" + }, + "outputs": {} + }, + "narrative": "The First Reversal Engine. A peculiar gear-driven contraption. It requires input from the Initial Verifier to align its internal mechanisms." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_data_2024.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "CorrectHorseBatteryStaple" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "archive_data_2024.zip", + "password": "CorrectHorseBatteryStaple" + }, + "outputs": {} + }, + "narrative": "The Item Lockbox. A locked metal box that securely holds something inside. It seems entirely self-contained." + }, + { + "id": "calc_inv_mod_ed3d", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "5647382910293847561928374" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "73116" + } + ], + "init": { + "inputs": { + "a": "5647382910293847561928374", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "The Second Reversal Engine. An antique calculating machine with interlocking gears. It functions independently." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "3847561029384756102938475" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "9182736450192837465019283" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "35331138908872874856226625885777310821898837613425" + } + ], + "init": { + "inputs": { + "a": "3847561029384756102938475", + "b": "9182736450192837465019283" + }, + "outputs": {} + }, + "narrative": "The Amplification Device. A heavy mechanical multiplier covered in cobwebs. It requires no external connections to start." + }, + { + "id": "time_convert", + "name": "Timezone Converter", + "description": "Convert ISO time between timezones.", + "type": "Tool", + "template_id": "time_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "ISO Timestamp", + "value": "2025-06-15T08:30:00Z" + }, + { + "name": "from_tz", + "type": "Text_Generic", + "description": "From Timezone", + "value": "America/Los_Angeles" + }, + { + "name": "to_tz", + "type": "Text_Generic", + "description": "To Timezone", + "value": "Asia/Tokyo" + } + ], + "outputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "Converted ISO Timestamp", + "value": "2025-06-15T17:30:00+09:00" + } + ], + "init": { + "inputs": { + "from_tz": "America/Los_Angeles" + }, + "outputs": {} + }, + "narrative": "The Chronograph. An intricate brass clock. It requires inputs from both the Data Extractor and the Main Terminal to synchronize." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "configuration.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.configuration.preferences.timezone" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "Asia/Tokyo" + } + ], + "init": { + "inputs": { + "jsonpath": "$.configuration.preferences.timezone" + }, + "outputs": { + "values": "Asia/Tokyo" + } + }, + "narrative": "The Data Extractor. A punch-card reader. It requires input from the Digital Archive to extract specific records." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "system_backup_v2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "secure_access_code_99" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "configuration.json" + } + ], + "init": { + "inputs": { + "zip_id": "system_backup_v2.zip", + "password": "secure_access_code_99" + }, + "outputs": { + "files": "configuration.json" + } + }, + "narrative": "The Digital Archive. An old computer drive storing heavily encrypted files. It acts as a primary source of data." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Hidden Compartment. A small concealed drawer built into the mahogany desk. It hides its secrets quietly." + }, + { + "id": "checksum_crc32_07b9", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1234567890abcdef1234567890abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "75df3ddf" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1977564639 + } + ], + "init": { + "inputs": { + "hex": "1234567890abcdef1234567890abcdef" + }, + "outputs": {} + }, + "narrative": "The Initial Verifier. A dusty verification module with a brass plate. It seems to stand alone, waiting for raw data to be entered." + } + ], + "edges": [ + { + "source_id": "num_base_convert", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "hmac_sha256", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "hmac_sha256_0eba", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "terminal_2", + "target_id": "hmac_sha256_0eba", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex_key" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "s" + }, + { + "source_id": "zip_unzip_item", + "target_id": "terminal_2", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "calc_inv_mod_ed3d", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num1" + }, + { + "source_id": "time_convert", + "target_id": "hmac_sha256_0eba", + "connection_type": "Text_Generic", + "source_port": "iso", + "target_port": "text" + }, + { + "source_id": "json_get", + "target_id": "time_convert", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "to_tz" + }, + { + "source_id": "calc_inv_mod_ed3d", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num2" + }, + { + "source_id": "json_get", + "target_id": "hmac_sha256", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "text" + }, + { + "source_id": "zip_unzip_file", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_16", + "target_id": "zip_unzip_file", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "terminal_2", + "target_id": "hmac_sha256_0eba", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_2", + "target_id": "time_convert", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "iso" + }, + { + "source_id": "checksum_crc32_07b9", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_f2497a17_narrative.json b/data/questions/15/narrative/skeleton_f2497a17_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..138869a1f4f3a22475e4bf5edfd182d7afe8a0b9 --- /dev/null +++ b/data/questions/15/narrative/skeleton_f2497a17_narrative.json @@ -0,0 +1,927 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "calc_bigmul", + "win_condition": { + "type": "tool_output", + "node_id": "calc_bigmul", + "output_port": "product", + "output_type": "Big_Int", + "description": "Execute Big Number Multiplier and get the output from port 'product'" + }, + "source_init": { + "source_nodes": [ + "calc_bigmul_c9af", + "calc_inv_mod", + "matter_synthesizer", + "num_base_convert", + "calc_modexp_6355", + "graph_shortest_path", + "checksum_crc32_f730", + "calc_modexp_3d2a", + "item_4" + ], + "by_node": { + "calc_bigmul_c9af": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + } + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "calc_modexp_6355": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "checksum_crc32_f730": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_modexp_3d2a": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + } + } + }, + "initial_values": { + "calc_bigmul_c9af": { + "init_inputs": { + "b": "82736451928374651029384756" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "19283746556473829101928374" + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "{\"type\": \"reactor_core\", \"specs\": {\"material\": \"unobtainium\", \"grade\": \"military\", \"shielding\": true}}" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "to_base": "10" + }, + "init_outputs": {} + }, + "calc_modexp_6355": { + "init_inputs": { + "base": "38475610293847562910384756", + "mod": "999983" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Alpha_Centauri_Station", + "dst": "Zeta_Reticuli_Outpost" + }, + "init_outputs": { + "path": "[\"Alpha_Centauri_Station\", \"Proxima_Relay\", \"Sirius_Gate\", \"Vega_Hub\", \"Zeta_Reticuli_Outpost\"]", + "cost": "4520" + } + }, + "checksum_crc32_f730": { + "init_inputs": { + "hex": "48656c6c6f20576f726c6421205468697320697320612074657374" + }, + "init_outputs": {} + }, + "calc_modexp_3d2a": { + "init_inputs": { + "base": "74658392017465839201746583", + "exp": "91827364509182736450918273", + "mod": "104729" + }, + "init_outputs": {} + }, + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "sector_map_topology.zip" + } + } + }, + "intro_narrative": "You have breached the perimeter of the 'Silicon Sarcophagus,' a derelict data fortress abandoned by the mega-corporations after the Great Blackout. Your objective is to retrieve the legendary 'Omni-Key,' a universal decryption string capable of unlocking any vault in the net. The facility is silent, save for the hum of cooling fans and the flicker of dying neon strips. To synthesize the key, you must power up the dormant subsystems, route data through the chaotic network topology, and synchronize the ancient processors. The air smells of ozone and dust. Your deck is jacked in. Time to run.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "4456" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "1595468769968657174179561991424895327793338399466744" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "7109408838980336368144128233789333580647115908023811264" + } + ], + "narrative": "The Omni-Key Generator. This is the final gateway. To synthesize the ultimate code, it requires synchronized data streams from the Quantum Handshake Protocol and the Core Encryptor." + }, + { + "id": "calc_bigmul_c9af", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "19283746556473829101928374" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "82736451928374651029384756" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "1595468769968657174179561991424895327793338399466744" + } + ], + "init": { + "inputs": { + "b": "82736451928374651029384756" + }, + "outputs": {} + }, + "narrative": "The Quantum Handshake Protocol. A secure transmission channel. It cannot establish a link on its own; it requires a decryption seed from the Inversion Algorithm to begin the handshake." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "19283746556473829101928374" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "4456" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "19283746556473829101928374" + } + ], + "init": { + "inputs": { + "a": "19283746556473829101928374" + }, + "outputs": {} + }, + "narrative": "The Inversion Algorithm. A cryptographic mirror used to flip data polarity. It waits for the complex cipher output from the Core Encryptor to calculate the necessary inverse values." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Admin Credentials. A frantic scrawl of passwords found on a sticky note attached to the physical token." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "746778" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "7680" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "4520" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "4456" + } + ], + "narrative": "The Core Encryptor. The central processing brain of the facility. It synthesizes a master cipher by combining inputs from the Topology Solver, the Radix Translator, and the Signal Amplifier." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_9f650a149f32e768" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "Physical Access Token. A freshly printed polycarbonate keycard with exposed circuitry." + }, + { + "id": "calc_modexp_edca", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "4520" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 1685013363 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "57088" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "7680" + } + ], + "narrative": "The Topology Solver. A navigational computer designed to calculate network loads. It requires verified integrity data from the Integrity Verifier, security parameters from the Sub-Routine Lock, and path metrics from the Network Mapper." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "{\"type\": \"reactor_core\", \"specs\": {\"material\": \"unobtainium\", \"grade\": \"military\", \"shielding\": true}}" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_9f650a149f32e768" + } + ], + "init": { + "inputs": { + "blueprint": "{\"type\": \"reactor_core\", \"specs\": {\"material\": \"unobtainium\", \"grade\": \"military\", \"shielding\": true}}" + }, + "outputs": {} + }, + "narrative": "The Nanoforge. A specialized 3D printer for creating physical circuit keys from textual blueprints." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "e85633f1" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "646f4373" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1685013363 + } + ], + "narrative": "The Integrity Verifier. A system check utility. It ensures data consistency and requires the raw hex stream from the Raw Data Stream to perform its validation." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "4520" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "7680" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "4520" + } + ], + "init": { + "inputs": { + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The Radix Translator. A system interpreting foreign data architectures. It requires calculation results from the Topology Solver and cost metrics from the Network Mapper to translate the values into a usable format." + }, + { + "id": "calc_modexp_6355", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "38475610293847562910384756" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "4520" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "746778" + } + ], + "init": { + "inputs": { + "base": "38475610293847562910384756", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "The Signal Amplifier. A booster node. It takes the translated signal from the Radix Translator and increases its magnitude for the core system." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "sector_map_topology.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Alpha_Centauri_Station" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Zeta_Reticuli_Outpost" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Alpha_Centauri_Station\", \"Proxima_Relay\", \"Sirius_Gate\", \"Vega_Hub\", \"Zeta_Reticuli_Outpost\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "4520" + } + ], + "init": { + "inputs": { + "src": "Alpha_Centauri_Station", + "dst": "Zeta_Reticuli_Outpost" + }, + "outputs": { + "path": "[\"Alpha_Centauri_Station\", \"Proxima_Relay\", \"Sirius_Gate\", \"Vega_Hub\", \"Zeta_Reticuli_Outpost\"]", + "cost": "4520" + } + }, + "narrative": "The Network Mapper. A routing algorithm for the facility's labyrinthine server farm. It requires the map file contained within the Encrypted Archive to calculate the optimal data path." + }, + { + "id": "checksum_crc32_f730", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "48656c6c6f20576f726c6421205468697320697320612074657374" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "e85633f1" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3897963505 + } + ], + "init": { + "inputs": { + "hex": "48656c6c6f20576f726c6421205468697320697320612074657374" + }, + "outputs": {} + }, + "narrative": "The Raw Data Stream. A terminal scrolling a continuous waterfall of hexadecimal code, likely a memory dump from the server's last active session." + }, + { + "id": "calc_modexp_3d2a", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "74658392017465839201746583" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "91827364509182736450918273" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "57088" + } + ], + "init": { + "inputs": { + "base": "74658392017465839201746583", + "exp": "91827364509182736450918273", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "The Sub-Routine Lock. An isolated logic gate running a continuous modular exponentiation loop to secure the lower subsystems." + }, + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "sector_map_topology.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "sector_map_topology.zip" + } + }, + "narrative": "The Encrypted Archive. A locked directory containing old network topology files." + } + ], + "edges": [ + { + "source_id": "calc_bigmul_c9af", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_bigmul_c9af", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "item_8", + "target_id": "calc_bigmul_c9af", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "calc_modexp_edca", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "exp" + }, + { + "source_id": "matter_synthesizer", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_edca", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "calc_modexp_edca", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "from_base" + }, + { + "source_id": "calc_modexp_6355", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "s" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp_6355", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "checksum_crc32_f730", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_modexp_3d2a", + "target_id": "calc_modexp_edca", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp_edca", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "base" + }, + { + "source_id": "item_4", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_f6f4950d_narrative.json b/data/questions/15/narrative/skeleton_f6f4950d_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..1f86a5ca3ec232bbde5b203cb2a0db79b78b8d5d --- /dev/null +++ b/data/questions/15/narrative/skeleton_f6f4950d_narrative.json @@ -0,0 +1,738 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 14, + "win_node_id": "item_4", + "win_condition": { + "type": "item_content", + "node_id": "item_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_4", + "terminal_2", + "calc_gcd", + "checksum_crc32_66ce", + "text_xor_hex", + "hmac_sha256" + ], + "by_node": { + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32_66ce": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "text_xor_hex": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_a": { + "type": "Hex_String", + "description": "Hex A" + }, + "hex_b": { + "type": "Hex_String", + "description": "Hex B" + } + }, + "init_outputs": {} + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "hex_key": { + "type": "Hex_String", + "description": "Hex key" + }, + "text": { + "type": "Text_Generic", + "description": "Text message" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "secure_archive_data.zip" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal output buffer initialized successfully.", + "hex_result": "48656c6c6f20576f726c6421" + } + }, + "calc_gcd": { + "init_inputs": { + "a": "92837465102938475620192837465" + }, + "init_outputs": {} + }, + "checksum_crc32_66ce": { + "init_inputs": { + "hex": "aabbccddeeff00112233445566778899" + }, + "init_outputs": {} + }, + "text_xor_hex": { + "init_inputs": { + "hex_a": "1234567890abcdef1234567890abcdef", + "hex_b": "fedcba0987654321fedcba0987654321" + }, + "init_outputs": {} + }, + "hmac_sha256": { + "init_inputs": { + "hex_key": "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20", + "text": "Authenticate this message using SHA256 HMAC" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken on the drifting orbital station Aegis-7. The life support systems are failing, and the central AI has initiated a total lockdown due to an anomalous system breach. Your only chance of survival is to retrieve the master override codes hidden deep within the station's main databanks. The facility is littered with cryptographic modules, corrupted memory shards, and isolated terminals. You must trace the correct data flows, repair the core systems, and extract the encrypted archive before the oxygen runs out.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "secure_archive_data.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "secure_archive_data.zip" + } + }, + "narrative": "The Mainframe Core Data archive. A highly secure digital packet containing the station's master escape protocols." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Data Fragment Alpha. A glowing memory shard with corrupted headers." + }, + { + "id": "item_8_2bd0", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Data Fragment Beta. A secondary memory shard detached from the mainframe." + }, + { + "id": "item_8_84f2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Data Fragment Gamma. A heavily degraded memory stick found near the server racks." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "Chrono-Log Drive. A portable drive recording internal time-space anomalies." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": 2052146080 + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal output buffer initialized successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "48656c6c6f20576f726c6421" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal output buffer initialized successfully.", + "hex_result": "48656c6c6f20576f726c6421" + } + }, + "narrative": "The Main AI Terminal. It requires inputs from both the Quantum Harmonizer and the Basic Integrity Scanner to initiate the reboot sequence." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "92837465102938475620192837465" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": 1859518079 + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "92837465102938475620192837465" + }, + "outputs": {} + }, + "narrative": "The Quantum Harmonizer. It processes data from the Signal Validator to align internal computational frequencies." + }, + { + "id": "item_8_0142", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Security Fragment. An isolated piece of security code trapped in a localized loop." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "063aebe51ea08e9d2917a2f22d4c952e7328958a03778c32e7bd90cf72beab26" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "6ed5fe7f" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1859518079 + } + ], + "narrative": "The Signal Validator. It requires input from the Authentication Matrix to verify the incoming datastream." + }, + { + "id": "item_16_21a9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "Temporal Bypass Chip. A specialized circuit designed to trick internal station clocks." + }, + { + "id": "checksum_crc32_66ce", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "aabbccddeeff00112233445566778899" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "7a5143a0" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2052146080 + } + ], + "init": { + "inputs": { + "hex": "aabbccddeeff00112233445566778899" + }, + "outputs": {} + }, + "narrative": "The Basic Integrity Scanner. A standard diagnostic tool for checking file corruption across localized systems." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "ece8ec7117ce8eceece8ec7117ce8ece" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Biometric Vault. A heavily armored storage unit. It requires input from the Cryptographic Combiner to bypass its electronic lock." + }, + { + "id": "item_8_9bd5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Encrypted Key Fragment. A small, physical digital token that hums with faint energy." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "1234567890abcdef1234567890abcdef" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "fedcba0987654321fedcba0987654321" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "ece8ec7117ce8eceece8ec7117ce8ece" + } + ], + "init": { + "inputs": { + "hex_a": "1234567890abcdef1234567890abcdef", + "hex_b": "fedcba0987654321fedcba0987654321" + }, + "outputs": {} + }, + "narrative": "The Cryptographic Combiner. A dual-input cryptographic processor used for merging isolated data streams." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Authenticate this message using SHA256 HMAC" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "063aebe51ea08e9d2917a2f22d4c952e7328958a03778c32e7bd90cf72beab26" + } + ], + "init": { + "inputs": { + "hex_key": "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20", + "text": "Authenticate this message using SHA256 HMAC" + }, + "outputs": {} + }, + "narrative": "The Authentication Matrix. A holographic interface designed to generate secure digital signatures." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_2bd0", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_84f2", + "target_id": "item_8_2bd0", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_84f2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "item_8_0142", + "target_id": "terminal_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "item_16_21a9", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32_66ce", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num1" + }, + { + "source_id": "container_1", + "target_id": "item_16_21a9", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_8_9bd5", + "target_id": "item_8_0142", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "text_xor_hex", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "hmac_sha256", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_f8e0c35f_narrative.json b/data/questions/15/narrative/skeleton_f8e0c35f_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..ba61b3c6f55c7d81b4d8119c0f286dbc0a1b9075 --- /dev/null +++ b/data/questions/15/narrative/skeleton_f8e0c35f_narrative.json @@ -0,0 +1,942 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 19, + "win_node_id": "graph_shortest_path", + "win_condition": { + "type": "tool_output", + "node_id": "graph_shortest_path", + "output_port": "path", + "output_type": "Text_Generic", + "description": "Execute Shortest Path Finder and get the output from port 'path'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "zip_unzip_file", + "csv_query", + "zip_unzip_file_b42b", + "base64_encode", + "zip_unzip_file_c272", + "zip_unzip_file_5e1d", + "hex_encode", + "item_7", + "zip_unzip_file_2062" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "CSV file ID" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "zip_unzip_file_b42b": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_c272": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_5e1d": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "hex_encode": { + "node_name": "Text to Hex Encoder", + "node_type": "Tool", + "template_id": "hex_encode", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "zip_unzip_file_2062": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Alpha_Start" + }, + "init_outputs": { + "path": "[\"Node_Alpha_Start\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta_End\"]", + "cost": "38475629102938475610" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_data_bundle_v1.xml" + } + }, + "csv_query": { + "init_inputs": { + "file_id": "sales_records_2024.csv" + }, + "init_outputs": { + "rows": "[{\"id\": 101, \"item\": \"Widget A\", \"price\": 19.99}, {\"id\": 102, \"item\": \"Widget B\", \"price\": 25.50}, {\"id\": 103, \"item\": \"Widget C\", \"price\": 9.99}]" + } + }, + "zip_unzip_file_b42b": { + "init_inputs": {}, + "init_outputs": { + "files": "server_logs_archive_b42b.txt" + } + }, + "base64_encode": { + "init_inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "init_outputs": {} + }, + "zip_unzip_file_c272": { + "init_inputs": {}, + "init_outputs": { + "files": "config_backup_c272.json" + } + }, + "zip_unzip_file_5e1d": { + "init_inputs": { + "password": "SecurePassword_5e1d!@" + }, + "init_outputs": { + "files": "user_profiles_5e1d.db" + } + }, + "hex_encode": { + "init_inputs": { + "text": "Please convert this plain text string into hexadecimal format." + }, + "init_outputs": {} + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "magic_number = 42000\nprint(magic_number)" + } + }, + "zip_unzip_file_2062": { + "init_inputs": { + "zip_id": "encrypted_vault_2062.zip", + "password": "VaultAccessKey_2062" + }, + "init_outputs": { + "files": "blueprint_design_2062.cad" + } + } + }, + "intro_narrative": "The rain batters against the window of the precinct as you stare at the chaotic murder board. A notorious serial killer has struck again, leaving behind a convoluted trail of digital clues, locked safes, and cryptic messages. The Chief has given you until dawn to find the killer's escape route before they vanish forever. As the lead detective, you must navigate through recovered evidence, bypass complex security systems, and decipher the cryptic codes left behind. Time is ticking, and every piece of evidence connects to another. Can you piece together the puzzle and stop the killer's flight?", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_bundle_v1.xml" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Alpha_Start" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "[{\"lg\": 101, \"lwhp\": \"Zlgjhw D\", \"sulfh\": 19.99}, {\"lg\": 102, \"lwhp\": \"Zlgjhw E\", \"sulfh\": 25.50}, {\"lg\": 103, \"lwhp\": \"Zlgjhw F\", \"sulfh\": 9.99}]" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha_Start\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta_End\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "38475629102938475610" + } + ], + "init": { + "inputs": { + "src": "Node_Alpha_Start" + }, + "outputs": { + "path": "[\"Node_Alpha_Start\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Zeta_End\"]", + "cost": "38475629102938475610" + } + }, + "narrative": "This is the city map tracker used to find the killer's escape route. It requires inputs from the antique cipher wheel and the master evidence locker to plot the exact locations." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "[{\"id\": 101, \"item\": \"Widget A\", \"price\": 19.99}, {\"id\": 102, \"item\": \"Widget B\", \"price\": 25.50}, {\"id\": 103, \"item\": \"Widget C\", \"price\": 9.99}]" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": 1150284437 + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "[{\"lg\": 101, \"lwhp\": \"Zlgjhw D\", \"sulfh\": 19.99}, {\"lg\": 102, \"lwhp\": \"Zlgjhw E\", \"sulfh\": 25.50}, {\"lg\": 103, \"lwhp\": \"Zlgjhw F\", \"sulfh\": 9.99}]" + } + ], + "narrative": "This is the antique cipher wheel left at the crime scene. It requires inputs from the police database terminal and the digital integrity scanner to align the gears properly." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool", + "value": "" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "server_logs_archive_b42b.txt" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[{\"lg\": 101, \"lwhp\": \"Zlgjhw D\", \"sulfh\": 19.99}, {\"lg\": 102, \"lwhp\": \"Zlgjhw E\", \"sulfh\": 25.50}, {\"lg\": 103, \"lwhp\": \"Zlgjhw F\", \"sulfh\": 9.99}]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_bundle_v1.xml" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_data_bundle_v1.xml" + } + }, + "narrative": "This is the master evidence locker in the precinct. It requires inputs from the suspect's safe and the credit card validator to bypass the electronic locks." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "sales_records_2024.csv" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "Gis8TV5veoucDR4vOktcbQ==" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "42000\n" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[{\"id\": 101, \"item\": \"Widget A\", \"price\": 19.99}, {\"id\": 102, \"item\": \"Widget B\", \"price\": 25.50}, {\"id\": 103, \"item\": \"Widget C\", \"price\": 9.99}]" + } + ], + "init": { + "inputs": { + "file_id": "sales_records_2024.csv" + }, + "outputs": { + "rows": "[{\"id\": 101, \"item\": \"Widget A\", \"price\": 19.99}, {\"id\": 102, \"item\": \"Widget B\", \"price\": 25.50}, {\"id\": 103, \"item\": \"Widget C\", \"price\": 9.99}]" + } + }, + "narrative": "This is the police database terminal. It requires inputs from the forensic analysis computer and the suspect's pager to filter out the suspect's accomplices." + }, + { + "id": "zip_unzip_file_b42b", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "config_backup_c272.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[{\"lg\": 101, \"lwhp\": \"Zlgjhw D\", \"sulfh\": 19.99}, {\"lg\": 102, \"lwhp\": \"Zlgjhw E\", \"sulfh\": 25.50}, {\"lg\": 103, \"lwhp\": \"Zlgjhw F\", \"sulfh\": 9.99}]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "server_logs_archive_b42b.txt" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "server_logs_archive_b42b.txt" + } + }, + "narrative": "This is the suspect's safe found hidden behind a painting. It requires inputs from the locked briefcase and the credit card validator to open." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "magic_number = 42000\nprint(magic_number)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "42000\n" + } + ], + "narrative": "This is the forensic analysis computer in the lab. It requires input from the torn diary page to run the extraction sequence." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "[{\"lg\": 101, \"lwhp\": \"Zlgjhw D\", \"sulfh\": 19.99}, {\"lg\": 102, \"lwhp\": \"Zlgjhw E\", \"sulfh\": 25.50}, {\"lg\": 103, \"lwhp\": \"Zlgjhw F\", \"sulfh\": 9.99}]" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "[{\"lg\": 101, \"lwhp\": \"Zlgjhw D\", \"sulfh\": 19.99}, {\"lg\": 102, \"lwhp\": \"Zlgjhw E\", \"sulfh\": 25.50}, {\"lg\": 103, \"lwhp\": \"Zlgjhw F\", \"sulfh\": 9.99}]" + } + ], + "narrative": "This is the credit card validator used to verify illicit transactions. It requires input from the antique cipher wheel to check the obscured numbers." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "server_logs_archive_b42b.txt" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[{\"lg\": 101, \"lwhp\": \"Zlgjhw D\", \"sulfh\": 19.99}, {\"lg\": 102, \"lwhp\": \"Zlgjhw E\", \"sulfh\": 25.50}, {\"lg\": 103, \"lwhp\": \"Zlgjhw F\", \"sulfh\": 9.99}]" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip", + "value": "" + } + ], + "narrative": "This is the hidden compartment within the suspect's desk. It requires inputs from the suspect's safe and the antique cipher wheel to trigger the release mechanism." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "Gis8TV5veoucDR4vOktcbQ==" + } + ], + "init": { + "inputs": { + "hex": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "outputs": {} + }, + "narrative": "The suspect's pager, an old piece of tech displaying a strange series of characters. It seems to hold an encoded message used for covert communication." + }, + { + "id": "zip_unzip_file_c272", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "user_profiles_5e1d.db" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[{\"lg\": 101, \"lwhp\": \"Zlgjhw D\", \"sulfh\": 19.99}, {\"lg\": 102, \"lwhp\": \"Zlgjhw E\", \"sulfh\": 25.50}, {\"lg\": 103, \"lwhp\": \"Zlgjhw F\", \"sulfh\": 9.99}]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "config_backup_c272.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "config_backup_c272.json" + } + }, + "narrative": "This is the locked briefcase recovered from the alley. It requires inputs from the credit card validator and the digital encrypted folder to bypass its dual authentication." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "506c6561736520636f6e76657274207468697320706c61696e207465787420737472696e6720696e746f2068657861646563696d616c20666f726d61742e" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "448ff295" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1150284437 + } + ], + "narrative": "This is the digital integrity scanner. It requires input from the text conversion tool to verify the authenticity of the recovered data blocks." + }, + { + "id": "zip_unzip_file_5e1d", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "blueprint_design_2062.cad" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword_5e1d!@" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "user_profiles_5e1d.db" + } + ], + "init": { + "inputs": { + "password": "SecurePassword_5e1d!@" + }, + "outputs": { + "files": "user_profiles_5e1d.db" + } + }, + "narrative": "This is the digital encrypted folder found on a seized hard drive. It requires input from the victim's cloud drive to decrypt the contents." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Please convert this plain text string into hexadecimal format." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "506c6561736520636f6e76657274207468697320706c61696e207465787420737472696e6720696e746f2068657861646563696d616c20666f726d61742e" + } + ], + "init": { + "inputs": { + "text": "Please convert this plain text string into hexadecimal format." + }, + "outputs": {} + }, + "narrative": "A portable text conversion tool used by investigators to standardize raw text data into machine-readable formats." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "magic_number = 42000\nprint(magic_number)" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "magic_number = 42000\nprint(magic_number)" + } + }, + "narrative": "A torn diary page found clutched in the victim's hand, covered in barely legible scribbles and strange code snippets." + }, + { + "id": "zip_unzip_file_2062", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_vault_2062.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "VaultAccessKey_2062" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "blueprint_design_2062.cad" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_vault_2062.zip", + "password": "VaultAccessKey_2062" + }, + "outputs": { + "files": "blueprint_design_2062.cad" + } + }, + "narrative": "The victim's cloud drive access terminal. It contains a wealth of personal files and archived communications that need to be reviewed." + } + ], + "edges": [ + { + "source_id": "text_rotN", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "csv_query", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "text" + }, + { + "source_id": "zip_unzip_file_b42b", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "code_py_exec", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "where" + }, + { + "source_id": "luhn_check", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "zip_unzip_item", + "target_id": "zip_unzip_file", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "text_rotN", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "number" + }, + { + "source_id": "zip_unzip_file_b42b", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "text_rotN", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "base64_encode", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "select" + }, + { + "source_id": "zip_unzip_file_c272", + "target_id": "zip_unzip_file_b42b", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "luhn_check", + "target_id": "zip_unzip_file_c272", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "checksum_crc32", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "n" + }, + { + "source_id": "zip_unzip_file_5e1d", + "target_id": "zip_unzip_file_c272", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "luhn_check", + "target_id": "zip_unzip_file_b42b", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "hex_encode", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "zip_unzip_file_2062", + "target_id": "zip_unzip_file_5e1d", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_fab2f6a8_narrative.json b/data/questions/15/narrative/skeleton_fab2f6a8_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..f5dd1136f035f2fc9cfeb89884c549a35cc02815 --- /dev/null +++ b/data/questions/15/narrative/skeleton_fab2f6a8_narrative.json @@ -0,0 +1,963 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "item_12", + "win_condition": { + "type": "item_content", + "node_id": "item_12", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_12", + "terminal_2", + "calc_modexp", + "calc_inv_mod", + "calc_inv_mod_cacc", + "calc_modexp_b336", + "calc_inv_mod_6328", + "terminal_2_6698", + "container_1", + "item_1", + "item_3" + ], + "by_node": { + "item_12": { + "node_name": "", + "node_type": "Item", + "template_id": "item_12", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String", + "description": "The hex code" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + } + }, + "init_outputs": {} + }, + "calc_inv_mod_cacc": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_modexp_b336": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + } + }, + "init_outputs": {} + }, + "calc_inv_mod_6328": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "terminal_2_6698": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "item_3": { + "node_name": "", + "node_type": "Item", + "template_id": "item_3", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String", + "description": "The hex code" + } + } + } + } + }, + "initial_values": { + "item_12": { + "init_inputs": {}, + "init_outputs": { + "content": "4a7b9c2d1e8f0a3b" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Partial execution pending inputs.", + "hex_result": "00000000deadbeef" + } + }, + "calc_modexp": { + "init_inputs": { + "base": "17" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "982374651029384756102" + }, + "init_outputs": {} + }, + "calc_inv_mod_cacc": { + "init_inputs": { + "mod": "65537" + }, + "init_outputs": {} + }, + "calc_modexp_b336": { + "init_inputs": { + "base": "23" + }, + "init_outputs": {} + }, + "calc_inv_mod_6328": { + "init_inputs": { + "mod": "10007" + }, + "init_outputs": {} + }, + "terminal_2_6698": { + "init_inputs": { + "num1": "192837465564738291023", + "num2": "384756291029384756123" + }, + "init_outputs": { + "text_result": "Calculation pending.", + "hex_result": "aabbccddeeff0011" + } + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "f1a2b3c4d5e6f708" + }, + "init_outputs": {} + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "56473829101928374655" + } + }, + "item_3": { + "init_inputs": {}, + "init_outputs": { + "content": "11223344556677889900aabb" + } + } + }, + "intro_narrative": "You are an apprentice wizard trapped in the forgotten Spire of Eldoria. The legendary Archmage's Crystal, a source of unimaginable power, is sealed within these ethereal walls. To claim it and earn the title of Sorcerer Supreme, you must navigate a complex web of arcane devices and enchanted relics left behind by the ancient masters. The spire is filled with intertwined magical currents. You must uncover the secrets of the artifacts, discover how their powers feed into one another, and master the flow of magical energy to break the final seal before the spire fades into the astral plane forever.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "item_12", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_12", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String", + "description": "The hex code", + "value": "4a7b9c2d1e8f0a3b" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "4a7b9c2d1e8f0a3b" + } + }, + "narrative": "This is The Archmage's Crystal. A radiant gemstone pulsing with immense magical energy. Capturing its inner light is your ultimate goal." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "707297588831208709373" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": 2300213316 + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial execution pending inputs." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "00000000deadbeef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Partial execution pending inputs.", + "hex_result": "00000000deadbeef" + } + }, + "narrative": "This is The Astral Observatory. It requires inputs from both The Aetheric Crucible and The Spirit Scaler to align the celestial bodies." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "17" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "3473" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "982374651029384756102" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "707297588831208709373" + } + ], + "init": { + "inputs": { + "base": "17" + }, + "outputs": {} + }, + "narrative": "This is The Aetheric Crucible. It requires inputs from both The Moonstone Reverser and The Sunflare Forge to channel its potent magic." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "982374651029384756102" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "6632" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "982374651029384756102" + } + ], + "init": { + "inputs": { + "a": "982374651029384756102" + }, + "outputs": {} + }, + "narrative": "This is The Moonstone Reverser. It requires input from The Starlight Weaver to reflect the magical currents." + }, + { + "id": "calc_modexp_db29", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1487" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 2300213316 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "6632" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "3473" + } + ], + "narrative": "This is The Sunflare Forge. It requires inputs from The Starlight Weaver, The Void Catalyst, and The Spirit Scaler to ignite the sacred flames." + }, + { + "id": "calc_inv_mod_cacc", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "8370" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "65537" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "6632" + } + ], + "init": { + "inputs": { + "mod": "65537" + }, + "outputs": {} + }, + "narrative": "This is The Starlight Weaver. It requires input from The Abyssal Mirror to untangle the constellations." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is The Chronomancer's Hourglass. An ancient hourglass where the shimmering sands flow upwards, defying the natural laws of time." + }, + { + "id": "calc_modexp_b336", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "23" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "56473829101928374655" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "8370" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1487" + } + ], + "init": { + "inputs": { + "base": "23" + }, + "outputs": {} + }, + "narrative": "This is The Void Catalyst. It requires inputs from both The Abyssal Mirror and The Flame Scroll to bridge the magical rift." + }, + { + "id": "calc_inv_mod_6328", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 2552293572 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "10007" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "8370" + } + ], + "init": { + "inputs": { + "mod": "10007" + }, + "outputs": {} + }, + "narrative": "This is The Abyssal Mirror. It requires input from The Enchanted Balancer to reveal the hidden depths of the dark waters." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "aabbccddeeff0011" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "891a7844" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2300213316 + } + ], + "narrative": "This is The Spirit Scaler. It requires input from The Runestone Pedestal to weigh the gathered soul fragments." + }, + { + "id": "terminal_2_6698", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "192837465564738291023" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "384756291029384756123" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation pending." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "aabbccddeeff0011" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "192837465564738291023", + "num2": "384756291029384756123" + }, + "outputs": { + "text_result": "Calculation pending.", + "hex_result": "aabbccddeeff0011" + } + }, + "narrative": "This is The Runestone Pedestal. A carved stone pedestal covered in glowing, forgotten runes." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "f1a2b3c4d5e6f708" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "f1a2b3c4d5e6f708" + }, + "outputs": {} + }, + "narrative": "This is The Dragonbone Chest. A heavy container crafted from the remains of an ancient drake, bound by mystical locks." + }, + { + "id": "checksum_crc32_510a", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "11223344556677889900aabb" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "9820e8c4" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2552293572 + } + ], + "narrative": "This is The Enchanted Balancer. It requires input from The Frost Tablet to harmonize the magical equilibrium." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "56473829101928374655" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "56473829101928374655" + } + }, + "narrative": "This is The Flame Scroll. A delicate parchment completely engulfed in a magical, unconsuming fire." + }, + { + "id": "item_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String", + "description": "The hex code", + "value": "11223344556677889900aabb" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "11223344556677889900aabb" + } + }, + "narrative": "This is The Frost Tablet. A heavy slab of ever-ice etched with glowing blue symbols." + } + ], + "edges": [ + { + "source_id": "terminal_2", + "target_id": "item_12", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num1" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "calc_modexp_db29", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "exp" + }, + { + "source_id": "calc_inv_mod_cacc", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "calc_inv_mod_cacc", + "target_id": "calc_modexp_db29", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "item_16", + "target_id": "calc_inv_mod_cacc", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_modexp_b336", + "target_id": "calc_modexp_db29", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "base" + }, + { + "source_id": "calc_inv_mod_6328", + "target_id": "calc_modexp_b336", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num2" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_db29", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "terminal_2_6698", + "target_id": "checksum_crc32", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_2_6698", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex" + }, + { + "source_id": "calc_inv_mod_6328", + "target_id": "calc_inv_mod_cacc", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "container_1", + "target_id": "calc_inv_mod_6328", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "checksum_crc32_510a", + "target_id": "calc_inv_mod_6328", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "item_1", + "target_id": "calc_modexp_b336", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "exp" + }, + { + "source_id": "item_3", + "target_id": "checksum_crc32_510a", + "connection_type": "Hex_String", + "source_port": "content", + "target_port": "hex" + } + ] +} \ No newline at end of file diff --git a/data/questions/15/narrative/skeleton_fe48b1cc_narrative.json b/data/questions/15/narrative/skeleton_fe48b1cc_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..406eaec3a00e1036abc472cb97ec52c0898888bc --- /dev/null +++ b/data/questions/15/narrative/skeleton_fe48b1cc_narrative.json @@ -0,0 +1,1063 @@ +{ + "metadata": { + "total_nodes": 15, + "total_edges": 18, + "win_node_id": "item_4", + "win_condition": { + "type": "item_content", + "node_id": "item_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_4", + "terminal_1", + "crypto_rsa_decrypt_hex", + "graph_shortest_path", + "luhn_check", + "zip_unzip_file", + "terminal_1_c3a5", + "num_base_convert", + "num_base_convert_64cd", + "calc_bigmul", + "checksum_crc32", + "num_base_convert_6100", + "container_1" + ], + "by_node": { + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "hex_cipher": { + "type": "Hex_String", + "description": "Ciphertext (Hex)" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_1_c3a5": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "num_base_convert_64cd": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "num_base_convert_6100": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "target_extracted_data.zip" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System operational. Awaiting command sequence.", + "hex_output": "f1e2d3c4b5a697887766554433221100" + } + }, + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "hex_cipher": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"node_start\", \"node_alpha\", \"node_beta\", \"node_gamma\", \"node_delta\", \"node_omega\"]", + "cost": "285930" + } + }, + "luhn_check": { + "init_inputs": { + "number": "49927398716" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "secure_backup_99.zip" + }, + "init_outputs": { + "files": "graph_data_source.json" + } + }, + "terminal_1_c3a5": { + "init_inputs": { + "slot_a": "init_sequence_001" + }, + "init_outputs": { + "text_output": "Diagnostic complete. Route mapped successfully.", + "hex_output": "aabbccddeeff00112233445566778899", + "item_dispenser": "An old dusty metallic key of no obvious use." + } + }, + "num_base_convert": { + "init_inputs": { + "s": "182736455463728190918273645" + }, + "init_outputs": {} + }, + "num_base_convert_64cd": { + "init_inputs": { + "s": "98765432101234567890987654321", + "from_base": "16" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "11223344556677889900112233445566778899" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "8b3a4f2c" + }, + "init_outputs": {} + }, + "num_base_convert_6100": { + "init_inputs": { + "s": "55667788990011223344556677889900", + "from_base": "10", + "to_base": "10" + }, + "init_outputs": {} + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "e4d909c290d0fb1ca068ffaddf22cbd0" + }, + "init_outputs": {} + } + }, + "intro_narrative": "Welcome, brave seeker, to the Sanctum of the Forgotten Mage. For centuries, this mystical tower has been sealed away from the mortal realm, guarding a secret of unimaginable power. Legends speak of a hidden artifact deep within these walls, capable of granting supreme wisdom to whoever possesses it. As you step through the grand archway, the air hums with residual magical energy. Glowing runes line the stone walls, and strange arcane devices lie dormant, waiting for a master's touch. Your objective is clear: navigate this labyrinth of enchantments, activate the magical relics in the correct sequence, and claim the ultimate prize hidden within. But tread carefully, for the magic here is wild and deeply interconnected. The Sanctum tests not just your courage, but your wit and understanding of the arcane arts. You must decipher the ancient connections to unravel the mysteries. Will you unlock the secrets of the ancients, or become another lost soul wandering the tower?", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "target_extracted_data.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "target_extracted_data.zip" + } + }, + "narrative": "The Grand Grimoire. A legendary spellbook bound in dragon scales, said to hold the ultimate truth." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Ethereal Core. A pulsing sphere of concentrated magic." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "\u0001܃" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "285930" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System operational. Awaiting command sequence." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "f1e2d3c4b5a697887766554433221100" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System operational. Awaiting command sequence.", + "hex_output": "f1e2d3c4b5a697887766554433221100" + } + }, + "narrative": "The Astral Observatory. It requires inputs from both The Rune Decipherer and The Leyline Navigator to align the celestial stars." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "285930" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "182736455463728190918273645" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0001܃" + } + ], + "init": { + "inputs": { + "hex_cipher": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + "outputs": {} + }, + "narrative": "The Rune Decipherer. It requires inputs from both The Leyline Navigator and The Alchemist's Crucible to reveal hidden incantations." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_data_source.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Diagnostic complete. Route mapped successfully." + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "false" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"node_start\", \"node_alpha\", \"node_beta\", \"node_gamma\", \"node_delta\", \"node_omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "285930" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"node_start\", \"node_alpha\", \"node_beta\", \"node_gamma\", \"node_delta\", \"node_omega\"]", + "cost": "285930" + } + }, + "narrative": "The Leyline Navigator. It requires inputs from The Truth Scale, The Sealed Tome, and The Crystal Scrying Pool to chart the paths." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "49927398716" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "49927398716" + }, + "outputs": {} + }, + "narrative": "The Truth Scale. An ornate balance used by ancient clerics to weigh the purity of a magical soul." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_backup_99.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "false" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "graph_data_source.json" + } + ], + "init": { + "inputs": { + "zip_id": "secure_backup_99.zip" + }, + "outputs": { + "files": "graph_data_source.json" + } + }, + "narrative": "The Sealed Tome. It requires input from The Truth Scale to break its powerful magical bindings." + }, + { + "id": "terminal_1_c3a5", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "init_sequence_001" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "11223344556677889900112233445566778899" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Diagnostic complete. Route mapped successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "aabbccddeeff00112233445566778899" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "An old dusty metallic key of no obvious use." + } + ], + "init": { + "inputs": { + "slot_a": "init_sequence_001" + }, + "outputs": { + "text_output": "Diagnostic complete. Route mapped successfully.", + "hex_output": "aabbccddeeff00112233445566778899", + "item_dispenser": "An old dusty metallic key of no obvious use." + } + }, + "narrative": "The Crystal Scrying Pool. It requires input from The Mana Multiplier to peer into the deep void." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "182736455463728190918273645" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "98765432101234567890987654321" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "55667788990011223344556677889900" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "182736455463728190918273645" + } + ], + "init": { + "inputs": { + "s": "182736455463728190918273645" + }, + "outputs": {} + }, + "narrative": "The Alchemist's Crucible. It requires inputs from both The Elemental Transmuter and The Starlight Weaver to mix the final potion." + }, + { + "id": "num_base_convert_64cd", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "98765432101234567890987654321" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "11223344556677889900112233445566778899" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "98765432101234567890987654321" + } + ], + "init": { + "inputs": { + "s": "98765432101234567890987654321", + "from_base": "16" + }, + "outputs": {} + }, + "narrative": "The Elemental Transmuter. It requires input from The Mana Multiplier to alter the fundamental nature of matter." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "11223344556677889900112233445566778899" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "1" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "11223344556677889900112233445566778899" + } + ], + "init": { + "inputs": { + "a": "11223344556677889900112233445566778899" + }, + "outputs": {} + }, + "narrative": "The Mana Multiplier. It requires input from The Harmonizing Pendulum to drastically amplify its latent magical energy." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 2010755401 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "55667788990011223344556677889900" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "The Harmonizing Pendulum. It requires inputs from both The Soul Purifier and The Starlight Weaver to find the perfect resonance." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "8b3a4f2c" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "77d9b149" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2010755401 + } + ], + "init": { + "inputs": { + "hex": "8b3a4f2c" + }, + "outputs": {} + }, + "narrative": "The Soul Purifier. A divine artifact that cleanses magical objects of lingering dark curses." + }, + { + "id": "num_base_convert_6100", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "55667788990011223344556677889900" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "55667788990011223344556677889900" + } + ], + "init": { + "inputs": { + "s": "55667788990011223344556677889900", + "from_base": "10", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The Starlight Weaver. A mystical loom that spins constellations into tangible, glowing threads." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "e4d909c290d0fb1ca068ffaddf22cbd0" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "e4d909c290d0fb1ca068ffaddf22cbd0" + }, + "outputs": {} + }, + "narrative": "The Ancient Reliquary. A heavy stone chest protected by intricate wards and forgotten runes." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "item_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "slot_a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "n" + }, + { + "source_id": "luhn_check", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "dst" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "terminal_1_c3a5", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "src" + }, + { + "source_id": "num_base_convert", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "d" + }, + { + "source_id": "num_base_convert_64cd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "from_base" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_1_c3a5", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "slot_b" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert_64cd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "to_base" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "num_base_convert_6100", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "to_base" + }, + { + "source_id": "luhn_check", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "num_base_convert_6100", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "container_1", + "target_id": "checksum_crc32", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_0052d9e8_narrative.json b/data/questions/20/narrative/skeleton_0052d9e8_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..8d063519a45230382ed26305f5af5a43931ac26a --- /dev/null +++ b/data/questions/20/narrative/skeleton_0052d9e8_narrative.json @@ -0,0 +1,1301 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 24, + "win_node_id": "crypto_rsa_decrypt_hex", + "win_condition": { + "type": "tool_output", + "node_id": "crypto_rsa_decrypt_hex", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute RSA Decrypt and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "calc_modexp", + "graph_shortest_path", + "zip_unzip_file", + "regex_search", + "item_7", + "text_xor_hex", + "zip_unzip_file_8f0a", + "hash_md5", + "terminal_2", + "base64_encode", + "zip_unzip_file_49ec", + "regex_search_2e4b", + "calc_bigmul", + "item_2", + "calc_inv_mod" + ], + "by_node": { + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "File ID (optional)" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "text_xor_hex": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_a": { + "type": "Hex_String", + "description": "Hex A" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_8f0a": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "hash_md5": { + "node_name": "MD5 Hasher", + "node_type": "Tool", + "template_id": "hash_md5", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_49ec": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "regex_search_2e4b": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "File ID (optional)" + }, + "text": { + "type": "Text_Generic", + "description": "Text (optional)" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "item_2": { + "node_name": "", + "node_type": "Item", + "template_id": "item_2", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Text_Generic", + "description": "The text" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "calc_modexp": { + "init_inputs": { + "mod": "999983" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"node_A\", \"node_B\", \"node_C\", \"node_D\", \"node_E\"]", + "cost": "54321" + } + }, + "zip_unzip_file": { + "init_inputs": { + "password": "secret_pass_123" + }, + "init_outputs": { + "files": "extracted_data_1.csv" + } + }, + "regex_search": { + "init_inputs": { + "file_id": "search_corpus.txt" + }, + "init_outputs": { + "matches": "[\"match1\", \"match2\", \"match3\", \"match4\"]" + } + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "x = 42\nprint(x)" + } + }, + "text_xor_hex": { + "init_inputs": { + "hex_a": "1a2b3c4d5e6f7a8b" + }, + "init_outputs": {} + }, + "zip_unzip_file_8f0a": { + "init_inputs": {}, + "init_outputs": { + "files": "unzipped_content_8f.txt" + } + }, + "hash_md5": { + "init_inputs": { + "text": "Text to hash with MD5 algorithm." + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "12345678901234567890" + }, + "init_outputs": { + "text_result": "Terminal operation successful and data processed.", + "hex_result": "deadbeef12345678" + } + }, + "base64_encode": { + "init_inputs": { + "hex": "0102030405060708" + }, + "init_outputs": {} + }, + "zip_unzip_file_49ec": { + "init_inputs": { + "zip_id": "archive_49ec.zip" + }, + "init_outputs": { + "files": "documents_49ec.pdf" + } + }, + "regex_search_2e4b": { + "init_inputs": { + "file_id": "log_data.log", + "text": "Raw text content for regex searching." + }, + "init_outputs": { + "matches": "[\"error_1\", \"error_2\", \"error_3\", \"error_4\"]" + } + }, + "calc_bigmul": { + "init_inputs": { + "a": "98765432109876543210", + "b": "55555555555555555555" + }, + "init_outputs": {} + }, + "item_2": { + "init_inputs": {}, + "init_outputs": { + "content": "This is the text content extracted from item 2." + } + }, + "calc_inv_mod": { + "init_inputs": { + "a": "11111111112222222222", + "mod": "100003" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are a rogue operative trapped in a classified cyber-warfare facility known as 'The Black Box.' The facility has initiated a complete lockdown, and a countdown to a catastrophic data wipe—and potential structural purge—is ticking. The only way out is to hack into the central AI and execute the override command. The server room is a labyrinth of disconnected terminals, encrypted archives, and hardware modules. You must patch together the fragmented systems, map the network pathways, and unlock the Mainframe Decryptor before the facility erases all evidence, including you.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "90a42d4dd660d35e6a9633625e08af09" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "466438" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "54321" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0007\u001a" + } + ], + "narrative": "This is the Mainframe Decryptor. It requires inputs from the Processing Core, the Network Map Analyzer, and the Signal Combiner to unlock the final system." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "5486968450548696844945130315494513031550" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "6879" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "466438" + } + ], + "init": { + "inputs": { + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "This is the Processing Core. It requires inputs from the Security Processor and the Analytics Engine to finalize calculations." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_1.csv" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[\"match1\", \"match2\", \"match3\", \"match4\"]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "[\"error_1\", \"error_2\", \"error_3\", \"error_4\"]" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"node_A\", \"node_B\", \"node_C\", \"node_D\", \"node_E\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "54321" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"node_A\", \"node_B\", \"node_C\", \"node_D\", \"node_E\"]", + "cost": "54321" + } + }, + "narrative": "This is the Network Map Analyzer. It requires inputs from the Final Archive Extractor, the Data Miner, and the Log Scanner." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "unzipped_content_8f.txt" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "secret_pass_123" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_1.csv" + } + ], + "init": { + "inputs": { + "password": "secret_pass_123" + }, + "outputs": { + "files": "extracted_data_1.csv" + } + }, + "narrative": "This is the Final Archive Extractor. It requires input from the Secondary Archive Extractor to finish the process." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "AQIDBAUGBwg=" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "search_corpus.txt" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "42\n" + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"match1\", \"match2\", \"match3\", \"match4\"]" + } + ], + "init": { + "inputs": { + "file_id": "search_corpus.txt" + }, + "outputs": { + "matches": "[\"match1\", \"match2\", \"match3\", \"match4\"]" + } + }, + "narrative": "This is the Data Miner. It requires inputs from both the Script Interpreter and the Format Converter." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "x = 42\nprint(x)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "42\n" + } + ], + "narrative": "This is the Script Interpreter. It requires input from the Encrypted Payload to execute its routines." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "x = 42\nprint(x)" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "x = 42\nprint(x)" + } + }, + "narrative": "This is the Encrypted Payload. A mysterious software package embedded in the network." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "1a2b3c4d5e6f7a8b" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "8a8f1100880fa9d56a9633625e08af09" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "90a42d4dd660d35e6a9633625e08af09" + } + ], + "init": { + "inputs": { + "hex_a": "1a2b3c4d5e6f7a8b" + }, + "outputs": {} + }, + "narrative": "This is the Signal Combiner. It requires input from the Integrity Checker to function properly." + }, + { + "id": "zip_unzip_file_8f0a", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "documents_49ec.pdf" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"match1\", \"match2\", \"match3\", \"match4\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "unzipped_content_8f.txt" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "unzipped_content_8f.txt" + } + }, + "narrative": "This is the Secondary Archive Extractor. It requires inputs from the Data Miner and the Primary Archive Extractor." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the Hidden Container. A data storage unit secured in a locked drawer." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Text to hash with MD5 algorithm." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "8a8f1100880fa9d56a9633625e08af09" + } + ], + "init": { + "inputs": { + "text": "Text to hash with MD5 algorithm." + }, + "outputs": {} + }, + "narrative": "This is the Integrity Checker. A system module designed to verify file authenticity." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "12345678901234567890" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "6879" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal operation successful and data processed." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeef12345678" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "12345678901234567890" + }, + "outputs": { + "text_result": "Terminal operation successful and data processed.", + "hex_result": "deadbeef12345678" + } + }, + "narrative": "This is the Diagnostic Terminal. It requires input from the Security Processor to boot up." + }, + { + "id": "calc_modexp_3d87", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "5486968450548696844945130315494513031550" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "51138" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "54321" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "6879" + } + ], + "narrative": "This is the Security Processor. It requires inputs from the Network Map Analyzer, the Analytics Engine, and the Reverse Authenticator." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "0102030405060708" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "AQIDBAUGBwg=" + } + ], + "init": { + "inputs": { + "hex": "0102030405060708" + }, + "outputs": {} + }, + "narrative": "This is the Format Converter. A legacy terminal that handles data encoding." + }, + { + "id": "zip_unzip_file_49ec", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_49ec.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"match1\", \"match2\", \"match3\", \"match4\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "documents_49ec.pdf" + } + ], + "init": { + "inputs": { + "zip_id": "archive_49ec.zip" + }, + "outputs": { + "files": "documents_49ec.pdf" + } + }, + "narrative": "This is the Primary Archive Extractor. It requires input from the Data Miner to unlock the first layer." + }, + { + "id": "item_8_81f2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the Access Keycard. A heavily encrypted physical token." + }, + { + "id": "regex_search_2e4b", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "This is the text content extracted from item 2." + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "log_data.log" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "Raw text content for regex searching." + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"error_1\", \"error_2\", \"error_3\", \"error_4\"]" + } + ], + "init": { + "inputs": { + "file_id": "log_data.log", + "text": "Raw text content for regex searching." + }, + "outputs": { + "matches": "[\"error_1\", \"error_2\", \"error_3\", \"error_4\"]" + } + }, + "narrative": "This is the Log Scanner. It requires input from the System Manual to initiate its scan." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "98765432109876543210" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "55555555555555555555" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "5486968450548696844945130315494513031550" + } + ], + "init": { + "inputs": { + "a": "98765432109876543210", + "b": "55555555555555555555" + }, + "outputs": {} + }, + "narrative": "This is the Analytics Engine. A high-performance cluster used for complex mathematical operations." + }, + { + "id": "item_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Text_Generic", + "description": "The text", + "value": "This is the text content extracted from item 2." + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "This is the text content extracted from item 2." + } + }, + "narrative": "This is the System Manual. A thick technical document bound in synthetic leather." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "11111111112222222222" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "100003" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "51138" + } + ], + "init": { + "inputs": { + "a": "11111111112222222222", + "mod": "100003" + }, + "outputs": {} + }, + "narrative": "This is the Reverse Authenticator. A specialized device used to bypass digital signatures." + } + ], + "edges": [ + { + "source_id": "calc_modexp", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "n" + }, + { + "source_id": "graph_shortest_path", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "d" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "regex_search", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "src" + }, + { + "source_id": "code_py_exec", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "text" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "text_xor_hex", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "zip_unzip_file_8f0a", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_8", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "regex_search", + "target_id": "zip_unzip_file_8f0a", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "password" + }, + { + "source_id": "hash_md5", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + }, + { + "source_id": "terminal_2", + "target_id": "text_xor_hex", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "calc_modexp_3d87", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num2" + }, + { + "source_id": "base64_encode", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "pattern" + }, + { + "source_id": "zip_unzip_file_49ec", + "target_id": "zip_unzip_file_8f0a", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "calc_modexp_3d87", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "exp" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp_3d87", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "item_8_81f2", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "regex_search", + "target_id": "zip_unzip_file_49ec", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "password" + }, + { + "source_id": "regex_search_2e4b", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "dst" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "base" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp_3d87", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "base" + }, + { + "source_id": "item_2", + "target_id": "regex_search_2e4b", + "connection_type": "Text_Generic", + "source_port": "content", + "target_port": "pattern" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_modexp_3d87", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "exp" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_0361eea1_narrative.json b/data/questions/20/narrative/skeleton_0361eea1_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..954f0fcd0e20c9d63bbd490cc911b6954b6fc2ef --- /dev/null +++ b/data/questions/20/narrative/skeleton_0361eea1_narrative.json @@ -0,0 +1,1071 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 21, + "win_node_id": "text_xor_hex", + "win_condition": { + "type": "tool_output", + "node_id": "text_xor_hex", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute Hex XOR and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "item_11", + "graph_shortest_path", + "luhn_check", + "text_xor_hex_d305", + "zlib_deflate", + "hash_sha256", + "num_base_convert", + "base64_encode", + "matter_synthesizer" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + }, + "text_xor_hex_d305": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_b": { + "type": "Hex_String", + "description": "Hex B" + } + }, + "init_outputs": {} + }, + "zlib_deflate": { + "node_name": "Zlib Deflate", + "node_type": "Tool", + "template_id": "zlib_deflate", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to compress" + } + }, + "init_outputs": {} + }, + "hash_sha256": { + "node_name": "SHA-256 Hasher", + "node_type": "Tool", + "template_id": "hash_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Calculation completed successfully.", + "hex_result": "deadbeef12345678" + } + }, + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def process_data(data):\n return data[::-1]\nprint(process_data('Hello World'))" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "graph_network_map.json" + }, + "init_outputs": { + "path": "[\"node_1\", \"node_5\", \"node_9\", \"node_14\", \"node_22\", \"node_37\"]", + "cost": "48192038475610293847" + } + }, + "luhn_check": { + "init_inputs": { + "number": "4532109876543210" + }, + "init_outputs": {} + }, + "text_xor_hex_d305": { + "init_inputs": { + "hex_b": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + "init_outputs": {} + }, + "zlib_deflate": { + "init_inputs": { + "text": "This is a random text string to be compressed by zlib deflate algorithm." + }, + "init_outputs": {} + }, + "hash_sha256": { + "init_inputs": { + "text": "The quick brown fox jumps over the lazy dog to generate a sha256 hash." + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "s": "192837465019283746501", + "from_base": "16", + "to_base": "10" + }, + "init_outputs": {} + }, + "base64_encode": { + "init_inputs": { + "hex": "48656c6c6f20576f726c641234567890" + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "Advanced flux capacitor blueprint version 3.14." + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the heart of a subterranean steam-powered facility, the air thick with the smell of coal smoke and the rhythmic chugging of giant pistons. The heavy iron doors behind you have sealed shut with a deafening clang, locking you inside the main boiler control room. Before you lies a sprawling network of brass pipes, ticking difference engines, and complex pneumatic contraptions left behind by a brilliant but mad inventor. Your only hope of escape is to decipher the mechanical logic of this grand engine. You must trace the invisible flow of data through the intricate cogs, valves, and ciphers to activate the final pressure release mechanism. The pressure gauges are steadily climbing toward the red zone. Time is ticking, and every gear matters if you want to make it out alive.", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "deadbeef12345678" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "d9c0bd2849da151f3ad4387499c8f44e92c9f59fcfd55aeba7469c999701710b" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "076d03c75bee43673ad4387499c8f44e92c9f59fcfd55aeba7469c999701710b" + } + ], + "narrative": "The Final Release Valve. It requires inputs from both the Boiler Authenticator and the Master Control Console." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "88a980a7" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "dlroW olleH\n" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "d9c0bd2849da151f3ad4387499c8f44e92c9f59fcfd55aeba7469c999701710b" + } + ], + "narrative": "A Boiler Authenticator. It needs inputs from both the Difference Engine Terminal and the Steam-Valve Checker." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1900816236698863156880641" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "48192038475610293847" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Calculation completed successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeef12345678" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Calculation completed successfully.", + "hex_result": "deadbeef12345678" + } + }, + "narrative": "A grand Master Control Console. It requires inputs from both the Cartography Projector and the Gear-Ratio Converter." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def process_data(data):\n return data[::-1]\nprint(process_data('Hello World'))" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "dlroW olleH\n" + } + ], + "narrative": "A Difference Engine Terminal. It requires input from the Mechanical Punch-Card Reader to operate." + }, + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def process_data(data):\n return data[::-1]\nprint(process_data('Hello World'))" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def process_data(data):\n return data[::-1]\nprint(process_data('Hello World'))" + } + }, + "narrative": "A dusty Mechanical Punch-Card Reader resting on a mahogany desk." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_network_map.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "false" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "SGVsbG8gV29ybGQSNFZ4kA==" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"node_1\", \"node_5\", \"node_9\", \"node_14\", \"node_22\", \"node_37\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "48192038475610293847" + } + ], + "init": { + "inputs": { + "file_id": "graph_network_map.json" + }, + "outputs": { + "path": "[\"node_1\", \"node_5\", \"node_9\", \"node_14\", \"node_22\", \"node_37\"]", + "cost": "48192038475610293847" + } + }, + "narrative": "A mechanical Cartography Projector. It requires inputs from both the Brass Abacus and the Telegraph Translator." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A tarnished silver locket containing a tiny clockwork mechanism inside." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "d92ece1634fb8728213f8b09b37ac1730260b125a1c5001feaf47ab97d68e24f085acd274aee4256e8ea28070b0e9f5748a634f083d794d1e4342a0159f7d01a73fb00b8a51a68" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "88a980a7" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2292809895 + } + ], + "narrative": "A Steam-Valve Checker. It processes data directly from the Pneumatic Logic Gate." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "4532109876543210" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "4532109876543210" + }, + "outputs": {} + }, + "narrative": "A complex Brass Abacus with etched numbers and copper sliding beads." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "80f3e933d699a8a7600a5fb7e30fd1284a7aa262273d633d040510486e578478085acd274aee4256e8ea28070b0e9f5748a634f083d794d1e4342a0159f7d01a73fb00b8a51a68" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A heavy Brass Vault. It requires input from the Dual-Gear Synchronizer to unlock its mechanism." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavy iron cylinder covered in soot and smelling faintly of burnt coal." + }, + { + "id": "text_xor_hex_d305", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "789c0dc2d10d80300805c055de044ee30260b125a1c5001feaf47ab97d68e24f085acd274aee4256e8ea28070b0e9f5748a634f083d794d1e4342a0159f7d01a73fb00b8a51a68" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "d92ece1634fb8728213f8b09b37ac1730260b125a1c5001feaf47ab97d68e24f085acd274aee4256e8ea28070b0e9f5748a634f083d794d1e4342a0159f7d01a73fb00b8a51a68" + } + ], + "init": { + "inputs": { + "hex_b": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + "outputs": {} + }, + "narrative": "A Pneumatic Logic Gate. It requires input from the Copper Pressure Condenser to function." + }, + { + "id": "text_xor_hex_dd0d", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "d92ece1634fb8728213f8b09b37ac1730260b125a1c5001feaf47ab97d68e24f085acd274aee4256e8ea28070b0e9f5748a634f083d794d1e4342a0159f7d01a73fb00b8a51a68" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "59dd2725e2622f8f4135d4be5075105b481a134786f86322eef16af1133f6637" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "80f3e933d699a8a7600a5fb7e30fd1284a7aa262273d633d040510486e578478085acd274aee4256e8ea28070b0e9f5748a634f083d794d1e4342a0159f7d01a73fb00b8a51a68" + } + ], + "narrative": "A Dual-Gear Synchronizer. It requires inputs from both the Pneumatic Logic Gate and the Geared Cipher." + }, + { + "id": "item_8_bd19", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A bronze gear token stamped with strange industrial markings." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "This is a random text string to be compressed by zlib deflate algorithm." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c0dc2d10d80300805c055de044ee30260b125a1c5001feaf47ab97d68e24f085acd274aee4256e8ea28070b0e9f5748a634f083d794d1e4342a0159f7d01a73fb00b8a51a68" + } + ], + "init": { + "inputs": { + "text": "This is a random text string to be compressed by zlib deflate algorithm." + }, + "outputs": {} + }, + "narrative": "A humming Copper Pressure Condenser emitting slight puffs of hot steam." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "The quick brown fox jumps over the lazy dog to generate a sha256 hash." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "59dd2725e2622f8f4135d4be5075105b481a134786f86322eef16af1133f6637" + } + ], + "init": { + "inputs": { + "text": "The quick brown fox jumps over the lazy dog to generate a sha256 hash." + }, + "outputs": {} + }, + "narrative": "An intricate Geared Cipher built with interlocking brass cogwheels." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool", + "value": "synthesized_item_61569e82c92dd038" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "192837465019283746501" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1900816236698863156880641" + } + ], + "init": { + "inputs": { + "s": "192837465019283746501", + "from_base": "16", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "A Gear-Ratio Converter that recalibrates rotational velocities." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "48656c6c6f20576f726c641234567890" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "SGVsbG8gV29ybGQSNFZ4kA==" + } + ], + "init": { + "inputs": { + "hex": "48656c6c6f20576f726c641234567890" + }, + "outputs": {} + }, + "narrative": "A ticking Telegraph Translator connected to a series of thick brass wires." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Advanced flux capacitor blueprint version 3.14." + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_61569e82c92dd038" + } + ], + "init": { + "inputs": { + "blueprint": "Advanced flux capacitor blueprint version 3.14." + }, + "outputs": {} + }, + "narrative": "A massive Steam Fabricator that churns out mechanical components." + }, + { + "id": "item_16_2514", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An ornate pocket watch ticking softly, its gears visible through the glass." + } + ], + "edges": [ + { + "source_id": "hmac_sha256", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + }, + { + "source_id": "terminal_2", + "target_id": "hmac_sha256", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_2", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex_a" + }, + { + "source_id": "code_py_exec", + "target_id": "hmac_sha256", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "text" + }, + { + "source_id": "item_11", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num2" + }, + { + "source_id": "item_16", + "target_id": "graph_shortest_path", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "luhn_check", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "src" + }, + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "text_xor_hex_d305", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "text_xor_hex_dd0d", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "text_xor_hex_d305", + "target_id": "text_xor_hex_dd0d", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_a" + }, + { + "source_id": "item_8_bd19", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "zlib_deflate", + "target_id": "text_xor_hex_d305", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_a" + }, + { + "source_id": "hash_sha256", + "target_id": "text_xor_hex_dd0d", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num1" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "dst" + }, + { + "source_id": "matter_synthesizer", + "target_id": "num_base_convert", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "trigger_item" + }, + { + "source_id": "item_16_2514", + "target_id": "item_8_bd19", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_041d7853_narrative.json b/data/questions/20/narrative/skeleton_041d7853_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..3d91c292ec0040ba1b313914ab39a4b890fd44fd --- /dev/null +++ b/data/questions/20/narrative/skeleton_041d7853_narrative.json @@ -0,0 +1,1047 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 22, + "win_node_id": "item_3", + "win_condition": { + "type": "item_content", + "node_id": "item_3", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_3", + "terminal_1", + "calc_modexp", + "graph_shortest_path", + "zip_unzip_file", + "calc_modexp_cb5d", + "zip_unzip_file_48b5", + "item_9", + "item_15" + ], + "by_node": { + "item_3": { + "node_name": "", + "node_type": "Item", + "template_id": "item_3", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String", + "description": "The hex code" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_modexp_cb5d": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_48b5": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + }, + "item_15": { + "node_name": "", + "node_type": "Item", + "template_id": "item_15", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Text_Generic", + "description": "Timezone text" + } + } + } + } + }, + "initial_values": { + "item_3": { + "init_inputs": {}, + "init_outputs": { + "content": "7a8b9c0d1e2f3a4b" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal successfully initialized with text data.", + "hex_output": "f1e2d3c4b5a69788" + } + }, + "calc_modexp": { + "init_inputs": { + "exp": "57283940182736451928" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Start_193", + "dst": "Node_End_482" + }, + "init_outputs": { + "path": "[\"Node_Start_193\", \"Node_X1\", \"Node_Y2\", \"Node_Z3\", \"Node_W4\", \"Node_End_482\"]", + "cost": "5432" + } + }, + "zip_unzip_file": { + "init_inputs": { + "password": "SecureP@ssw0rd123!" + }, + "init_outputs": { + "files": "extracted_data_archive.zip" + } + }, + "calc_modexp_cb5d": { + "init_inputs": { + "base": "16", + "mod": "104729" + }, + "init_outputs": {} + }, + "zip_unzip_file_48b5": { + "init_inputs": { + "password": "Unl0ckMeNow999" + }, + "init_outputs": { + "files": "graph_structure_info.json" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "dataset_v2_export.json" + } + }, + "item_15": { + "init_inputs": {}, + "init_outputs": { + "content": "Asia/Tokyo" + } + } + }, + "intro_narrative": "Welcome to the Archmage's Sanctum, a hidden chamber where the lines between magic and reality blur. The Grand Wizard has vanished, leaving behind only an intricate web of magical artifacts and enchanted relics. Your ultimate objective is to unravel the arcane connections binding these items together to obtain the fabled Dragon's Eye. Time is of the essence, as the magical wards holding the sanctum together are slowly decaying. Pay close attention to the magical devices, as many rely on the energies produced by others to function.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "item_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String", + "description": "The hex code", + "value": "7a8b9c0d1e2f3a4b" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "7a8b9c0d1e2f3a4b" + } + }, + "narrative": "The Dragon's Eye. A fabled gemstone pulsing with inner fire." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Elven Crystal. A flawlessly carved crystal radiating soft light." + }, + { + "id": "item_8_f6b2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Dwarven Gem. A sturdy gemstone etched with deep mountain runes." + }, + { + "id": "item_8_ac0d", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Mermaid's Pearl. A glowing sphere that smells faintly of the deep ocean." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Chrono Pendulum. A magical weight swinging in defiance of gravity." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "80ae780a1d46603c0c6aeb8ad51f52e603c4" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is The Enchanted Reliquary. It requires input from The Magic Weaver to break its warding seals." + }, + { + "id": "item_16_a884", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Astral Astrolabe. A celestial instrument used for stargazing." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "789c732cce4cd40fc9cfaecc070013aa03c4" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "f8320b26d30ab433c5a54546d21f414c" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "80ae780a1d46603c0c6aeb8ad51f52e603c4" + } + ], + "narrative": "This is The Magic Weaver. It requires inputs from both The Void Compressor and The Soul Crucible to weave its arcane threads." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"Node_Start_193\", \"Node_X1\", \"Node_Y2\", \"Node_Z3\", \"Node_W4\", \"Node_End_482\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "54772" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal successfully initialized with text data." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "f1e2d3c4b5a69788" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal successfully initialized with text data.", + "hex_output": "f1e2d3c4b5a69788" + } + }, + "narrative": "This is The Grand Grimoire. It requires inputs from both The Map of Realms and The Arcane Altar to awaken its pages." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "5432" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "57283940182736451928" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "87956" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "54772" + } + ], + "init": { + "inputs": { + "exp": "57283940182736451928" + }, + "outputs": {} + }, + "narrative": "This is The Arcane Altar. It requires inputs from both The Map of Realms and The Lunar Altar to channel its energy." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "False" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "f8320b26d30ab433c5a54546d21f414c" + } + ], + "narrative": "This is The Soul Crucible. It requires input from The Truth Oracle to purify its contents." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "Terminal successfully initialized with text data." + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "This is The Truth Oracle. It requires input from The Grand Grimoire to judge what is real." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_archive.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Start_193" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_End_482" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Start_193\", \"Node_X1\", \"Node_Y2\", \"Node_Z3\", \"Node_W4\", \"Node_End_482\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "5432" + } + ], + "init": { + "inputs": { + "src": "Node_Start_193", + "dst": "Node_End_482" + }, + "outputs": { + "path": "[\"Node_Start_193\", \"Node_X1\", \"Node_Y2\", \"Node_Z3\", \"Node_W4\", \"Node_End_482\"]", + "cost": "5432" + } + }, + "narrative": "This is The Map of Realms. It requires input from The Silver Spellbook to reveal hidden paths across the void." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "graph_structure_info.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecureP@ssw0rd123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_archive.zip" + } + ], + "init": { + "inputs": { + "password": "SecureP@ssw0rd123!" + }, + "outputs": { + "files": "extracted_data_archive.zip" + } + }, + "narrative": "This is The Silver Spellbook. It requires input from The Bronze Spellbook to unlock its secrets." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "Asia/Tokyo" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c732cce4cd40fc9cfaecc070013aa03c4" + } + ], + "narrative": "This is The Void Compressor. It requires input from The Whispering Stone to compress the ethereal winds." + }, + { + "id": "calc_modexp_cb5d", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "16" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "5432" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "87956" + } + ], + "init": { + "inputs": { + "base": "16", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "This is The Lunar Altar. It requires input from The Map of Realms to align the stars." + }, + { + "id": "zip_unzip_file_48b5", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "dataset_v2_export.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Unl0ckMeNow999" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "graph_structure_info.json" + } + ], + "init": { + "inputs": { + "password": "Unl0ckMeNow999" + }, + "outputs": { + "files": "graph_structure_info.json" + } + }, + "narrative": "This is The Bronze Spellbook. It requires input from The Ancient Scroll to decipher its binding." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "dataset_v2_export.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "dataset_v2_export.json" + } + }, + "narrative": "The Ancient Scroll. A dusty parchment covered in forgotten glyphs." + }, + { + "id": "item_15", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_15", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Text_Generic", + "description": "Timezone text", + "value": "Asia/Tokyo" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "Asia/Tokyo" + } + }, + "narrative": "The Whispering Stone. A smooth river rock that murmurs ancient secrets." + }, + { + "id": "item_8_2e0e", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Shadow Rune. An obsidian tablet carved with dark symbols." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_f6b2", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_ac0d", + "target_id": "item_8_f6b2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_ac0d", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16_a884", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "text_xor_hex", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_1", + "target_id": "item_16_a884", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "slot_b" + }, + { + "source_id": "hash_md5", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + }, + { + "source_id": "iban_validate", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "text" + }, + { + "source_id": "terminal_1", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "iban" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "base" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zlib_deflate", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_a" + }, + { + "source_id": "calc_modexp_cb5d", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp_cb5d", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "exp" + }, + { + "source_id": "zip_unzip_file_48b5", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_9", + "target_id": "zip_unzip_file_48b5", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "slot_a" + }, + { + "source_id": "item_15", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "content", + "target_port": "text" + }, + { + "source_id": "item_8_2e0e", + "target_id": "zip_unzip_file", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_0756c6fe_narrative.json b/data/questions/20/narrative/skeleton_0756c6fe_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..5cce2cb13c865ce5bc85c89f7b17095ba9480c66 --- /dev/null +++ b/data/questions/20/narrative/skeleton_0756c6fe_narrative.json @@ -0,0 +1,1269 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 24, + "win_node_id": "item_11", + "win_condition": { + "type": "item_content", + "node_id": "item_11", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_11", + "json_get", + "item_7", + "terminal_2", + "container_1_216b", + "calc_inv_mod", + "terminal_1", + "num_base_convert", + "calc_gcd_255f", + "zip_unzip_file", + "zip_unzip_file_4e8a", + "calc_modexp", + "graph_shortest_path", + "item_9" + ], + "by_node": { + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": {}, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "container_1_216b": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "calc_gcd_255f": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_4e8a": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + } + } + }, + "initial_values": { + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def process():\n return 'success'" + } + }, + "json_get": { + "init_inputs": {}, + "init_outputs": { + "values": "[\"item_a\", \"item_b\", \"item_c\", \"item_d\"]" + } + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "num = 12345\nprint(num)" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Partial input received, awaiting further instructions.", + "hex_result": "8f2c5d1e4b3a2c1d8f2c5d1e4b3a2c1d" + } + }, + "container_1_216b": { + "init_inputs": { + "fingerprint_input": "deadbeefcafebabe1234567890abcdef" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "123456789012345678901234567890" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Admin override slot A active.", + "slot_b": "987654321098765432109876543210" + }, + "init_outputs": { + "text_output": "Terminal processing completed successfully for Slot A.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "num_base_convert": { + "init_inputs": { + "s": "112233445566778899001122334455" + }, + "init_outputs": {} + }, + "calc_gcd_255f": { + "init_inputs": { + "b": "887766554433221100998877665544" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_data_1.zip" + } + }, + "zip_unzip_file_4e8a": { + "init_inputs": { + "password": "SecurePassword!123" + }, + "init_outputs": { + "files": "extracted_data_2.zip" + } + }, + "calc_modexp": { + "init_inputs": { + "base": "27", + "exp": "334455667788990011223344556677", + "mod": "999979" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "graph_network_v2.json", + "src": "NodeA", + "dst": "NodeZ" + }, + "init_outputs": { + "path": "[\"NodeA\", \"NodeB\", \"NodeC\", \"NodeD\", \"NodeE\", \"NodeZ\"]", + "cost": "15678" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "config_data_main.json" + } + } + }, + "intro_narrative": "You awaken in the dark, metallic corridors of 'Nexus-9', an abandoned deep-space research station. Red emergency strobes pulse ominously as the automated life support systems steadily drain. The station's central AI has initiated a total lockdown protocol following an unknown cataclysm. Your only chance of survival is to override the mainframe and unlock the escape pods. To do this, you must navigate a labyrinth of encrypted servers, complex logic machines, and biometric vaults left behind by the former crew. Analyze the fragmented data scattered throughout the facility, repair the broken data chains, and reconstruct the vital access codes. The oxygen is thinning, and the silence of the void is pressing in. Every device you successfully interface with brings you one step closer to your escape.", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def process():\n return 'success'" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def process():\n return 'success'" + } + }, + "narrative": "A heavily shielded data drive containing the final mainframe override protocols." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "8f2c5d1e4b3a2c1d8f2c5d1e4b3a2c1d" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A heavy security vault. It requires input from the authentication terminal to unlock." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "[\"item_a\", \"item_b\", \"item_c\", \"item_d\"]" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_b4235302256546da" + } + ], + "narrative": "An advanced 3D printing bay. It requires input from the data extractor to begin synthesis." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "extracted_data_1.zip" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "12345\n" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"item_a\", \"item_b\", \"item_c\", \"item_d\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "values": "[\"item_a\", \"item_b\", \"item_c\", \"item_d\"]" + } + }, + "narrative": "A specialized parsing machine. It requires inputs from both the execution console and the main decryptor." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "num = 12345\nprint(num)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "12345\n" + } + ], + "narrative": "A high-level processing terminal. It requires input from the code fragment to run its sequences." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "num = 12345\nprint(num)" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "num = 12345\nprint(num)" + } + }, + "narrative": "A damaged optical disc containing raw computational scripts." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A small, specialized microchip displaying strange temporal coordinates." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "2" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "4" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial input received, awaiting further instructions." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "8f2c5d1e4b3a2c1d8f2c5d1e4b3a2c1d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Partial input received, awaiting further instructions.", + "hex_result": "8f2c5d1e4b3a2c1d8f2c5d1e4b3a2c1d" + } + }, + "narrative": "A secure login station. It requires inputs from both the primary logic unit and the secondary logic unit." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "123456789012345678901234567890" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "4" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "2" + } + ], + "narrative": "A massive calculation array. It requires inputs from both the inversion module and the secondary logic unit." + }, + { + "id": "container_1_216b", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "deadbeefcafebabe1234567890abcdef" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "deadbeefcafebabe1234567890abcdef" + }, + "outputs": {} + }, + "narrative": "A reinforced titanium lockbox with a heavy biometric seal." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "123456789012345678901234567890" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "112233445566778899001122334455" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "123456789012345678901234567890" + } + ], + "init": { + "inputs": { + "a": "123456789012345678901234567890" + }, + "outputs": {} + }, + "narrative": "A complex mathematical processor. It requires input from the quantum translator." + }, + { + "id": "matter_synthesizer_a266", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Terminal processing completed successfully for Slot A." + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_561a82ef5b6ea651" + } + ], + "narrative": "A backup 3D printing bay. It requires input from the command console." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Admin override slot A active." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "987654321098765432109876543210" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal processing completed successfully for Slot A." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Admin override slot A active.", + "slot_b": "987654321098765432109876543210" + }, + "outputs": { + "text_output": "Terminal processing completed successfully for Slot A.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "narrative": "A sleek operations desk with a glowing holographic interface." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "112233445566778899001122334455" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "15678" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "4" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "112233445566778899001122334455" + } + ], + "init": { + "inputs": { + "s": "112233445566778899001122334455" + }, + "outputs": {} + }, + "narrative": "A signal conversion matrix. It requires inputs from both the secondary logic unit and the routing computer." + }, + { + "id": "calc_gcd_255f", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "345980" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "887766554433221100998877665544" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "4" + } + ], + "init": { + "inputs": { + "b": "887766554433221100998877665544" + }, + "outputs": {} + }, + "narrative": "An auxiliary calculation array. It requires input from the energy calculator." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_data_2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"NodeA\", \"NodeB\", \"NodeC\", \"NodeD\", \"NodeE\", \"NodeZ\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_1.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_data_1.zip" + } + }, + "narrative": "An advanced file extraction system. It requires inputs from both the basic decryptor and the routing computer." + }, + { + "id": "zip_unzip_file_4e8a", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "config_data_main.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword!123" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_2.zip" + } + ], + "init": { + "inputs": { + "password": "SecurePassword!123" + }, + "outputs": { + "files": "extracted_data_2.zip" + } + }, + "narrative": "A standard file extraction system. It requires input from the encrypted data pad." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "27" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "334455667788990011223344556677" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999979" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "345980" + } + ], + "init": { + "inputs": { + "base": "27", + "exp": "334455667788990011223344556677", + "mod": "999979" + }, + "outputs": {} + }, + "narrative": "A high-powered computing node used for complex power grid analysis." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_network_v2.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "NodeA" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "NodeZ" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"NodeA\", \"NodeB\", \"NodeC\", \"NodeD\", \"NodeE\", \"NodeZ\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "15678" + } + ], + "init": { + "inputs": { + "file_id": "graph_network_v2.json", + "src": "NodeA", + "dst": "NodeZ" + }, + "outputs": { + "path": "[\"NodeA\", \"NodeB\", \"NodeC\", \"NodeD\", \"NodeE\", \"NodeZ\"]", + "cost": "15678" + } + }, + "narrative": "A navigation matrix terminal used for calculating optimal station pathways." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "config_data_main.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "config_data_main.json" + } + }, + "narrative": "A discarded crew tablet containing locked archive files." + } + ], + "edges": [ + { + "source_id": "container_1", + "target_id": "item_11", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "matter_synthesizer", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "json_get", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "blueprint" + }, + { + "source_id": "code_py_exec", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "jsonpath" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "item_16", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num1" + }, + { + "source_id": "container_1_216b", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "matter_synthesizer_a266", + "target_id": "container_1_216b", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "matter_synthesizer_a266", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_2", + "target_id": "terminal_1", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "calc_gcd_255f", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "calc_gcd_255f", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "zip_unzip_file", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_4e8a", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "calc_gcd_255f", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "to_base" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd_255f", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "terminal_1", + "target_id": "matter_synthesizer_a266", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "blueprint" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "from_base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "password" + }, + { + "source_id": "item_9", + "target_id": "zip_unzip_file_4e8a", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_09a77967_narrative.json b/data/questions/20/narrative/skeleton_09a77967_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..a77aac236f7bac1993d0d4e619d1cc5424bc675f --- /dev/null +++ b/data/questions/20/narrative/skeleton_09a77967_narrative.json @@ -0,0 +1,1338 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 26, + "win_node_id": "zip_unzip_file", + "win_condition": { + "type": "tool_output", + "node_id": "zip_unzip_file", + "output_port": "files", + "output_type": "File_Id", + "description": "Execute Zip Unzipper and get the output from port 'files'" + }, + "source_init": { + "source_nodes": [ + "zip_unzip_file", + "zip_unzip_file_0e15", + "regex_search", + "terminal_2", + "csv_query", + "graph_shortest_path", + "text_rotN", + "zip_unzip_file_a292", + "zip_unzip_file_6f4d", + "terminal_1", + "checksum_crc32", + "calc_modexp", + "time_convert", + "iban_validate" + ], + "by_node": { + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_0e15": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": {}, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": {}, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_a292": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_6f4d": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "time_convert": { + "node_name": "Timezone Converter", + "node_type": "Tool", + "template_id": "time_convert", + "init_inputs": { + "iso": { + "type": "Text_Generic", + "description": "ISO Timestamp" + }, + "from_tz": { + "type": "Text_Generic", + "description": "From Timezone" + }, + "to_tz": { + "type": "Text_Generic", + "description": "To Timezone" + } + }, + "init_outputs": {} + }, + "iban_validate": { + "node_name": "IBAN Validator", + "node_type": "Tool", + "template_id": "iban_validate", + "init_inputs": { + "iban": { + "type": "Text_Generic", + "description": "IBAN string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_data_1.zip" + } + }, + "zip_unzip_file_0e15": { + "init_inputs": { + "zip_id": "target_source_42.zip" + }, + "init_outputs": { + "files": "unzipped_content_88.zip" + } + }, + "regex_search": { + "init_inputs": {}, + "init_outputs": { + "matches": "[\"found_pattern_1\", \"found_pattern_2\", \"found_pattern_3\", \"found_pattern_4\"]" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal operation has finalized successfully.", + "hex_result": "4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c" + } + }, + "csv_query": { + "init_inputs": {}, + "init_outputs": { + "rows": "[\"id,name,value\", \"1,Alice,100\", \"2,Bob,200\", \"3,Charlie,300\"]" + } + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"start_node\", \"intermediate_1\", \"intermediate_2\", \"intermediate_3\", \"end_node\"]", + "cost": "543210" + } + }, + "text_rotN": { + "init_inputs": { + "text": "The quick brown fox jumps over the lazy dog." + }, + "init_outputs": {} + }, + "zip_unzip_file_a292": { + "init_inputs": { + "password": "secure_password_987654321" + }, + "init_outputs": { + "files": "archive_bundle_2023.zip" + } + }, + "zip_unzip_file_6f4d": { + "init_inputs": { + "zip_id": "encrypted_package_main.zip", + "password": "super_secret_password_abc" + }, + "init_outputs": { + "files": "decrypted_files_collection.zip" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System boot sequence initiated and complete.", + "hex_output": "deadbeefcafebabe1234567890abcdef", + "item_dispenser": "A totally useless token that does nothing." + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "112233445566778899aabbccddeeff00" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "17", + "exp": "98765432101234567890123", + "mod": "999983" + }, + "init_outputs": {} + }, + "time_convert": { + "init_inputs": { + "iso": "2023-11-20T08:00:00Z", + "from_tz": "UTC", + "to_tz": "Asia/Tokyo" + }, + "init_outputs": {} + }, + "iban_validate": { + "init_inputs": { + "iban": "FR7630006000011234567890189" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken aboard the derelict orbital station, Aegis-7, to the blaring sound of emergency sirens. The station's core AI has been corrupted by a hostile cyber-entity, locking down all critical systems and sealing the escape pods. Oxygen levels are steadily dropping, and the metallic corridors are bathed in the eerie red glow of emergency lighting. Your only hope of survival is to initiate the final vault decryption sequence to override the lockdown protocols. However, the station's network is heavily fragmented. You must navigate a complex web of interconnected terminals, mathematical processors, and encrypted drives, restoring the data flow node by node. Every tool and terminal you find is a piece of a larger puzzle. Can you restore the station's core functions and escape before the life support completely fails?", + "narrative_style": "sci_fi" + }, + "nodes": [ + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "unzipped_content_88.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"found_pattern_1\", \"found_pattern_2\", \"found_pattern_3\", \"found_pattern_4\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_1.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_data_1.zip" + } + }, + "narrative": "This is the Main Archive Decryptor, the final vault decryption sequence. It requires inputs from the Secondary Archive Decryptor and the Pattern Analyzer to unlock the escape pods." + }, + { + "id": "zip_unzip_file_0e15", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "target_source_42.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "2023-11-20T17:00:00+09:00" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "unzipped_content_88.zip" + } + ], + "init": { + "inputs": { + "zip_id": "target_source_42.zip" + }, + "outputs": { + "files": "unzipped_content_88.zip" + } + }, + "narrative": "This is the Secondary Archive Decryptor, an intermediate decryption interface. It requires input from the Data Decompressor to process the archived files." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A crystallized logic fragment humming with trapped quantum energy, dropped from a nearby console." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "[\"id,name,value\", \"1,Alice,100\", \"2,Bob,200\", \"3,Charlie,300\"]" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "decrypted_files_collection.zip" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "Terminal operation has finalized successfully." + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"found_pattern_1\", \"found_pattern_2\", \"found_pattern_3\", \"found_pattern_4\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "matches": "[\"found_pattern_1\", \"found_pattern_2\", \"found_pattern_3\", \"found_pattern_4\"]" + } + }, + "narrative": "This is the Pattern Analyzer, an automated scanning tool. It requires inputs from the Database Query Interface, the Auxiliary Logic Terminal, and the Base Encrypted Data Drive." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "543210" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "2416908508" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal operation has finalized successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal operation has finalized successfully.", + "hex_result": "4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c" + } + }, + "narrative": "This is the Auxiliary Logic Terminal, a backup command interface. It requires inputs from the Cryptographic Inverse Calculator and the Navigational Path Finder." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "unzipped_content_88.zip" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "Terminal operation has finalized successfully." + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "Xli uymgo fvsar jsb nyqtw sziv xli pedc hsk." + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[\"id,name,value\", \"1,Alice,100\", \"2,Bob,200\", \"3,Charlie,300\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "rows": "[\"id,name,value\", \"1,Alice,100\", \"2,Bob,200\", \"3,Charlie,300\"]" + } + }, + "narrative": "This is the Database Query Interface, a data extraction terminal. It requires inputs from the Auxiliary Logic Terminal, the Secondary Archive Decryptor, and the Rotational Cipher Decoder." + }, + { + "id": "zlib_inflate", + "name": "Zlib Inflate", + "description": "Inflate zlib-compressed data (hex) to text.", + "type": "Tool", + "template_id": "zlib_inflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Zlib compressed hex", + "value": "789c33323032d63534d43532083134b7323000226d034b20090040fa0504" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Inflated text", + "value": "2023-11-20T17:00:00+09:00" + } + ], + "narrative": "This is the Data Decompressor, a module that expands packed data. It requires input from the Data Compressor to function correctly." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 2416908508 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "543210" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "2416908508" + } + ], + "narrative": "This is the Cryptographic Inverse Calculator, a mathematical co-processor. It requires inputs from both the Navigational Path Finder and the Integrity Validator." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "archive_bundle_2023.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "System boot sequence initiated and complete." + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "2023-11-20T17:00:00+09:00" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"start_node\", \"intermediate_1\", \"intermediate_2\", \"intermediate_3\", \"end_node\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "543210" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"start_node\", \"intermediate_1\", \"intermediate_2\", \"intermediate_3\", \"end_node\"]", + "cost": "543210" + } + }, + "narrative": "This is the Navigational Path Finder, a routing hub. It requires inputs from the Data Decompressor, the Sector Map Archive, and the Primary System Terminal." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "The quick brown fox jumps over the lazy dog." + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "476116" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Xli uymgo fvsar jsb nyqtw sziv xli pedc hsk." + } + ], + "init": { + "inputs": { + "text": "The quick brown fox jumps over the lazy dog." + }, + "outputs": {} + }, + "narrative": "This is the Rotational Cipher Decoder, a cipher tool for shifting text arrays. It requires input from the Quantum Modulator." + }, + { + "id": "zip_unzip_file_a292", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "decrypted_files_collection.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "secure_password_987654321" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "archive_bundle_2023.zip" + } + ], + "init": { + "inputs": { + "password": "secure_password_987654321" + }, + "outputs": { + "files": "archive_bundle_2023.zip" + } + }, + "narrative": "This is the Sector Map Archive, a secure sector map storage system. It requires input from the Base Encrypted Data Drive to unlock." + }, + { + "id": "zip_unzip_file_6f4d", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_package_main.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "super_secret_password_abc" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "decrypted_files_collection.zip" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_package_main.zip", + "password": "super_secret_password_abc" + }, + "outputs": { + "files": "decrypted_files_collection.zip" + } + }, + "narrative": "This is the Base Encrypted Data Drive, a heavily secured storage drive containing the base encrypted files for the orbital station." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "2023-11-20T17:00:00+09:00" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c33323032d63534d43532083134b7323000226d034b20090040fa0504" + } + ], + "narrative": "This is the Data Compressor, a hardware compression unit. It requires input from the Temporal Synchronizer to operate properly." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A physical access keycard with glowing blue edges left behind by station security." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "True" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 2416908508 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System boot sequence initiated and complete." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeefcafebabe1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A totally useless token that does nothing." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System boot sequence initiated and complete.", + "hex_output": "deadbeefcafebabe1234567890abcdef", + "item_dispenser": "A totally useless token that does nothing." + } + }, + "narrative": "This is the Primary System Terminal, the main processing console. It requires inputs from both the Integrity Validator and the Financial Authorization Module." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "112233445566778899aabbccddeeff00" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "900f18dc" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2416908508 + } + ], + "init": { + "inputs": { + "hex": "112233445566778899aabbccddeeff00" + }, + "outputs": {} + }, + "narrative": "This is the Integrity Validator, a system designed to verify the structural integrity of localized data packets." + }, + { + "id": "item_8_6497", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A discarded access keycard with glowing red edges radiating faint heat." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "17" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "98765432101234567890123" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "476116" + } + ], + "init": { + "inputs": { + "base": "17", + "exp": "98765432101234567890123", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "This is the Quantum Modulator, an advanced quantum engine used to compute complex energy states." + }, + { + "id": "time_convert", + "name": "Timezone Converter", + "description": "Convert ISO time between timezones.", + "type": "Tool", + "template_id": "time_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "ISO Timestamp", + "value": "2023-11-20T08:00:00Z" + }, + { + "name": "from_tz", + "type": "Text_Generic", + "description": "From Timezone", + "value": "UTC" + }, + { + "name": "to_tz", + "type": "Text_Generic", + "description": "To Timezone", + "value": "Asia/Tokyo" + } + ], + "outputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "Converted ISO Timestamp", + "value": "2023-11-20T17:00:00+09:00" + } + ], + "init": { + "inputs": { + "iso": "2023-11-20T08:00:00Z", + "from_tz": "UTC", + "to_tz": "Asia/Tokyo" + }, + "outputs": {} + }, + "narrative": "This is the Temporal Synchronizer, a module that aligns standard time signatures across the facility." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "FR7630006000011234567890189" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "True" + } + ], + "init": { + "inputs": { + "iban": "FR7630006000011234567890189" + }, + "outputs": {} + }, + "narrative": "This is the Financial Authorization Module, a terminal that checks standard commercial routing numbers for trading ships." + } + ], + "edges": [ + { + "source_id": "zip_unzip_file_0e15", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_16", + "target_id": "zip_unzip_file_0e15", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "regex_search", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "password" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "csv_query", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "pattern" + }, + { + "source_id": "terminal_2", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "select" + }, + { + "source_id": "zlib_inflate", + "target_id": "zip_unzip_file_0e15", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_0e15", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num2" + }, + { + "source_id": "terminal_2", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "zlib_inflate", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + }, + { + "source_id": "text_rotN", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "where" + }, + { + "source_id": "zip_unzip_file_a292", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_6f4d", + "target_id": "zip_unzip_file_a292", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zlib_deflate", + "target_id": "zlib_inflate", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "item_8", + "target_id": "zip_unzip_file_a292", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zip_unzip_file_6f4d", + "target_id": "regex_search", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "terminal_1", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "src" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "item_8_6497", + "target_id": "terminal_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_modexp", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "n" + }, + { + "source_id": "time_convert", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "iso", + "target_port": "text" + }, + { + "source_id": "iban_validate", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "slot_a" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_0ec934a1_narrative.json b/data/questions/20/narrative/skeleton_0ec934a1_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..8fba76d2faf9579bb443057f39cd8c0c4ac16013 --- /dev/null +++ b/data/questions/20/narrative/skeleton_0ec934a1_narrative.json @@ -0,0 +1,1326 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 26, + "win_node_id": "terminal_1", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_1", + "output_port": "text_output", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_output'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "terminal_2", + "graph_shortest_path", + "calc_gcd", + "calc_inv_mod", + "graph_shortest_path_eecb", + "zip_unzip_item", + "checksum_crc32_aa12", + "num_base_convert", + "zip_unzip_file", + "item_7", + "graph_shortest_path_a407" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path_eecb": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": {} + }, + "checksum_crc32_aa12": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "graph_shortest_path_a407": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "SORT_ME_TO_FIND_THE_KEY_ABCDEFGHIJKLMNOPQRSTUVWXYZ", + "hex_output": "deadbeef1234567890abcdef", + "item_dispenser": "0_1_1_2_3_5_8_13_21_34_55" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Result from partial terminal execution.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d", + "math_token": "Math token that does nothing really" + } + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\", \"Node_F\"]", + "cost": "345678" + } + }, + "calc_gcd": { + "init_inputs": { + "b": "98765432109876543210123" + }, + "init_outputs": {} + }, + "calc_inv_mod": { + "init_inputs": { + "a": "56789012345678901234567", + "mod": "9973" + }, + "init_outputs": {} + }, + "graph_shortest_path_eecb": { + "init_inputs": { + "file_id": "graph_map_eecb.json", + "dst": "Node_Destination_X" + }, + "init_outputs": { + "path": "[\"Start\", \"N1\", \"N2\", \"N3\", \"N4\", \"Target\"]", + "cost": "87654" + } + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "secret_archive_item.zip" + }, + "init_outputs": {} + }, + "checksum_crc32_aa12": { + "init_inputs": { + "hex": "abcd0123456789ef" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "s": "12345678901234567890123", + "to_base": "10" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "documents_archive.zip", + "password": "SuperSecretPassword123!" + }, + "init_outputs": { + "files": "extracted_documents_folder.zip" + } + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "def calculate_answer():\n return 42\n" + } + }, + "graph_shortest_path_a407": { + "init_inputs": { + "file_id": "graph_map_a407.json", + "src": "Node_Start_Y", + "dst": "Node_End_Z" + }, + "init_outputs": { + "path": "[\"Y\", \"M1\", \"M2\", \"M3\", \"M4\", \"Z\"]", + "cost": "12345" + } + } + }, + "intro_narrative": "You are an elite cyber-operative infiltrated into the subterranean data-fortress of a rogue intelligence syndicate known as 'The Vanguard'. Their localized server grid is primed to launch a global blackout virus, plunging the world into digital darkness within the hour. The underground facility is eerily deserted, completely locked down, and humming with heavily encrypted server racks and blinking indicator lights. Your objective is clear but daunting: you must navigate this maze of interconnected hardware, bypass their intricate, multi-layered security protocols, and trace the physical and digital data pathways. Every module, from signal synchronizers to power processors, plays a vital part in their defense web. You must intercept the scattered data fragments, route them through the correct processing nodes, and finally execute a master system override at the central uplink before the doomsday countdown reaches zero. Time is ticking.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Result from partial terminal execution." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "345678" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "SORT_ME_TO_FIND_THE_KEY_ABCDEFGHIJKLMNOPQRSTUVWXYZ" + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeef1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "0_1_1_2_3_5_8_13_21_34_55" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "SORT_ME_TO_FIND_THE_KEY_ABCDEFGHIJKLMNOPQRSTUVWXYZ", + "hex_output": "deadbeef1234567890abcdef", + "item_dispenser": "0_1_1_2_3_5_8_13_21_34_55" + } + }, + "narrative": "The final Main System Uplink. It requires inputs from both the Secondary Authentication Terminal and the Network Routing Module to completely override the facility." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "87654" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "0" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Result from partial terminal execution." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Math token that does nothing really" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Result from partial terminal execution.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d", + "math_token": "Math token that does nothing really" + } + }, + "narrative": "A Secondary Authentication Terminal. It requires inputs from both the Power Fluctuation Processor and the Grid Mapper to stabilize its core." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_documents_folder.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Result from partial terminal execution." + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "\u0001OK<" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\", \"Node_F\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "345678" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\", \"Node_F\"]", + "cost": "345678" + } + }, + "narrative": "A central Network Routing Module. It requires inputs from the Cipher Decryptor, the Secondary Authentication Terminal, and the Archive Extractor." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "1a2b3c4d5e6f7a8b9c0d" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "12345678901234567890123" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "53" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0001OK<" + } + ], + "narrative": "An advanced Cipher Decryptor console. It requires inputs from the Signal Synchronizer, the Secondary Authentication Terminal, and the Format Translator." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "87654" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 1352208829 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "0" + } + ], + "narrative": "A high-capacity Power Fluctuation Processor. It requires inputs from the Data Integrity Validator, the Grid Mapper, and the Protocol Optimizer." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "4954f5c8" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "509911bd" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1352208829 + } + ], + "narrative": "A rigorous Data Integrity Validator. It requires input from the Hexadecimal Scanner to verify packet authenticity before proceeding." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "4954f5c8" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A heavy biometric Secure Vault. It requires input from the Hexadecimal Scanner to authorize access." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "9116" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "98765432109876543210123" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "53" + } + ], + "init": { + "inputs": { + "b": "98765432109876543210123" + }, + "outputs": {} + }, + "narrative": "A vital Signal Synchronizer. It requires input from the Frequency Inverter to match the wave phase perfectly." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "56789012345678901234567" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "9973" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "9116" + } + ], + "init": { + "inputs": { + "a": "56789012345678901234567", + "mod": "9973" + }, + "outputs": {} + }, + "narrative": "An isolated Frequency Inverter module left active on a technician's desk." + }, + { + "id": "graph_shortest_path_eecb", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_map_eecb.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "(no output)" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_Destination_X" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Start\", \"N1\", \"N2\", \"N3\", \"N4\", \"Target\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "87654" + } + ], + "init": { + "inputs": { + "file_id": "graph_map_eecb.json", + "dst": "Node_Destination_X" + }, + "outputs": { + "path": "[\"Start\", \"N1\", \"N2\", \"N3\", \"N4\", \"Target\"]", + "cost": "87654" + } + }, + "narrative": "A tactical Grid Mapper system. It requires input from the Logic Executor to plot the secure network layout." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secret_archive_item.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"Start\", \"N1\", \"N2\", \"N3\", \"N4\", \"Target\"]" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "secret_archive_item.zip" + }, + "outputs": {} + }, + "narrative": "An Encrypted Extraction Tool suite. It requires input from the Grid Mapper to isolate its hidden payload." + }, + { + "id": "checksum_crc32_aa12", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "abcd0123456789ef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "4954f5c8" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1230304712 + } + ], + "init": { + "inputs": { + "hex": "abcd0123456789ef" + }, + "outputs": {} + }, + "narrative": "A handheld Hexadecimal Scanner used by engineers for quick code diagnostics." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A damaged but largely readable Memory Drive." + }, + { + "id": "item_8_6294", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavy-duty Backup Storage drive encased in a shockproof shell." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "12345678901234567890123" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "87654" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "12345678901234567890123" + } + ], + "init": { + "inputs": { + "s": "12345678901234567890123", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "A versatile Format Translator. It requires input from the Grid Mapper to align differing network data structures." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "documents_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretPassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_documents_folder.zip" + } + ], + "init": { + "inputs": { + "zip_id": "documents_archive.zip", + "password": "SuperSecretPassword123!" + }, + "outputs": { + "files": "extracted_documents_folder.zip" + } + }, + "narrative": "A digital Archive Extractor tool loaded onto an abandoned portable datapad." + }, + { + "id": "calc_gcd_65ed", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 1352208829 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "12345" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "A Protocol Optimizer relay. It requires inputs from both the Data Integrity Validator and the Topology Analyzer to function." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def calculate_answer():\n return 42\n" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "(no output)" + } + ], + "narrative": "A sophisticated Logic Executor script interface. It requires input from the Source Code Fragment to run its compilation process." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "def calculate_answer():\n return 42\n" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def calculate_answer():\n return 42\n" + } + }, + "narrative": "A critical Source Code Fragment flashing continuously on a suspended monitor." + }, + { + "id": "graph_shortest_path_a407", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_map_a407.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Start_Y" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_End_Z" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Y\", \"M1\", \"M2\", \"M3\", \"M4\", \"Z\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "12345" + } + ], + "init": { + "inputs": { + "file_id": "graph_map_a407.json", + "src": "Node_Start_Y", + "dst": "Node_End_Z" + }, + "outputs": { + "path": "[\"Y\", \"M1\", \"M2\", \"M3\", \"M4\", \"Z\"]", + "cost": "12345" + } + }, + "narrative": "A localized Topology Analyzer humming softly in the shadowy corner of the server room." + } + ], + "edges": [ + { + "source_id": "terminal_2", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "slot_a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + }, + { + "source_id": "terminal_2", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "src" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num2" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "container_1", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "calc_gcd", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "d" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path_eecb", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "terminal_2", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex_cipher" + }, + { + "source_id": "zip_unzip_item", + "target_id": "checksum_crc32", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "checksum_crc32_aa12", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "checksum_crc32_aa12", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_8", + "target_id": "calc_gcd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_8_6294", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path_eecb", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "base" + }, + { + "source_id": "graph_shortest_path_eecb", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "password" + }, + { + "source_id": "num_base_convert", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "n" + }, + { + "source_id": "graph_shortest_path_eecb", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "from_base" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "calc_gcd_65ed", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd_65ed", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "code_py_exec", + "target_id": "graph_shortest_path_eecb", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "src" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "graph_shortest_path_a407", + "target_id": "calc_gcd_65ed", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_11dedc3a_narrative.json b/data/questions/20/narrative/skeleton_11dedc3a_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..4f2f4880397cb0b5f46b279c4e847d93ec05346a --- /dev/null +++ b/data/questions/20/narrative/skeleton_11dedc3a_narrative.json @@ -0,0 +1,1116 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 22, + "win_node_id": "container_1", + "win_condition": { + "type": "item_content", + "node_id": "container_1", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_1", + "terminal_2", + "terminal_1", + "zlib_deflate", + "hash_md5_c789", + "graph_shortest_path", + "code_py_exec", + "text_rotN", + "time_convert" + ], + "by_node": { + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "zlib_deflate": { + "node_name": "Zlib Deflate", + "node_type": "Tool", + "template_id": "zlib_deflate", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to compress" + } + }, + "init_outputs": {} + }, + "hash_md5_c789": { + "node_name": "MD5 Hasher", + "node_type": "Tool", + "template_id": "hash_md5", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "code_py_exec": { + "node_name": "Python Executor", + "node_type": "Tool", + "template_id": "code_py_exec", + "init_inputs": { + "code": { + "type": "Code_Python", + "description": "Python code" + } + }, + "init_outputs": {} + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "n": { + "type": "Big_Int", + "description": "Shift N" + } + }, + "init_outputs": {} + }, + "time_convert": { + "node_name": "Timezone Converter", + "node_type": "Tool", + "template_id": "time_convert", + "init_inputs": { + "iso": { + "type": "Text_Generic", + "description": "ISO Timestamp" + }, + "from_tz": { + "type": "Text_Generic", + "description": "From Timezone" + }, + "to_tz": { + "type": "Text_Generic", + "description": "To Timezone" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_1": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "#FF0000_#00FF00_#0000FF_RGB" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal two partial execution output generated.", + "hex_result": "abcdef0123456789abcdef0123456789", + "math_token": "An irrelevant token that wastes inventory space." + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "System initialize parameters slot a", + "slot_b": "482930491827384950182" + }, + "init_outputs": { + "text_output": "Terminal one diagnostic mode completed successfully.", + "hex_output": "8899aabbccddeeff0011223344556677" + } + }, + "zlib_deflate": { + "init_inputs": { + "text": "Please compress this particular generic text using deflate." + }, + "init_outputs": {} + }, + "hash_md5_c789": { + "init_inputs": { + "text": "Text payload targeted for MD5 hashing sequence." + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "server_graph_v3.json" + }, + "init_outputs": { + "path": "[\"Gateway\", \"Firewall\", \"Router_1\", \"Switch_A\", \"Server_42\", \"Database_Core\"]", + "cost": "28459" + } + }, + "code_py_exec": { + "init_inputs": { + "code": "def get_target(): return 'Node_Z'\nprint(get_target())" + }, + "init_outputs": {} + }, + "text_rotN": { + "init_inputs": { + "text": "Shift this string by an incredibly large number.", + "n": "59382716405928374615" + }, + "init_outputs": {} + }, + "time_convert": { + "init_inputs": { + "iso": "2024-05-12T08:15:30Z", + "from_tz": "Europe/London", + "to_tz": "America/New_York" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You've infiltrated the heavily fortified subterranean data vault of the rogue technology syndicate known as OmniCorp. The air is thick with the hum of cooling fans and the pulsing neon glow of server racks. Suddenly, blaring sirens echo through the concrete corridors—the facility's automated lockdown has engaged, trapping you inside. Your primary objective remains critical: extract the experimental source code secured within the core data drive. The room is a chaotic web of high-tech equipment, cryptic mainframe interfaces, and heavily encrypted computing terminals. Every operator console and cipher dial is part of a complex defense grid that must be systematically dismantled. You will need to trace the data flows, manipulate the systems, and decrypt the security layers to bypass the final biometric safeguards. You only have a narrow window of time before OmniCorp's elite tactical response team sweeps the sector. Focus on the network connections, uncover the right sequence, and secure the objective before it's too late.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "6e9ec4a92dc50c4c99d03e1a8a63835f" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "#FF0000_#00FF00_#0000FF_RGB" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "#FF0000_#00FF00_#0000FF_RGB" + } + }, + "narrative": "This is the core data drive. It requires input from the final scrambler to finally grant access to its contents." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Terminal two partial execution output generated." + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the biometric case. It requires input from the central mainframe to authenticate the mechanical release." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "28459" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "3371763418" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal two partial execution output generated." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "abcdef0123456789abcdef0123456789" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "An irrelevant token that wastes inventory space." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal two partial execution output generated.", + "hex_result": "abcdef0123456789abcdef0123456789", + "math_token": "An irrelevant token that wastes inventory space." + } + }, + "narrative": "This is the central mainframe. It requires inputs from both the decryption matrix and the routing protocol to unlock its administrative systems." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 3371763418 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "5038108944309120010" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "3371763418" + } + ], + "narrative": "This is the decryption matrix. It requires inputs from both the quantum multiplier and the secondary integrity scanner to invert the sequence." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": 1494205945 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 3371763418 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "5038108944309120010" + } + ], + "narrative": "This is the quantum multiplier. It requires inputs from both the data integrity scanner and the secondary integrity scanner to calculate the massive output." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "789c05c1810dc0200804c0557e0267e90a84be9604ad014c3a7eef2ea724a1efdcc14cd463892d51a6c72530b818a6287e8593b6066e769762fb01a5111661" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "590fc5f9" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1494205945 + } + ], + "narrative": "This is the data integrity scanner. It requires input from the text compressor to function properly." + }, + { + "id": "checksum_crc32_5dab", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "b9f4e62d3b9f91b34fb56a2859769ab3" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "c8f906da" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3371763418 + } + ], + "narrative": "This is the secondary integrity scanner. It requires input from the logic combiner to verify the secure datastream." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_cfbb5bf01abe2901" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A heavy-duty access badge with an embedded microchip, used for physical overrides." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "8899aabbccddeeff0011223344556677" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "316d4c96f7427f4c4fa4481b1d23fcc4" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "b9f4e62d3b9f91b34fb56a2859769ab3" + } + ], + "narrative": "This is the logic combiner. It requires inputs from both the primary scrambler and the operator console before it can merge the signals." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A digital security keycard with glowing blue lines across its surface." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Fuvsg guvf fgevat ol na vaperqvoyl ynetr ahzore." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "316d4c96f7427f4c4fa4481b1d23fcc4" + } + ], + "narrative": "This is the primary scrambler. It requires input from the cipher shift dial to begin processing the hash." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "[\"Gateway\", \"Firewall\", \"Router_1\", \"Switch_A\", \"Server_42\", \"Database_Core\"]" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_cfbb5bf01abe2901" + } + ], + "narrative": "This is the rapid fabricator. It requires input from the routing protocol to print the requested object." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "System initialize parameters slot a" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "482930491827384950182" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal one diagnostic mode completed successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "8899aabbccddeeff0011223344556677" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "System initialize parameters slot a", + "slot_b": "482930491827384950182" + }, + "outputs": { + "text_output": "Terminal one diagnostic mode completed successfully.", + "hex_output": "8899aabbccddeeff0011223344556677" + } + }, + "narrative": "A heavily modified operator console displaying an active corporate login screen." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "Please compress this particular generic text using deflate." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c05c1810dc0200804c0557e0267e90a84be9604ad014c3a7eef2ea724a1efdcc14cd463892d51a6c72530b818a6287e8593b6066e769762fb01a5111661" + } + ], + "init": { + "inputs": { + "text": "Please compress this particular generic text using deflate." + }, + "outputs": {} + }, + "narrative": "A sleek text compressor terminal with a blinking green cursor, waiting for inputs." + }, + { + "id": "hash_md5_c789", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Text payload targeted for MD5 hashing sequence." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "6e9ec4a92dc50c4c99d03e1a8a63835f" + } + ], + "init": { + "inputs": { + "text": "Text payload targeted for MD5 hashing sequence." + }, + "outputs": {} + }, + "narrative": "A standalone final scrambler interface hardwired to the master lock mechanism." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "server_graph_v3.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "2024-05-12T04:15:30-04:00" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_Z\n" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Gateway\", \"Firewall\", \"Router_1\", \"Switch_A\", \"Server_42\", \"Database_Core\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "28459" + } + ], + "init": { + "inputs": { + "file_id": "server_graph_v3.json" + }, + "outputs": { + "path": "[\"Gateway\", \"Firewall\", \"Router_1\", \"Switch_A\", \"Server_42\", \"Database_Core\"]", + "cost": "28459" + } + }, + "narrative": "This is the routing protocol. It requires inputs from both the script terminal and the chronometer to map the network connections." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def get_target(): return 'Node_Z'\nprint(get_target())" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Node_Z\n" + } + ], + "init": { + "inputs": { + "code": "def get_target(): return 'Node_Z'\nprint(get_target())" + }, + "outputs": {} + }, + "narrative": "An old script terminal with root access privileges and a glowing monitor." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Shift this string by an incredibly large number." + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "59382716405928374615" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Fuvsg guvf fgevat ol na vaperqvoyl ynetr ahzore." + } + ], + "init": { + "inputs": { + "text": "Shift this string by an incredibly large number.", + "n": "59382716405928374615" + }, + "outputs": {} + }, + "narrative": "A mechanical cipher shift dial embedded firmly into the steel server rack." + }, + { + "id": "time_convert", + "name": "Timezone Converter", + "description": "Convert ISO time between timezones.", + "type": "Tool", + "template_id": "time_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "ISO Timestamp", + "value": "2024-05-12T08:15:30Z" + }, + { + "name": "from_tz", + "type": "Text_Generic", + "description": "From Timezone", + "value": "Europe/London" + }, + { + "name": "to_tz", + "type": "Text_Generic", + "description": "To Timezone", + "value": "America/New_York" + } + ], + "outputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "Converted ISO Timestamp", + "value": "2024-05-12T04:15:30-04:00" + } + ], + "init": { + "inputs": { + "iso": "2024-05-12T08:15:30Z", + "from_tz": "Europe/London", + "to_tz": "America/New_York" + }, + "outputs": {} + }, + "narrative": "A high-tech chronometer syncing continuously with global black-site satellites." + }, + { + "id": "item_8_93a9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A pristine hidden keycard tucked away securely in a dark corner." + } + ], + "edges": [ + { + "source_id": "container_4", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num2" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32_5dab", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "item_16", + "target_id": "calc_bigmul", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "text_xor_hex", + "target_id": "checksum_crc32_5dab", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_8", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "hash_md5", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + }, + { + "source_id": "matter_synthesizer", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex_a" + }, + { + "source_id": "terminal_1", + "target_id": "checksum_crc32_5dab", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "zlib_deflate", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "checksum_crc32_5dab", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "hash_md5_c789", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "graph_shortest_path", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "blueprint" + }, + { + "source_id": "code_py_exec", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "dst" + }, + { + "source_id": "text_rotN", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "time_convert", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "iso", + "target_port": "src" + }, + { + "source_id": "item_8_93a9", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_148a2d02_narrative.json b/data/questions/20/narrative/skeleton_148a2d02_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..aa36d38dc2aacd4b0a5e5d49263a69b8f61f288e --- /dev/null +++ b/data/questions/20/narrative/skeleton_148a2d02_narrative.json @@ -0,0 +1,1143 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 34, + "win_node_id": "calc_modexp", + "win_condition": { + "type": "tool_output", + "node_id": "calc_modexp", + "output_port": "value", + "output_type": "Big_Int", + "description": "Execute BigInt Modular Exponentiation and get the output from port 'value'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "calc_inv_mod_f349", + "num_base_convert_f317", + "terminal_1", + "calc_inv_mod_84c9", + "hash_sha256" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_inv_mod_f349": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "num_base_convert_f317": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "calc_inv_mod_84c9": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "hash_sha256": { + "node_name": "SHA-256 Hasher", + "node_type": "Tool", + "template_id": "hash_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Partial input processed successfully.", + "hex_result": "1a2b3c4d5e6f7a8b" + } + }, + "calc_inv_mod_f349": { + "init_inputs": { + "mod": "104729" + }, + "init_outputs": {} + }, + "num_base_convert_f317": { + "init_inputs": { + "from_base": "16", + "to_base": "10" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Initialization data sequence alpha", + "slot_b": "82394571029384756193" + }, + "init_outputs": { + "text_output": "Terminal one generated text output perfectly.", + "hex_output": "c0ffeed00dbeef42", + "item_dispenser": "A totally useless shiny rock just for you" + } + }, + "calc_inv_mod_84c9": { + "init_inputs": { + "mod": "999983" + }, + "init_outputs": {} + }, + "hash_sha256": { + "init_inputs": { + "text": "Message payload to be hashed by sha256" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The year is 2142, and the neon-drenched metropolis above has long forgotten the subterranean servers of Chronos Corp. You are a rogue netrunner who made a critical mistake during a routine data heist, resulting in your consciousness being trapped inside this decaying digital labyrinth. The air around you, though simulated, smells heavily of ozone and burning synthetic coolant. The facility's automated defense systems are slowly waking up from their decades-long hibernation, and their hostile sweepers are already hunting your presence. Your only way out is to initiate the facility's master override sequence to force a hard reboot of the exit ports. To do this, you must navigate a tangled web of obsolete corporate hardware, decrypting secure signals, and rerouting power through various legacy nodes. The architecture here is relentless and unforgiving. If you don't manage to execute the master override in time, your consciousness will be permanently wiped from the net, leaving you as nothing more than ghost code. Find the correct sequence of inputs, carefully follow the data trails, and activate the final execution sequence before the system purges you forever.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "2" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "2" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "80338" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "4" + } + ], + "narrative": "This is the Final Execution Sequence. It requires inputs from the Core Interface Node, the Syntax Parser, and the Logic Gate Relayer." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "2" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "80338" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "80338" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "2" + } + ], + "narrative": "This is the Core Interface Node. It requires inputs from the Neural Decoupler, the Memory Controller, and the Logic Gate Relayer." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "80338" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "7890214" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "80338" + } + ], + "narrative": "This is the Neural Decoupler. It processes data from the Phase Shift Module and the Format Translator to safely bypass the firewall." + }, + { + "id": "calc_inv_mod_0642", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "2" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "80338" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "2" + } + ], + "narrative": "This is the Memory Controller. It requires inputs from the Syntax Parser and the Logic Gate Relayer to allocate enough cache." + }, + { + "id": "num_base_convert_2369", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "2" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "80338" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 3113793551 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "2" + } + ], + "narrative": "This is the Syntax Parser. It requires inputs from the Neural Decoupler, the Integrity Verifier, and the Resonance Synchronizer." + }, + { + "id": "calc_inv_mod_48ad", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "80338" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "2" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "80338" + } + ], + "narrative": "This is the Logic Gate Relayer. It needs input from the Neural Decoupler and the Resonance Synchronizer to flip mechanical switches." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A decrypted access key encased in a small, glowing datapad. It feels warm to the touch." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "7890214" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "80338" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "2" + } + ], + "narrative": "This is the Resonance Synchronizer. It needs input from the Protocol Converter and the Format Translator to tune the hardware." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An encrypted data cache left behind by a previous netrunner. It radiates a faint neon glow." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "7890214" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "2" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial input processed successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Partial input processed successfully.", + "hex_result": "1a2b3c4d5e6f7a8b" + } + }, + "narrative": "This is the Mainframe Uplink. It requires inputs from the Quantum Aligner and the Format Translator to establish a secure connection." + }, + { + "id": "calc_inv_mod_f349", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 3113793551 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "80338" + } + ], + "init": { + "inputs": { + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "This is the Phase Shift Module. It requires input from the Integrity Verifier to realign the server's optical frequencies." + }, + { + "id": "calc_gcd_c65e", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "80338" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "2" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "2" + } + ], + "narrative": "This is the Quantum Aligner. It requires inputs from the Resonance Synchronizer and the Protocol Converter to stabilize the matrix." + }, + { + "id": "num_base_convert_f317", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "786526" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "7890214" + } + ], + "init": { + "inputs": { + "from_base": "16", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the Format Translator. It processes data from the Signal Inverter to make the code readable by older subnets." + }, + { + "id": "item_16_00cb", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A corrupted memory chip found discarded on the floor. Its serial number has been completely burned off." + }, + { + "id": "num_base_convert_1ddb", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "80338" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "7890214" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 3113793551 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "80338" + } + ], + "narrative": "This is the Protocol Converter. It requires inputs from the Format Translator, the Phase Shift Module, and the Integrity Verifier." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "add7761da9e446370becbbcf9c5ef68c53f50676be3a41ca1032011764d5148e" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "b998b80f" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3113793551 + } + ], + "narrative": "This is the Integrity Verifier. It processes data from the Data Splicer to ensure there are no corrupted data packets." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "c0ffeed00dbeef42" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "6d2898cda45aa9750becbbcf9c5ef68c53f50676be3a41ca1032011764d5148e" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "add7761da9e446370becbbcf9c5ef68c53f50676be3a41ca1032011764d5148e" + } + ], + "narrative": "This is the Data Splicer. It requires inputs from the Corpo Access Terminal and the Bio-Scanner Console to intertwine raw streams." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Initialization data sequence alpha" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "82394571029384756193" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal one generated text output perfectly." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "c0ffeed00dbeef42" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A totally useless shiny rock just for you" + } + ], + "init": { + "inputs": { + "slot_a": "Initialization data sequence alpha", + "slot_b": "82394571029384756193" + }, + "outputs": { + "text_output": "Terminal one generated text output perfectly.", + "hex_output": "c0ffeed00dbeef42", + "item_dispenser": "A totally useless shiny rock just for you" + } + }, + "narrative": "This is the Corpo Access Terminal. A dusty, outdated console with a flickering green display." + }, + { + "id": "calc_inv_mod_84c9", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "80338" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "786526" + } + ], + "init": { + "inputs": { + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "This is the Signal Inverter. It requires input from the Phase Shift Module to flip the cryptographic polarity." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Message payload to be hashed by sha256" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "6d2898cda45aa9750becbbcf9c5ef68c53f50676be3a41ca1032011764d5148e" + } + ], + "init": { + "inputs": { + "text": "Message payload to be hashed by sha256" + }, + "outputs": {} + }, + "narrative": "This is the Bio-Scanner Console. A sleek but damaged interface that still hums with low voltage." + } + ], + "edges": [ + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "base" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "from_base" + }, + { + "source_id": "calc_inv_mod_0642", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "s" + }, + { + "source_id": "num_base_convert_2369", + "target_id": "calc_inv_mod_0642", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "num_base_convert_2369", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert_2369", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "from_base" + }, + { + "source_id": "calc_inv_mod_48ad", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "item_8", + "target_id": "calc_inv_mod", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_inv_mod_48ad", + "target_id": "calc_inv_mod_0642", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "calc_inv_mod_48ad", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_inv_mod_48ad", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod_48ad", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "calc_inv_mod_f349", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_gcd_c65e", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_gcd_c65e", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "num_base_convert_f317", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num1" + }, + { + "source_id": "item_16_00cb", + "target_id": "calc_gcd_c65e", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "num_base_convert_1ddb", + "target_id": "calc_gcd_c65e", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert_2369", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "num_base_convert_1ddb", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "num_base_convert_f317", + "target_id": "num_base_convert_1ddb", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "from_base" + }, + { + "source_id": "num_base_convert_f317", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "text_xor_hex", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_inv_mod_f349", + "target_id": "num_base_convert_1ddb", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "s" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert_1ddb", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "terminal_1", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex_a" + }, + { + "source_id": "calc_inv_mod_84c9", + "target_id": "num_base_convert_f317", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "s" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert_2369", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "s" + }, + { + "source_id": "calc_inv_mod_f349", + "target_id": "calc_inv_mod_84c9", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "num_base_convert_f317", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_inv_mod_f349", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "hash_sha256", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_229db497_narrative.json b/data/questions/20/narrative/skeleton_229db497_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..c353bf0af3b6ebf35a919aaa3120625100a8cae2 --- /dev/null +++ b/data/questions/20/narrative/skeleton_229db497_narrative.json @@ -0,0 +1,895 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 19, + "win_node_id": "item_8", + "win_condition": { + "type": "item_content", + "node_id": "item_8", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_8", + "terminal_2", + "num_base_convert", + "luhn_check", + "checksum_crc32", + "calc_gcd", + "item_1" + ], + "by_node": { + "item_8": { + "node_name": "", + "node_type": "Item", + "template_id": "item_8", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hidden_Item", + "description": "The integer" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + } + } + }, + "initial_values": { + "item_8": { + "init_inputs": {}, + "init_outputs": { + "content": "1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal output successfully generated for partial data.", + "hex_result": "a1b2c3d4e5f67890abcdef1234567890" + } + }, + "num_base_convert": { + "init_inputs": { + "to_base": "10" + }, + "init_outputs": {} + }, + "luhn_check": { + "init_inputs": { + "number": "7992739871356" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeef0123456789abcdef" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "984372819482736459182", + "b": "475829102938475610293" + }, + "init_outputs": {} + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "84739201837465920183" + } + } + }, + "intro_narrative": "You awaken in the dimly lit study of a missing eccentric inventor, a room that feels entirely frozen in time. The air is thick with dust, the faint scent of ozone, and the lingering aroma of old paper. Shadows dance across the walls, cast by the flickering light of monitors that shouldn't still be running. Strange contraptions, bizarre mechanical devices, and cryptic artifacts litter every available surface of the mahogany desk and bookshelves. The heavy oak door behind you is locked tight, sealed with a mechanism that defies modern logic. A low, ominous countdown echoes softly from a hidden speaker embedded somewhere in the ceiling, reminding you that your presence here is strictly timed. You were sent here to find the inventor's ultimate creation, a secret he guarded with his life. To escape this place and uncover the truth, you must unravel his final enigmas. You'll need to interact with his bizarre machinery, decipher the cryptic clues left behind, and piece together the fractured logic of a genius mind. Every object in this room holds a purpose, and only by connecting them can you hope to unlock the final secret before the clock strikes zero.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer", + "value":"qwertyui-answer" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O" + } + }, + "narrative": "A dusty envelope resting on the edge of the mahogany desk." + }, + { + "id": "item_8_fc85", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A torn photograph showing a shadowy figure in an old coat." + }, + { + "id": "item_8_7f27", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A rusty key with strange, non-euclidean engravings." + }, + { + "id": "item_8_0934", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A cryptic note written in hurried, panicked handwriting." + }, + { + "id": "item_8_1fd9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A strange pendant emitting a faint, pulsating glow." + }, + { + "id": "item_8_ced0", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavy silver coin from an unknown, forgotten era." + }, + { + "id": "item_8_2670", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A cracked magnifying glass with a heavy brass handle." + }, + { + "id": "item_8_2f84", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A blank journal that smells faintly of old leather." + }, + { + "id": "item_8_9d9d", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A wooden puzzle box covered in intricate carvings." + }, + { + "id": "item_8_4d65", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An antique pocket watch whose hands are forever frozen." + }, + { + "id": "item_8_def0", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavy brass compass that always points to the wrong north." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A faded map depicting unknown, constantly shifting territories." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "84739201837465920183" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal output successfully generated for partial data." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f67890abcdef1234567890" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal output successfully generated for partial data.", + "hex_result": "a1b2c3d4e5f67890abcdef1234567890" + } + }, + "narrative": "This is the Main Computer. It requires inputs from both the Signal Converter and the Arithmetic Machine." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "false" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object" + } + ], + "narrative": "This is the 3D Printer. It requires input from the Validation Scanner." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "84739201837465920183" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": 3437505701 + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "84739201837465920183" + } + ], + "init": { + "inputs": { + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the Signal Converter. It requires inputs from both the Integrity Checker and the small glass vial." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "7992739871356" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "7992739871356" + }, + "outputs": {} + }, + "narrative": "This is the Validation Scanner, a heavy brass device with a slot for cards." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeef0123456789abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "cce42ca5" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3437505701 + } + ], + "init": { + "inputs": { + "hex": "deadbeef0123456789abcdef" + }, + "outputs": {} + }, + "narrative": "This is the Integrity Checker, an old digital analyzing device." + }, + { + "id": "item_16_45d2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A mysterious ledger filled with crossed-out names and dates." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "984372819482736459182" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "475829102938475610293" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "984372819482736459182", + "b": "475829102938475610293" + }, + "outputs": {} + }, + "narrative": "This is the Arithmetic Machine, a mechanical calculator with complex gears." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "84739201837465920183" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "84739201837465920183" + } + }, + "narrative": "A small glass vial containing a swirling, viscous liquid." + } + ], + "edges": [ + { + "source_id": "item_8_fc85", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_7f27", + "target_id": "item_8_fc85", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_0934", + "target_id": "item_8_7f27", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_1fd9", + "target_id": "item_8_0934", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_ced0", + "target_id": "item_8_1fd9", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_2670", + "target_id": "item_8_ced0", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_2f84", + "target_id": "item_8_2670", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_9d9d", + "target_id": "item_8_2f84", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_4d65", + "target_id": "item_8_9d9d", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_def0", + "target_id": "item_8_4d65", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_def0", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "matter_synthesizer", + "target_id": "terminal_2", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "trigger_item" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num1" + }, + { + "source_id": "luhn_check", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "blueprint" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "from_base" + }, + { + "source_id": "item_16_45d2", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "item_1", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "s" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_2435d26f_narrative.json b/data/questions/20/narrative/skeleton_2435d26f_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..919fcf4b2249cf0546f78d9d70c4816d5e68c392 --- /dev/null +++ b/data/questions/20/narrative/skeleton_2435d26f_narrative.json @@ -0,0 +1,1028 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 25, + "win_node_id": "item_4", + "win_condition": { + "type": "item_content", + "node_id": "item_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_4", + "calc_modexp", + "calc_gcd", + "calc_inv_mod_f2f2", + "csv_query", + "terminal_1", + "item_12", + "item_9" + ], + "by_node": { + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "calc_inv_mod_f2f2": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "where": { + "type": "Text_Generic", + "description": "Where clause" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "item_12": { + "node_name": "", + "node_type": "Item", + "template_id": "item_12", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String", + "description": "The hex code" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + } + } + }, + "initial_values": { + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "hidden_archive_591.zip" + } + }, + "calc_modexp": { + "init_inputs": { + "base": "31" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "81947582647394857263" + }, + "init_outputs": {} + }, + "calc_inv_mod_f2f2": { + "init_inputs": { + "mod": "638471" + }, + "init_outputs": {} + }, + "csv_query": { + "init_inputs": { + "where": "department = 'engineering' AND salary >= 80000" + }, + "init_outputs": { + "rows": "[\"row1_id_101\", \"row2_id_102\", \"row3_id_103\", \"row4_id_104\"]" + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "sys_reboot_sequence_init" + }, + "init_outputs": { + "text_output": "System terminal diagnostic process completed without errors.", + "hex_output": "1234567890abcdef1234567890abcdef", + "item_dispenser": "A strangely shaped useless metal gear." + } + }, + "item_12": { + "init_inputs": {}, + "init_outputs": { + "content": "f1e2d3c4b5a69788" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "metadata_manifest_99.json" + } + } + }, + "intro_narrative": "You awaken in the abandoned communications wing of a covert research facility. The air is stale, and the hum of dormant servers echoes through the dim corridors. Your only way out is to access the classified files locked deep within the mainframe. However, the system's security protocol has fragmented the decryption sequences across various modules, safes, and old terminals scattered around the room. You must decipher the connections between these archaic machines, trace the data flow, and unlock the final digital archive before the automated wipe sequence erases everything.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "hidden_archive_591.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "hidden_archive_591.zip" + } + }, + "narrative": "This is the Secret Archive. A sealed digital storage unit containing the final truth." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the Secondary Decryption Key. A corrupted memory block holding partial access codes." + }, + { + "id": "item_8_9664", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the Primary Decryption Key. A fragmented memory block with classified data." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Timezone Log. A digital record of temporal events." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "1" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Quantum Lockbox. A heavily shielded container. It requires input from the Master Cryptographic Inverter." + }, + { + "id": "item_16_2cd7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Encrypted Log. A secure transmission record abandoned on a desk." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "117403609192417" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1" + } + ], + "narrative": "This is the Master Cryptographic Inverter. A specialized decryption terminal. It requires inputs from both the Prime Factoring Calculator and the Core Exponentiation Engine." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "8d8e53a7d87346416328b322be254139" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Executive Safe. A biometric wall safe. It requires input from the Security Hash Generator." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "31" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "154506" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "251055021344952" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "117403609192417" + } + ], + "init": { + "inputs": { + "base": "31" + }, + "outputs": {} + }, + "narrative": "This is the Core Exponentiation Engine. An old mainframe calculation unit. It requires inputs from both the Initial Cryptographic Inverter and the Arithmetic Multiplier." + }, + { + "id": "container_1_8a51", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "8d8e53a7d87346416328b322be254139" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Director's Briefcase. A secure leather briefcase. It requires input from the Security Hash Generator." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "System terminal diagnostic process completed without errors." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "8d8e53a7d87346416328b322be254139" + } + ], + "narrative": "This is the Security Hash Generator. A cryptographic hashing device. It requires input from the Main Operations Terminal." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "154506" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 1624888492 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "251055021344952" + } + ], + "narrative": "This is the Arithmetic Multiplier. An archaic mechanical calculator. It requires inputs from both the Initial Cryptographic Inverter and the Data Integrity Checker." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "81947582647394857263" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "117403609192417" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "81947582647394857263" + }, + "outputs": {} + }, + "narrative": "This is the Prime Factoring Calculator. A complex factoring machine. It requires input from the Core Exponentiation Engine." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "f1e2d3c4b5a69788" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "60d9d4ac" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1624888492 + } + ], + "narrative": "This is the Data Integrity Checker. A forensic analysis tool. It requires input from the Torn Diary Page." + }, + { + "id": "calc_inv_mod_f2f2", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 1624888492 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "638471" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "154506" + } + ], + "init": { + "inputs": { + "mod": "638471" + }, + "outputs": {} + }, + "narrative": "This is the Initial Cryptographic Inverter. A preliminary decryption module. It requires input from the Data Integrity Checker." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "[\"row1_id_101\", \"row2_id_102\", \"row3_id_103\", \"row4_id_104\"]" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Archive Vault. A dusty metallic vault. It requires input from the Database Query System." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "metadata_manifest_99.json" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "System terminal diagnostic process completed without errors." + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "department = 'engineering' AND salary >= 80000" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[\"row1_id_101\", \"row2_id_102\", \"row3_id_103\", \"row4_id_104\"]" + } + ], + "init": { + "inputs": { + "where": "department = 'engineering' AND salary >= 80000" + }, + "outputs": { + "rows": "[\"row1_id_101\", \"row2_id_102\", \"row3_id_103\", \"row4_id_104\"]" + } + }, + "narrative": "This is the Database Query System. An ancient database terminal. It requires inputs from both the Digital Blueprint File and the Main Operations Terminal." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "sys_reboot_sequence_init" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "1" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System terminal diagnostic process completed without errors." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1234567890abcdef1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A strangely shaped useless metal gear." + } + ], + "init": { + "inputs": { + "slot_a": "sys_reboot_sequence_init" + }, + "outputs": { + "text_output": "System terminal diagnostic process completed without errors.", + "hex_output": "1234567890abcdef1234567890abcdef", + "item_dispenser": "A strangely shaped useless metal gear." + } + }, + "narrative": "This is the Main Operations Terminal. A central command console. It requires input from the Prime Factoring Calculator." + }, + { + "id": "item_12", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_12", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String", + "description": "The hex code", + "value": "f1e2d3c4b5a69788" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "f1e2d3c4b5a69788" + } + }, + "narrative": "This is the Torn Diary Page. A simple piece of paper with scribbled researcher notes." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "metadata_manifest_99.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "metadata_manifest_99.json" + } + }, + "narrative": "This is the Digital Blueprint File. A compact storage drive holding the facility layouts." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_9664", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_9664", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_3", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16_2cd7", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "calc_inv_mod", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "fingerprint_input" + }, + { + "source_id": "container_1", + "target_id": "item_16_2cd7", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "container_1_8a51", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "hash_md5", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "hash_md5", + "target_id": "container_1_8a51", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "calc_inv_mod_f2f2", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "exp" + }, + { + "source_id": "container_4", + "target_id": "container_1_8a51", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "csv_query", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_1", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "text" + }, + { + "source_id": "item_12", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "content", + "target_port": "hex" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_inv_mod_f2f2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod_f2f2", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "slot_b" + }, + { + "source_id": "terminal_1", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "select" + }, + { + "source_id": "item_9", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_25a3ba06_narrative.json b/data/questions/20/narrative/skeleton_25a3ba06_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..390d423e1b77160d1b79d47b87e117b852bd3164 --- /dev/null +++ b/data/questions/20/narrative/skeleton_25a3ba06_narrative.json @@ -0,0 +1,1120 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 21, + "win_node_id": "item_1", + "win_condition": { + "type": "item_content", + "node_id": "item_1", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_1", + "terminal_2", + "calc_gcd", + "calc_gcd_7509", + "num_base_convert", + "num_base_convert_b66c", + "graph_shortest_path", + "zip_unzip_file", + "item_10", + "terminal_2_597e" + ], + "by_node": { + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "calc_gcd_7509": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "num_base_convert_b66c": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "item_10": { + "node_name": "", + "node_type": "Item", + "template_id": "item_10", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "terminal_2_597e": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + } + } + }, + "initial_values": { + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "91827364509182736450" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "123456789012345678901" + }, + "init_outputs": { + "text_result": "Partial processing completed successfully.", + "hex_result": "1a2b3c4d5e6f7a8b" + } + }, + "calc_gcd": { + "init_inputs": { + "a": "38475619283746501928" + }, + "init_outputs": {} + }, + "calc_gcd_7509": { + "init_inputs": { + "a": "56473829105647382910" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "from_base": "16" + }, + "init_outputs": {} + }, + "num_base_convert_b66c": { + "init_inputs": { + "from_base": "32", + "to_base": "10" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "dst": "Node_99" + }, + "init_outputs": { + "path": "[\"Node_1\", \"Node_14\", \"Node_23\", \"Node_55\", \"Node_99\"]", + "cost": "857234" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "archive_data.zip", + "password": "SecretPass123!" + }, + "init_outputs": { + "files": "extracted_graph.json" + } + }, + "item_10": { + "init_inputs": {}, + "init_outputs": { + "content": "88887777666655554444" + } + }, + "terminal_2_597e": { + "init_inputs": { + "num1": "44445555666677778888", + "num2": "11112222333344445555" + }, + "init_outputs": { + "text_result": "Initial stage terminal output.", + "hex_result": "aabbccddeeff00112233", + "math_token": "A completely useless math token string." + } + } + }, + "intro_narrative": "The world ended not with a bang, but with a silent, toxic whisper. It has been twenty years since the Collapse, and the surface is nothing but a scorched wasteland scoured by irradiated winds. You are a Scavenger, desperate for a chance at survival. Rumors spoke of Sector Zero, an intact pre-war military bunker housing a legendary survival payload—a cache of pure water synthesizers and uncontaminated seeds. You have finally breached the facility's outer airlock, but the interior is a labyrinth of dead-end corridors, rusted technology, and automated lockdown protocols. Emergency lights flicker, casting long, menacing shadows across the ash-covered floors. Your Geiger counter clicks erratically, a constant reminder that time is running out. To reach the deepest level and secure the ultimate prize, you must power up dormant terminals, decipher the remnants of old-world technology, and bypass the bunker's complex security systems. Every terminal and mechanism is interconnected; missing a single step could seal you in this concrete tomb forever. Explore the ruins, trace the fragmented data pathways, and unlock the final payload before the radiation claims you.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "91827364509182736450" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "91827364509182736450" + } + }, + "narrative": "The Final Payload. A heavy, dust-covered bunker payload case containing the ultimate survival cache." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Rusted Keycard. An old access card with faded military markings and deep scratches." + }, + { + "id": "item_8_f056", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Weathered Logbook. A leather-bound diary belonging to the last engineer of the bunker." + }, + { + "id": "item_8_aa2c", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Broken Compass. A magnetic directional tool, its glass cracked and casing dirty." + }, + { + "id": "item_8_a6e7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Depleted Battery. An empty fusion cell from the old world, completely devoid of charge." + }, + { + "id": "item_8_9889", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Cracked Datapad. A fragile electronic tablet with a severely shattered screen." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Signal Receiver. A jury-rigged radio antenna constructed from scrap metal and wire." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "81263c4ced638170d983dcf6cfb6b97f4bef8b88cb8c40169e2b8ebc07811527" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Biometric Vault. A highly secure containment unit. It requires input from the Security Scrambler to bypass its locks." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "123456789012345678901" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "2" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial processing completed successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "123456789012345678901" + }, + "outputs": { + "text_result": "Partial processing completed successfully.", + "hex_result": "1a2b3c4d5e6f7a8b" + } + }, + "narrative": "The Main Blast Door Terminal. A massive bunker door console. It requires input from the Primary Frequency Aligner to unlock." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Partial processing completed successfully." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "81263c4ced638170d983dcf6cfb6b97f4bef8b88cb8c40169e2b8ebc07811527" + } + ], + "narrative": "The Security Scrambler. A cryptographic scrambler. It requires input from the Main Blast Door Terminal to operate properly." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "38475619283746501928" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "39390" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "2" + } + ], + "init": { + "inputs": { + "a": "38475619283746501928" + }, + "outputs": {} + }, + "narrative": "The Primary Frequency Aligner. The main harmonic tuner for the bunker. It requires input from the Secondary Frequency Aligner." + }, + { + "id": "calc_gcd_7509", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "56473829105647382910" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "24347238736384749585978417840" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "39390" + } + ], + "init": { + "inputs": { + "a": "56473829105647382910" + }, + "outputs": {} + }, + "narrative": "The Secondary Frequency Aligner. A rusted harmonic calibration tool. It requires input from the Core Translation Module." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "24347238736384749585978417840" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "273909860" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "24347238736384749585978417840" + } + ], + "init": { + "inputs": { + "from_base": "16" + }, + "outputs": {} + }, + "narrative": "The Core Translation Module. The primary decryption converter. It requires input from the Power Multiplier and the Secondary Translation Module." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "273909860" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "88887777666655554444" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "24347238736384749585978417840" + } + ], + "narrative": "The Power Multiplier. A massive voltage calculation bank. It requires input from the Secondary Translation Module and the Radiation Counter." + }, + { + "id": "num_base_convert_b66c", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "857234" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "32" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "273909860" + } + ], + "init": { + "inputs": { + "from_base": "32", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The Secondary Translation Module. An old military conversion unit. It requires input from the Nav-Computer to calibrate its grid." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Initial stage terminal output." + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_99" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_1\", \"Node_14\", \"Node_23\", \"Node_55\", \"Node_99\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "857234" + } + ], + "init": { + "inputs": { + "dst": "Node_99" + }, + "outputs": { + "path": "[\"Node_1\", \"Node_14\", \"Node_23\", \"Node_55\", \"Node_99\"]", + "cost": "857234" + } + }, + "narrative": "The Nav-Computer. A tactical routing console. It requires input from the Archive Extractor and the Backup Terminal." + }, + { + "id": "item_8_efe8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Torn Map. A scorched piece of a regional map, barely readable under the dim lights." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecretPass123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_graph.json" + } + ], + "init": { + "inputs": { + "zip_id": "archive_data.zip", + "password": "SecretPass123!" + }, + "outputs": { + "files": "extracted_graph.json" + } + }, + "narrative": "The Archive Extractor. An offline decryption rig used for recovering compressed survival data." + }, + { + "id": "item_10", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_10", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "88887777666655554444" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "88887777666655554444" + } + }, + "narrative": "The Radiation Counter. A ticking Geiger counter displaying faint and erratic background readings." + }, + { + "id": "terminal_2_597e", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "44445555666677778888" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "11112222333344445555" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Initial stage terminal output." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "aabbccddeeff00112233" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "A completely useless math token string." + } + ], + "init": { + "inputs": { + "num1": "44445555666677778888", + "num2": "11112222333344445555" + }, + "outputs": { + "text_result": "Initial stage terminal output.", + "hex_result": "aabbccddeeff00112233", + "math_token": "A completely useless math token string." + } + }, + "narrative": "The Backup Terminal. A secondary access console covered in thick ash and debris." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_f056", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_aa2c", + "target_id": "item_8_f056", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_a6e7", + "target_id": "item_8_aa2c", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_9889", + "target_id": "item_8_a6e7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_9889", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "hash_sha256", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_2", + "target_id": "hash_sha256", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num2" + }, + { + "source_id": "calc_gcd_7509", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_gcd_7509", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "num_base_convert_b66c", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert_b66c", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "s" + }, + { + "source_id": "item_8_efe8", + "target_id": "calc_gcd_7509", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "num_base_convert_b66c", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "to_base" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_10", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "b" + }, + { + "source_id": "terminal_2_597e", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "src" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_2625b918_narrative.json b/data/questions/20/narrative/skeleton_2625b918_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..2395541c5cf79a745aa2ec6a86b81260bff3892a --- /dev/null +++ b/data/questions/20/narrative/skeleton_2625b918_narrative.json @@ -0,0 +1,1360 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 28, + "win_node_id": "item_8", + "win_condition": { + "type": "item_content", + "node_id": "item_8", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_8", + "terminal_1", + "regex_search", + "csv_query", + "text_bidi_sanitize", + "regex_search_1a6a", + "zip_unzip_file", + "zip_unzip_file_797f", + "zip_unzip_file_a2a6", + "zip_unzip_file_6915", + "time_convert", + "base64_decode", + "num_base_convert", + "zip_unzip_file_bb71", + "calc_gcd", + "num_base_convert_641e" + ], + "by_node": { + "item_8": { + "node_name": "", + "node_type": "Item", + "template_id": "item_8", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hidden_Item", + "description": "The integer" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": {}, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": {}, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "text_bidi_sanitize": { + "node_name": "Bidi Sanitizer", + "node_type": "Tool", + "template_id": "text_bidi_sanitize", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "regex_search_1a6a": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": {}, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_797f": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_a2a6": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_6915": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "time_convert": { + "node_name": "Timezone Converter", + "node_type": "Tool", + "template_id": "time_convert", + "init_inputs": { + "iso": { + "type": "Text_Generic", + "description": "ISO Timestamp" + }, + "from_tz": { + "type": "Text_Generic", + "description": "From Timezone" + }, + "to_tz": { + "type": "Text_Generic", + "description": "To Timezone" + } + }, + "init_outputs": {} + }, + "base64_decode": { + "node_name": "Base64 Decoder", + "node_type": "Tool", + "template_id": "base64_decode", + "init_inputs": { + "data": { + "type": "Text_Generic", + "description": "Base64 string" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_bb71": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "num_base_convert_641e": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_8": { + "init_inputs": {}, + "init_outputs": { + "content": "ACTIVATE_OBLIVION_ENGAGE_QUANTUM_DECOUPLER" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Process completed successfully in the terminal.", + "hex_output": "deadbeef1234567890abcdef" + } + }, + "regex_search": { + "init_inputs": {}, + "init_outputs": { + "matches": "[\"match1\", \"match2\", \"match3\", \"match4\"]" + } + }, + "csv_query": { + "init_inputs": {}, + "init_outputs": { + "rows": "[\"row1_data\", \"row2_data\", \"row3_data\", \"row4_data\"]" + } + }, + "text_bidi_sanitize": { + "init_inputs": { + "text": "‮Text requiring sanitization for bidi controls‬" + }, + "init_outputs": {} + }, + "regex_search_1a6a": { + "init_inputs": {}, + "init_outputs": { + "matches": "[\"192.168.1.1\", \"10.0.0.1\", \"172.16.0.1\", \"127.0.0.1\"]" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "dataset_extract.zip" + } + }, + "zip_unzip_file_797f": { + "init_inputs": {}, + "init_outputs": { + "files": "archive_backup_2.zip" + } + }, + "zip_unzip_file_a2a6": { + "init_inputs": {}, + "init_outputs": { + "files": "archive_backup_3.zip" + } + }, + "zip_unzip_file_6915": { + "init_inputs": {}, + "init_outputs": { + "files": "archive_backup_4.zip" + } + }, + "time_convert": { + "init_inputs": { + "iso": "2023-10-01T10:00:00Z", + "from_tz": "UTC", + "to_tz": "Asia/Shanghai" + }, + "init_outputs": {} + }, + "base64_decode": { + "init_inputs": { + "data": "U2VjcmV0IG1lc3NhZ2UgZm9yIGRlY29kaW5n" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "s": "987654321098765432109876", + "to_base": "10" + }, + "init_outputs": {} + }, + "zip_unzip_file_bb71": { + "init_inputs": { + "zip_id": "encrypted_source.zip", + "password": "Password123!" + }, + "init_outputs": { + "files": "decrypted_files.zip" + } + }, + "calc_gcd": { + "init_inputs": { + "a": "12345678901234567890123", + "b": "32109876543210987654321" + }, + "init_outputs": {} + }, + "num_base_convert_641e": { + "init_inputs": { + "s": "45678901234567890123456", + "from_base": "10", + "to_base": "10" + }, + "init_outputs": {} + } + }, + "intro_narrative": "Welcome to the Lost Sanctum of Aethelgard, a forgotten magical observatory suspended between the realms of time and space. Centuries ago, the Archmage Kaelen sealed away his greatest creation, the Philosopher's Core, to protect it from creeping shadows. You find yourself trapped within the glowing halls of this ancient sanctuary, surrounded by floating runeboxes, scrying pools, and arcane machinery. The doors have vanished, and the only way to escape is to reawaken the Sanctum's dormant magical network. You must decipher the enchanted artifacts, unravel the spells woven into the observatory, and channel cosmic energies through various magical tools. Piece together the scattered wisdom of the Archmage to restore the grand enchantments. Only by mastering the flow of magic between these mystical relics can you unveil the hidden core and secure your passage back to the mortal world. Beware, for the magic here relies on an unbroken chain of resonance. Follow the flow of energy, and let the stars guide your path.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer", + "value": "ACTIVATE_OBLIVION_ENGAGE_QUANTUM_DECOUPLER" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "ACTIVATE_OBLIVION_ENGAGE_QUANTUM_DECOUPLER" + } + }, + "narrative": "A glowing magical essence pulsing with untold power, known as the Philosopher's Core." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Astral Catalyst, a rare crystallized shard used to channel cosmic energies." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"match1\", \"match2\", \"match3\", \"match4\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "941456953" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Process completed successfully in the terminal." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeef1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Process completed successfully in the terminal.", + "hex_output": "deadbeef1234567890abcdef" + } + }, + "narrative": "This is the Grand Altar. It requires inputs from both the Seer's Orb and the Celestial Scales to awaken its final blessing." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "[\"row1_data\", \"row2_data\", \"row3_data\", \"row4_data\"]" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "dataset_extract.zip" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "Text requiring sanitization for bidi controls" + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"match1\", \"match2\", \"match3\", \"match4\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "matches": "[\"match1\", \"match2\", \"match3\", \"match4\"]" + } + }, + "narrative": "This is the Seer's Orb. It requires inputs from the Book of Lineages, the Runebox of Wind, and the Purifying Crystal to reveal its visions." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "archive_backup_3.zip" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "Text requiring sanitization for bidi controls" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "[\"192.168.1.1\", \"10.0.0.1\", \"172.16.0.1\", \"127.0.0.1\"]" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[\"row1_data\", \"row2_data\", \"row3_data\", \"row4_data\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "rows": "[\"row1_data\", \"row2_data\", \"row3_data\", \"row4_data\"]" + } + }, + "narrative": "This is the Book of Lineages. It requires inputs from the Purifying Crystal, the Scrying Pool, and the Runebox of Water to turn its magical pages." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "‮Text requiring sanitization for bidi controls‬" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "Text requiring sanitization for bidi controls" + } + ], + "init": { + "inputs": { + "text": "‮Text requiring sanitization for bidi controls‬" + }, + "outputs": {} + }, + "narrative": "This is the Purifying Crystal, an enchanted gemstone that hums with a cleansing aura." + }, + { + "id": "regex_search_1a6a", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "2023-10-01T18:00:00+08:00" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "dataset_extract.zip" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "Text requiring sanitization for bidi controls" + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"192.168.1.1\", \"10.0.0.1\", \"172.16.0.1\", \"127.0.0.1\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "matches": "[\"192.168.1.1\", \"10.0.0.1\", \"172.16.0.1\", \"127.0.0.1\"]" + } + }, + "narrative": "This is the Scrying Pool. It requires inputs from the Runebox of Wind, the Purifying Crystal, and the Chronos Dial to show its reflections." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_backup_2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Text requiring sanitization for bidi controls" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "dataset_extract.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "dataset_extract.zip" + } + }, + "narrative": "This is the Runebox of Wind. It requires inputs from the Runebox of Fire and the Purifying Crystal to unlock its breezy seals." + }, + { + "id": "zip_unzip_file_797f", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_backup_3.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "2023-10-01T18:00:00+08:00" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "archive_backup_2.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "archive_backup_2.zip" + } + }, + "narrative": "This is the Runebox of Fire. It requires inputs from the Runebox of Water and the Chronos Dial to melt its fiery locks." + }, + { + "id": "zip_unzip_file_a2a6", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_backup_4.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Text requiring sanitization for bidi controls" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "archive_backup_3.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "archive_backup_3.zip" + } + }, + "narrative": "This is the Runebox of Water. It requires inputs from the Runebox of Earth and the Purifying Crystal to open its aquatic vault." + }, + { + "id": "zip_unzip_file_6915", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "decrypted_files.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Text requiring sanitization for bidi controls" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "archive_backup_4.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "archive_backup_4.zip" + } + }, + "narrative": "This is the Runebox of Earth. It requires inputs from the Purifying Crystal and the Sealed Iron Chest to unbind its rocky exterior." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "2962962963296296296329628" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "987654321098765432109876" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 3037237493 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "941456953" + } + ], + "narrative": "This is the Celestial Scales. It requires inputs from the Soul Weigher, the Arcane Transmuter, and the Loom of Fates to balance the cosmic equation." + }, + { + "id": "time_convert", + "name": "Timezone Converter", + "description": "Convert ISO time between timezones.", + "type": "Tool", + "template_id": "time_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "iso", + "type": "Text_Generic", + "description": "ISO Timestamp", + "value": "2023-10-01T10:00:00Z" + }, + { + "name": "from_tz", + "type": "Text_Generic", + "description": "From Timezone", + "value": "UTC" + }, + { + "name": "to_tz", + "type": "Text_Generic", + "description": "To Timezone", + "value": "Asia/Shanghai" + } + ], + "outputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "Converted ISO Timestamp", + "value": "2023-10-01T18:00:00+08:00" + } + ], + "init": { + "inputs": { + "iso": "2023-10-01T10:00:00Z", + "from_tz": "UTC", + "to_tz": "Asia/Shanghai" + }, + "outputs": {} + }, + "narrative": "This is the Chronos Dial, an ancient golden dial that shifts its hands according to the alignment of the stars." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "536563726574206d65737361676520666f72206465636f64696e67" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "b50890f5" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3037237493 + } + ], + "narrative": "This is the Soul Weigher. It requires input from the Moonlit Prism to measure the spiritual weight of your mystical offering." + }, + { + "id": "base64_decode", + "name": "Base64 Decoder", + "description": "Decode base64 to hex bytes.", + "type": "Tool", + "template_id": "base64_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "data", + "type": "Text_Generic", + "description": "Base64 string", + "value": "U2VjcmV0IG1lc3NhZ2UgZm9yIGRlY29kaW5n" + } + ], + "outputs": [ + { + "name": "bytes_hex", + "type": "Hex_String", + "description": "Decoded bytes as Hex", + "value": "536563726574206d65737361676520666f72206465636f64696e67" + } + ], + "init": { + "inputs": { + "data": "U2VjcmV0IG1lc3NhZ2UgZm9yIGRlY29kaW5n" + }, + "outputs": {} + }, + "narrative": "This is the Moonlit Prism, a silver-framed glass prism that scatters moonlight into hidden symbols." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "987654321098765432109876" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "45678901234567890123456" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "987654321098765432109876" + } + ], + "init": { + "inputs": { + "s": "987654321098765432109876", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the Arcane Transmuter. It requires input from the Starlight Scepter to convert magical energies into new forms." + }, + { + "id": "zip_unzip_file_bb71", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_source.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Password123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "decrypted_files.zip" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_source.zip", + "password": "Password123!" + }, + "outputs": { + "files": "decrypted_files.zip" + } + }, + "narrative": "This is the Sealed Iron Chest, a heavy, rusted container bound in thick enchanted chains." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "987654321098765432109876" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "3" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "2962962963296296296329628" + } + ], + "narrative": "This is the Loom of Fates. It requires inputs from the Arcane Transmuter and the Harmonic Pendulum to weave the threads of destiny." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "12345678901234567890123" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "32109876543210987654321" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3" + } + ], + "init": { + "inputs": { + "a": "12345678901234567890123", + "b": "32109876543210987654321" + }, + "outputs": {} + }, + "narrative": "This is the Harmonic Pendulum, a crystal pendulum suspended over a brass map, swinging in perfect rhythm." + }, + { + "id": "num_base_convert_641e", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "45678901234567890123456" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "45678901234567890123456" + } + ], + "init": { + "inputs": { + "s": "45678901234567890123456", + "from_base": "10", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the Starlight Scepter, a slender wand carved from a fallen meteor, glowing faintly in the dark." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "regex_search", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "slot_a" + }, + { + "source_id": "csv_query", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "pattern" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "select" + }, + { + "source_id": "regex_search_1a6a", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "where" + }, + { + "source_id": "zip_unzip_file", + "target_id": "regex_search_1a6a", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_797f", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_a2a6", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_a2a6", + "target_id": "zip_unzip_file_797f", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file", + "target_id": "regex_search", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_6915", + "target_id": "zip_unzip_file_a2a6", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file_6915", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "regex_search_1a6a", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "slot_b" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file_a2a6", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "time_convert", + "target_id": "zip_unzip_file_797f", + "connection_type": "Text_Generic", + "source_port": "iso", + "target_port": "password" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "time_convert", + "target_id": "regex_search_1a6a", + "connection_type": "Text_Generic", + "source_port": "iso", + "target_port": "pattern" + }, + { + "source_id": "base64_decode", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "bytes_hex", + "target_port": "hex" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "zip_unzip_file_bb71", + "target_id": "zip_unzip_file_6915", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "base" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "b" + }, + { + "source_id": "num_base_convert_641e", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "from_base" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_2b1efbd7_narrative.json b/data/questions/20/narrative/skeleton_2b1efbd7_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..1582797b6d305d0d15ed44de5811aafae515dd74 --- /dev/null +++ b/data/questions/20/narrative/skeleton_2b1efbd7_narrative.json @@ -0,0 +1,1202 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 22, + "win_node_id": "item_11", + "win_condition": { + "type": "item_content", + "node_id": "item_11", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_11", + "num_base_convert", + "terminal_1", + "calc_inv_mod", + "graph_shortest_path", + "json_get", + "num_base_convert_4a4c", + "luhn_check", + "zip_unzip_file", + "zip_unzip_file_6986", + "zip_unzip_file_dcd1", + "item_9", + "text_bidi_sanitize", + "item_4" + ], + "by_node": { + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "jsonpath": { + "type": "Text_Generic", + "description": "JSONPath expression" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "num_base_convert_4a4c": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_6986": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_dcd1": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + }, + "text_bidi_sanitize": { + "node_name": "Bidi Sanitizer", + "node_type": "Tool", + "template_id": "text_bidi_sanitize", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + } + } + }, + "initial_values": { + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def run_tool():\n return 'Obtain the content of '" + } + }, + "num_base_convert": { + "init_inputs": { + "s": "182930485726193847563948", + "from_base": "16" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal output processing successful.", + "hex_output": "a1b2c3d4e5f67890123456789abcdef0" + } + }, + "calc_inv_mod": { + "init_inputs": { + "mod": "100003" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "dst": "node_99" + }, + "init_outputs": { + "path": "[\"node_1\", \"node_14\", \"node_23\", \"node_45\", \"node_76\", \"node_99\"]", + "cost": "259483" + } + }, + "json_get": { + "init_inputs": { + "jsonpath": "$.data.items[*].id" + }, + "init_outputs": { + "values": "[\"id_101\", \"id_202\", \"id_303\", \"id_404\", \"id_505\"]" + } + }, + "num_base_convert_4a4c": { + "init_inputs": { + "to_base": "10" + }, + "init_outputs": {} + }, + "luhn_check": { + "init_inputs": { + "number": "79927398713" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "password": "P@ssw0rd_alpha!" + }, + "init_outputs": { + "files": "final_extracted.zip" + } + }, + "zip_unzip_file_6986": { + "init_inputs": {}, + "init_outputs": { + "files": "intermediate_2.zip" + } + }, + "zip_unzip_file_dcd1": { + "init_inputs": { + "password": "P@ssw0rd_beta!" + }, + "init_outputs": { + "files": "intermediate_1.zip" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "config_nodes.json" + } + }, + "text_bidi_sanitize": { + "init_inputs": { + "text": "some infected ‪ text ‬" + }, + "init_outputs": {} + }, + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "root_archive.zip" + } + } + }, + "intro_narrative": "Welcome to Sector 4, a forgotten slice of the neon-drenched metropolis. You are a rogue hacker trapped in a decommissioned megacorp server room. Outside, corporate security drones are sweeping the perimeter, and your only way out is to compile the legendary Master Code—a mythical script that can override the sector's lockdown protocols. The room is filled with old computing rigs, biological interface modules, and encrypted data drives left behind by the previous network administrator. You must navigate the maze of decryption layers and bypass intricate routing algorithms to extract the final escape code before the drones breach the reinforced door. The hum of cooling fans is your only company. Time is ticking.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def run_tool():\n return 'Obtain the content of '" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def run_tool():\n return 'Obtain the content of '" + } + }, + "narrative": "The Master Code. A glowing data crystal containing the ultimate override script for the sector's lockdown." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "182930485726193847563948" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Biometric Safe. A heavy cybernetic lockbox embedded in the wall. It requires input from the Data Translator to bypass its biometric security." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Hidden Chip. A tiny memory chip with golden contacts, smelling faintly of ozone and dried blood." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "182930485726193847563948" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "9932115600" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "182930485726193847563948" + } + ], + "init": { + "inputs": { + "s": "182930485726193847563948", + "from_base": "16" + }, + "outputs": {} + }, + "narrative": "Data Translator. A rusty terminal designed for shifting numerical formats. It requires input from the Neural Processor." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Chrono Implant. A discarded, blood-stained time-keeping cyberware implant." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "99660" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "99660" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "9932115600" + } + ], + "narrative": "Neural Processor. A high-end wetware computing module floating in a vat of synthetic fluid. It requires inputs from both the Modular Inverter and the Protocol Converter." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"id_101\", \"id_202\", \"id_303\", \"id_404\", \"id_505\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "259483" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal output processing successful." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f67890123456789abcdef0" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal output processing successful.", + "hex_output": "a1b2c3d4e5f67890123456789abcdef0" + } + }, + "narrative": "Mainframe Terminal. The central control console of the server room. It requires inputs from both the Data Extractor and the Routing Algorithm." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "259483" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "100003" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "99660" + } + ], + "init": { + "inputs": { + "mod": "100003" + }, + "outputs": {} + }, + "narrative": "Modular Inverter. A mathematical bypass circuit rigged with jumper cables. It requires input from the Routing Algorithm." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "root_archive.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "false" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "node_99" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"node_1\", \"node_14\", \"node_23\", \"node_45\", \"node_76\", \"node_99\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "259483" + } + ], + "init": { + "inputs": { + "dst": "node_99" + }, + "outputs": { + "path": "[\"node_1\", \"node_14\", \"node_23\", \"node_45\", \"node_76\", \"node_99\"]", + "cost": "259483" + } + }, + "narrative": "Routing Algorithm. A grid-mapping software interface displayed on a cracked holographic screen. It requires inputs from both the Validator and the Compressed Core." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "final_extracted.zip" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.data.items[*].id" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"id_101\", \"id_202\", \"id_303\", \"id_404\", \"id_505\"]" + } + ], + "init": { + "inputs": { + "jsonpath": "$.data.items[*].id" + }, + "outputs": { + "values": "[\"id_101\", \"id_202\", \"id_303\", \"id_404\", \"id_505\"]" + } + }, + "narrative": "Data Extractor. A parsing utility that rips raw values from structured file systems. It requires input from the Final Decryptor." + }, + { + "id": "item_8_19d3", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Access Token. A worn plastic token bearing a faded corporate logo." + }, + { + "id": "num_base_convert_4a4c", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "99660" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "259483" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "99660" + } + ], + "init": { + "inputs": { + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "Protocol Converter. An old interface adapter covered in duct tape. It requires inputs from both the Modular Inverter and the Routing Algorithm." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "79927398713" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "79927398713" + }, + "outputs": {} + }, + "narrative": "Validator. A simple checksum verification module running on an abandoned tablet device." + }, + { + "id": "item_8_b7d3", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Rusted ID Badge. An old identification card belonging to a forgotten megacorp employee." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "intermediate_2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "P@ssw0rd_alpha!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "final_extracted.zip" + } + ], + "init": { + "inputs": { + "password": "P@ssw0rd_alpha!" + }, + "outputs": { + "files": "final_extracted.zip" + } + }, + "narrative": "Final Decryptor. A heavy-duty file extraction protocol running on a dedicated server blade. It requires input from the Secondary Decryptor." + }, + { + "id": "zip_unzip_file_6986", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "intermediate_1.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "some infected text " + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "intermediate_2.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "intermediate_2.zip" + } + }, + "narrative": "Secondary Decryptor. A mid-layer decryption tool with a blinking green prompt. It requires inputs from both the Primary Decryptor and the Text Sanitizer." + }, + { + "id": "zip_unzip_file_dcd1", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "config_nodes.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "P@ssw0rd_beta!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "intermediate_1.zip" + } + ], + "init": { + "inputs": { + "password": "P@ssw0rd_beta!" + }, + "outputs": { + "files": "intermediate_1.zip" + } + }, + "narrative": "Primary Decryptor. A baseline decryption terminal used to peel away the first layer of security. It requires input from the Encrypted Archive." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "config_nodes.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "config_nodes.json" + } + }, + "narrative": "Encrypted Archive. A locked data drive found resting on a neon-lit desk." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "some infected ‪ text ‬" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "some infected text " + } + ], + "init": { + "inputs": { + "text": "some infected ‪ text ‬" + }, + "outputs": {} + }, + "narrative": "Text Sanitizer. A command-line script designed to scrub corrupted text strings of malicious hidden control characters." + }, + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "root_archive.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "root_archive.zip" + } + }, + "narrative": "Compressed Core. A physical storage module wrapped tightly in frayed neon wires." + } + ], + "edges": [ + { + "source_id": "container_3", + "target_id": "item_11", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_8", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "num_base_convert", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "to_base" + }, + { + "source_id": "terminal_1", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "json_get", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "slot_a" + }, + { + "source_id": "item_8_19d3", + "target_id": "terminal_1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "num_base_convert_4a4c", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert_4a4c", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "s" + }, + { + "source_id": "luhn_check", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "src" + }, + { + "source_id": "item_8_b7d3", + "target_id": "item_8_19d3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_file", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert_4a4c", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "from_base" + }, + { + "source_id": "zip_unzip_file_6986", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_dcd1", + "target_id": "zip_unzip_file_6986", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_9", + "target_id": "zip_unzip_file_dcd1", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file_6986", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "item_4", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_2ce1afe2_narrative.json b/data/questions/20/narrative/skeleton_2ce1afe2_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..ceeed3dd392710c20bc9a43f4573d0e124de17d1 --- /dev/null +++ b/data/questions/20/narrative/skeleton_2ce1afe2_narrative.json @@ -0,0 +1,992 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 22, + "win_node_id": "item_1", + "win_condition": { + "type": "item_content", + "node_id": "item_1", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_1", + "graph_shortest_path", + "calc_gcd_c923", + "calc_inv_mod_f96f", + "text_xor_hex", + "item_4", + "time_convert" + ], + "by_node": { + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "calc_gcd_c923": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "calc_inv_mod_f96f": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "text_xor_hex": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_b": { + "type": "Hex_String", + "description": "Hex B" + } + }, + "init_outputs": {} + }, + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "time_convert": { + "node_name": "Timezone Converter", + "node_type": "Tool", + "template_id": "time_convert", + "init_inputs": { + "iso": { + "type": "Text_Generic", + "description": "ISO Timestamp" + }, + "from_tz": { + "type": "Text_Generic", + "description": "From Timezone" + }, + "to_tz": { + "type": "Text_Generic", + "description": "To Timezone" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "5839201948572839401837" + } + }, + "graph_shortest_path": { + "init_inputs": { + "dst": "Node_X77" + }, + "init_outputs": { + "path": "[\"Node_X01\", \"Node_X12\", \"Node_X25\", \"Node_X40\", \"Node_X66\", \"Node_X77\"]", + "cost": "1928374650192837465019" + } + }, + "calc_gcd_c923": { + "init_inputs": { + "a": "7483920192837465748392", + "b": "9384756102938475610293" + }, + "init_outputs": {} + }, + "calc_inv_mod_f96f": { + "init_inputs": { + "a": "4857102938475610293847", + "mod": "999983" + }, + "init_outputs": {} + }, + "text_xor_hex": { + "init_inputs": { + "hex_b": "112233445566778899aabbccddeeff00" + }, + "init_outputs": {} + }, + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "shortest_path_graph.zip" + } + }, + "time_convert": { + "init_inputs": { + "iso": "2023-11-15T08:30:00Z", + "from_tz": "UTC", + "to_tz": "Europe/London" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are a ghost in the machine. Infiltrating the subterranean data bunker of OmniCorp, your mission is clear: extract the master offline storage drive containing evidence of their illegal global surveillance operation. The server room is a labyrinth of blinking lights, humming mainframes, and deeply encrypted terminals. The security protocols are actively adapting to your presence. To reach the final key, you must chain together a series of legacy devices, cryptographic overrides, and fragmented data trails. The clock is ticking, the sweeps are coming, and leaving empty-handed is not an option.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "5839201948572839401837" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "5839201948572839401837" + } + }, + "narrative": "A heavily shielded offline storage drive containing the ultimate corporate secret." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A fractured tablet with a heavily modified and restricted operating system." + }, + { + "id": "item_8_7cab", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavy tungsten access chip stamped with executive clearance codes." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A sleek wrist device that logs temporal data anomalies and network pings." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "z\t\u0005\u0012m\u0010pE>t?f\u0013L\u0001" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a digital lockbox. It requires input from the Cipher Shift Module to bypass its electronic fingerprint scanner." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "y\t\u0005\u0012l\u0010oD>s?e\u0013K\u0001" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "1" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "z\t\u0005\u0012m\u0010pE>t?f\u0013L\u0001" + } + ], + "narrative": "This is the Cipher Shift Module. It requires inputs from the Prime Inversion Routine and the Base-16 Translator." + }, + { + "id": "item_16_bb42", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A strange metallic pocket watch that seems to display data metrics rather than time." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "374232" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a secure vault system. It requires input from the Legacy Hash Inverter to authenticate the biometric lock." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "1928374650192837465019" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "3" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1" + } + ], + "narrative": "This is the Prime Inversion Routine. It requires inputs from the Network Route Analyzer and the Resonance Calculator." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "shortest_path_graph.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "y\t\u0005\u0012l\u0010oD>s?e\u0013K\u0001" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_X77" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_X01\", \"Node_X12\", \"Node_X25\", \"Node_X40\", \"Node_X66\", \"Node_X77\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "1928374650192837465019" + } + ], + "init": { + "inputs": { + "dst": "Node_X77" + }, + "outputs": { + "path": "[\"Node_X01\", \"Node_X12\", \"Node_X25\", \"Node_X40\", \"Node_X66\", \"Node_X77\"]", + "cost": "1928374650192837465019" + } + }, + "narrative": "This is the Network Route Analyzer. It requires inputs from the Archival USB Stick and the Base-16 Translator." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "3" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "721659502090965950208990408" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3" + } + ], + "narrative": "This is the Resonance Calculator. It requires inputs from the Data Multiplier Engine and the Signal Frequency Analyzer." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "799e0905c9126c106f9644b53eaea7f2f073843fc5e3fe65b295139be64bbc01" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "y\t\u0005\u0012l\u0010oD>s?e\u0013K\u0001" + } + ], + "narrative": "This is the Base-16 Translator. It requires input from the Cryptographic Intersect Tool to convert strings." + }, + { + "id": "item_16_4507", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A dust-covered server blade pulled from the wreckage of an old corporate data center." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "1928374650192837465019" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "374232" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "721659502090965950208990408" + } + ], + "narrative": "This is the Data Multiplier Engine. It requires inputs from the Legacy Hash Inverter and the Network Route Analyzer." + }, + { + "id": "calc_gcd_c923", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "7483920192837465748392" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "9384756102938475610293" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3" + } + ], + "init": { + "inputs": { + "a": "7483920192837465748392", + "b": "9384756102938475610293" + }, + "outputs": {} + }, + "narrative": "The Signal Frequency Analyzer, a handheld device used to identify common denominators in encrypted radio waves." + }, + { + "id": "calc_inv_mod_f96f", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "4857102938475610293847" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "374232" + } + ], + "init": { + "inputs": { + "a": "4857102938475610293847", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "The Legacy Hash Inverter, an old-school decryption box used by rogue operatives." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "68bc3a419c741b98f63cff79e34058f2f073843fc5e3fe65b295139be64bbc01" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "112233445566778899aabbccddeeff00" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "799e0905c9126c106f9644b53eaea7f2f073843fc5e3fe65b295139be64bbc01" + } + ], + "init": { + "inputs": { + "hex_b": "112233445566778899aabbccddeeff00" + }, + "outputs": {} + }, + "narrative": "This is the Cryptographic Intersect Tool. It requires input from the Digest Generator to merge data streams." + }, + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "shortest_path_graph.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "shortest_path_graph.zip" + } + }, + "narrative": "The Archival USB Stick, a black metal drive bearing the logo of a defunct cybersecurity firm." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "2023-11-15T08:30:00+00:00" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "68bc3a419c741b98f63cff79e34058f2f073843fc5e3fe65b295139be64bbc01" + } + ], + "narrative": "This is the Digest Generator. It requires input from the Temporal Adjuster to create a unique digital footprint." + }, + { + "id": "time_convert", + "name": "Timezone Converter", + "description": "Convert ISO time between timezones.", + "type": "Tool", + "template_id": "time_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "ISO Timestamp", + "value": "2023-11-15T08:30:00Z" + }, + { + "name": "from_tz", + "type": "Text_Generic", + "description": "From Timezone", + "value": "UTC" + }, + { + "name": "to_tz", + "type": "Text_Generic", + "description": "To Timezone", + "value": "Europe/London" + } + ], + "outputs": [ + { + "name": "iso", + "type": "Text_Generic", + "description": "Converted ISO Timestamp", + "value": "2023-11-15T08:30:00+00:00" + } + ], + "init": { + "inputs": { + "iso": "2023-11-15T08:30:00Z", + "from_tz": "UTC", + "to_tz": "Europe/London" + }, + "outputs": {} + }, + "narrative": "The Temporal Adjuster, a specialized terminal used to synchronize global server logs." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_7cab", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_7cab", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_4", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "text_rotN", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_16_bb42", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "container_3", + "target_id": "item_16_bb42", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_inv_mod", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "n" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "hex_decode", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "item_16_4507", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "calc_gcd_c923", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod_f96f", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "fingerprint_input" + }, + { + "source_id": "text_xor_hex", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_4", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + }, + { + "source_id": "hash_sha256", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_a" + }, + { + "source_id": "calc_inv_mod_f96f", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "hex_decode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "time_convert", + "target_id": "hash_sha256", + "connection_type": "Text_Generic", + "source_port": "iso", + "target_port": "text" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_2d1d9ac8_narrative.json b/data/questions/20/narrative/skeleton_2d1d9ac8_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..e03b613db1bd829e96ee31a5319c6ffe07dfdb8e --- /dev/null +++ b/data/questions/20/narrative/skeleton_2d1d9ac8_narrative.json @@ -0,0 +1,1271 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 23, + "win_node_id": "base64_encode", + "win_condition": { + "type": "tool_output", + "node_id": "base64_encode", + "output_port": "b64", + "output_type": "Text_Generic", + "description": "Execute Base64 Encoder and get the output from port 'b64'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "zip_unzip_file", + "terminal_2", + "num_base_convert", + "zip_unzip_file_6660", + "zip_unzip_file_da18", + "container_4", + "zip_unzip_item", + "calc_modexp", + "calc_modexp_113a", + "crypto_rsa_decrypt_hex", + "item_2", + "checksum_crc32", + "luhn_check_6f1a" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_6660": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_da18": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "calc_modexp_113a": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "hex_cipher": { + "type": "Hex_String", + "description": "Ciphertext (Hex)" + }, + "n": { + "type": "Big_Int", + "description": "Modulus n" + } + }, + "init_outputs": {} + }, + "item_2": { + "node_name": "", + "node_type": "Item", + "template_id": "item_2", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Text_Generic", + "description": "The text" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "luhn_check_6f1a": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": { + "src": "Node_A" + }, + "init_outputs": { + "path": "[\"Node_A\", \"Node_X\", \"Node_Y\", \"Node_Z\", \"Node_B\"]", + "cost": "83948572638194758264" + } + }, + "zip_unzip_file": { + "init_inputs": { + "password": "SecurePassword123!" + }, + "init_outputs": { + "files": "extracted_data_1.zip" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal processing completed successfully.", + "hex_result": "1a2b3c4d5e6f7a8b" + } + }, + "num_base_convert": { + "init_inputs": { + "s": "48291048572910384756" + }, + "init_outputs": {} + }, + "zip_unzip_file_6660": { + "init_inputs": {}, + "init_outputs": { + "files": "archive_bundle_6660.zip" + } + }, + "zip_unzip_file_da18": { + "init_inputs": { + "zip_id": "source_package_da18.zip", + "password": "HiddenSecret!99" + }, + "init_outputs": { + "files": "unpacked_contents_da18.zip" + } + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "fp_938475abce9d8" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "item_archive_99.zip" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "10", + "exp": "59283746102938475612" + }, + "init_outputs": {} + }, + "calc_modexp_113a": { + "init_inputs": { + "base": "16", + "exp": "19283746501928374650" + }, + "init_outputs": {} + }, + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "hex_cipher": "aa11bb22cc33dd44ee55ff6677889900", + "n": "99887766554433221100112233445566" + }, + "init_outputs": {} + }, + "item_2": { + "init_inputs": {}, + "init_outputs": { + "content": "This is the hidden text content extracted from item 2." + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "112233445566778899aabbccddeeff00" + }, + "init_outputs": {} + }, + "luhn_check_6f1a": { + "init_inputs": { + "number": "4532019283746573" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the belly of an enormous, brass-plated airship. The rhythmic hissing of steam and the clanking of heavy iron gears echo throughout the dimly lit chamber. This is the workshop of the infamous inventor, Professor Arkwright. He has locked the main navigation controls, leaving the ship on a collision course with the jagged peaks of the Iron Mountains. To regain control and transmit the emergency override signal, you must navigate a web of interconnected steampunk machinery. Scattered around the room are various gauges, dials, locks, and steam-powered engines. You need to figure out how these devices interact, tracing the flow of data and pressure from one mechanism to the next. The brass transmitter is your ultimate goal—it alone can send the signal to halt the engines. Keep a close eye on which device feeds into another; only by activating them in the correct sequence can you restore power to the ship's core and escape a fiery demise. Time is ticking, and the steam pressure is rising!", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "98b0246566152459b729b8142d826c1dd12c15bcd9b71e6fa9525f1faa7d6dc4" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "mLAkZWYVJFm3KbgULYJsHdEsFbzZtx5vqVJfH6p9bcQ=" + } + ], + "narrative": "This is the brass transmitter. It requires input from the steam-powered hash engine. Once it processes the data, it will transmit the final signal." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "789c8b56f2cb4f498d7754d25180b022e0ac48382b0ace72528a05006c0e0e44" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "[\"Node_A\", \"Node_X\", \"Node_Y\", \"Node_Z\", \"Node_B\"]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "98b0246566152459b729b8142d826c1dd12c15bcd9b71e6fa9525f1faa7d6dc4" + } + ], + "narrative": "This is the steam-powered hash engine. It requires inputs from both the pressure condenser and the celestial navigator to align its internal gears." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "[\"Node_A\", \"Node_X\", \"Node_Y\", \"Node_Z\", \"Node_B\"]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c8b56f2cb4f498d7754d25180b022e0ac48382b0ace72528a05006c0e0e44" + } + ], + "narrative": "This is the pressure condenser. It requires input from the gear validation dial to compress the aetheric vapors properly." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_1.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_A" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "false" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_A\", \"Node_X\", \"Node_Y\", \"Node_Z\", \"Node_B\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "83948572638194758264" + } + ], + "init": { + "inputs": { + "src": "Node_A" + }, + "outputs": { + "path": "[\"Node_A\", \"Node_X\", \"Node_Y\", \"Node_Z\", \"Node_B\"]", + "cost": "83948572638194758264" + } + }, + "narrative": "This is the celestial navigator. It requires inputs from both the primary cylinder lock and the bronze validation dial to plot the correct course." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "[\"Node_A\", \"Node_X\", \"Node_Y\", \"Node_Z\", \"Node_B\"]" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "[\"Node_A\", \"Node_X\", \"Node_Y\", \"Node_Z\", \"Node_B\"]" + } + ], + "narrative": "This is the gear validation dial. It requires input from the celestial navigator to check the structural integrity of the coordinates." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_bundle_6660.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_1.zip" + } + ], + "init": { + "inputs": { + "password": "SecurePassword123!" + }, + "outputs": { + "files": "extracted_data_1.zip" + } + }, + "narrative": "This is the primary cylinder lock. It requires input from the secondary cylinder lock to release its latches." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "31279534182803575592" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "48291048572910384756" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal processing completed successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal processing completed successfully.", + "hex_result": "1a2b3c4d5e6f7a8b" + } + }, + "narrative": "This is the main calculation terminal. It requires inputs from both the small steam exponentiator and the differential gear converter." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "48291048572910384756" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "31279534182803575592" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "12502265238798340952" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "48291048572910384756" + } + ], + "init": { + "inputs": { + "s": "48291048572910384756" + }, + "outputs": {} + }, + "narrative": "This is the differential gear converter. It requires inputs from both the small steam exponentiator and the large steam exponentiator." + }, + { + "id": "zip_unzip_file_6660", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "unpacked_contents_da18.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "false" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "archive_bundle_6660.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "archive_bundle_6660.zip" + } + }, + "narrative": "This is the secondary cylinder lock. It requires inputs from both the rusted cylinder lock and the cogwheel checker to open its chambers." + }, + { + "id": "zip_unzip_file_da18", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "source_package_da18.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "HiddenSecret!99" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "unpacked_contents_da18.zip" + } + ], + "init": { + "inputs": { + "zip_id": "source_package_da18.zip", + "password": "HiddenSecret!99" + }, + "outputs": { + "files": "unpacked_contents_da18.zip" + } + }, + "narrative": "An old rusted cylinder lock, sealed with heavy brass bolts. It seems to secure something important." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "fp_938475abce9d8" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "fp_938475abce9d8" + }, + "outputs": {} + }, + "narrative": "A sturdy iron lockbox with a glass viewing pane. It looks like it holds spare parts." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A delicate mechanical pocket watch, constantly ticking with a strange rhythm." + }, + { + "id": "luhn_check_45e9", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "This is the hidden text content extracted from item 2." + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "This is the cogwheel checker. It requires input from the rolled parchment to verify the stamped codes." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "item_archive_99.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "\u0003\u0019\\\u000e\u001dcn8" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "item_archive_99.zip" + }, + "outputs": {} + }, + "narrative": "This is the aetheric sealed tube. It requires input from the brass decryption matrix to break its vacuum seal." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "10" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "59283746102938475612" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "31279534182803575592" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "12502265238798340952" + } + ], + "init": { + "inputs": { + "base": "10", + "exp": "59283746102938475612" + }, + "outputs": {} + }, + "narrative": "This is the large steam exponentiator. It requires input from the small steam exponentiator to reach optimal pressure." + }, + { + "id": "calc_modexp_113a", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "16" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "19283746501928374650" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "83948572638194758264" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "31279534182803575592" + } + ], + "init": { + "inputs": { + "base": "16", + "exp": "19283746501928374650" + }, + "outputs": {} + }, + "narrative": "This is the small steam exponentiator. It requires input from the celestial navigator to calibrate its boiler." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "aa11bb22cc33dd44ee55ff6677889900" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "99887766554433221100112233445566" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": 2416908508 + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0003\u0019\\\u000e\u001dcn8" + } + ], + "init": { + "inputs": { + "hex_cipher": "aa11bb22cc33dd44ee55ff6677889900", + "n": "99887766554433221100112233445566" + }, + "outputs": {} + }, + "narrative": "This is the brass decryption matrix. It requires input from the rotational checksum gauge to decipher the hidden messages." + }, + { + "id": "item_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Text_Generic", + "description": "The text", + "value": "This is the hidden text content extracted from item 2." + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "This is the hidden text content extracted from item 2." + } + }, + "narrative": "A piece of rolled parchment, brittle with age and covered in faded ink." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "112233445566778899aabbccddeeff00" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "900f18dc" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2416908508 + } + ], + "init": { + "inputs": { + "hex": "112233445566778899aabbccddeeff00" + }, + "outputs": {} + }, + "narrative": "A heavy rotational checksum gauge with a series of numbered brass rings." + }, + { + "id": "luhn_check_6f1a", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "4532019283746573" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "4532019283746573" + }, + "outputs": {} + }, + "narrative": "A tarnished bronze validation dial attached to the wall, covered in soot." + } + ], + "edges": [ + { + "source_id": "hmac_sha256", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "zlib_deflate", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "graph_shortest_path", + "target_id": "hmac_sha256", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "text" + }, + { + "source_id": "luhn_check", + "target_id": "zlib_deflate", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "text" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "terminal_2", + "target_id": "zlib_deflate", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "zip_unzip_file_6660", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_da18", + "target_id": "zip_unzip_file_6660", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "graph_shortest_path", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "number" + }, + { + "source_id": "container_4", + "target_id": "terminal_2", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "item_16", + "target_id": "zip_unzip_file_da18", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "luhn_check_45e9", + "target_id": "zip_unzip_file_6660", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "to_base" + }, + { + "source_id": "calc_modexp_113a", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "calc_modexp_113a", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "from_base" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp_113a", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "item_2", + "target_id": "luhn_check_45e9", + "connection_type": "Text_Generic", + "source_port": "content", + "target_port": "number" + }, + { + "source_id": "checksum_crc32", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "d" + }, + { + "source_id": "calc_modexp_113a", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num1" + }, + { + "source_id": "luhn_check_6f1a", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "dst" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_33c37c0c_narrative.json b/data/questions/20/narrative/skeleton_33c37c0c_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..89d3888b7ef91be42db68ccba04095c779db28df --- /dev/null +++ b/data/questions/20/narrative/skeleton_33c37c0c_narrative.json @@ -0,0 +1,1317 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 24, + "win_node_id": "item_10", + "win_condition": { + "type": "item_content", + "node_id": "item_10", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_10", + "terminal_2", + "calc_bigmul_a22f", + "terminal_1", + "calc_gcd", + "iban_validate", + "calc_gcd_f7d1", + "num_base_convert_a606", + "graph_shortest_path", + "graph_shortest_path_9a39", + "terminal_2_2d39", + "base64_encode", + "matter_synthesizer" + ], + "by_node": { + "item_10": { + "node_name": "", + "node_type": "Item", + "template_id": "item_10", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_bigmul_a22f": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "iban_validate": { + "node_name": "IBAN Validator", + "node_type": "Tool", + "template_id": "iban_validate", + "init_inputs": { + "iban": { + "type": "Text_Generic", + "description": "IBAN string" + } + }, + "init_outputs": {} + }, + "calc_gcd_f7d1": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "num_base_convert_a606": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "graph_shortest_path_9a39": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "terminal_2_2d39": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_10": { + "init_inputs": {}, + "init_outputs": { + "content": "184750392817349502848573" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Partial execution of Terminal 2 completed.", + "hex_result": "7a3b84c9df102938a4b5c6d7e8f90123" + } + }, + "calc_bigmul_a22f": { + "init_inputs": { + "a": "83492810394857293018", + "b": "47582019384758293048" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal 1 successfully handled the provided slot data.", + "hex_output": "c0ffee1234567890abcdef1234567890" + } + }, + "calc_gcd": { + "init_inputs": { + "a": "91827364501928374655" + }, + "init_outputs": {} + }, + "iban_validate": { + "init_inputs": { + "iban": "FR7630006000011234567890189" + }, + "init_outputs": {} + }, + "calc_gcd_f7d1": { + "init_inputs": { + "a": "56473829102938475621", + "b": "10293847561029384756" + }, + "init_outputs": {} + }, + "num_base_convert_a606": { + "init_inputs": { + "s": "94857283948572819234", + "from_base": "16", + "to_base": "10" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_graph_a.json", + "dst": "Node_X" + }, + "init_outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]", + "cost": "154382" + } + }, + "graph_shortest_path_9a39": { + "init_inputs": { + "file_id": "map_data_b.json", + "dst": "Station_Z" + }, + "init_outputs": { + "path": "[\"Station_A\", \"Station_B\", \"Station_C\", \"Station_D\", \"Station_E\", \"Station_F\"]", + "cost": "492015" + } + }, + "terminal_2_2d39": { + "init_inputs": { + "num1": "39485720192837465721", + "num2": "58493028172635495810" + }, + "init_outputs": { + "text_result": "Hidden terminal logic processed the input parameters.", + "hex_result": "deadbeef5678901234567890abcdef12" + } + }, + "base64_encode": { + "init_inputs": { + "hex": "112233445566778899aabbccddeeff00" + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "Advanced hyperdrive component schematic v2.0" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in the abandoned underground headquarters of a forgotten intelligence agency. The cold, damp air carries the faint hum of machinery that has somehow survived the decades. A massive conspiracy was buried here, hidden behind a web of complex devices, encrypted terminals, and strange prototypes. To expose the truth, you must navigate this labyrinth of forgotten technology, re-establishing connections between systems that have long been dormant. Your ultimate goal is to uncover the final secrets left behind. Time is running out.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "item_10", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_10", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "184750392817349502848573" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "184750392817349502848573" + } + }, + "narrative": "A mysterious sealed envelope containing the final secrets of the conspiracy." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "1" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "3972756522696048427976646281159648338864" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial execution of Terminal 2 completed." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "7a3b84c9df102938a4b5c6d7e8f90123" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Partial execution of Terminal 2 completed.", + "hex_result": "7a3b84c9df102938a4b5c6d7e8f90123" + } + }, + "narrative": "This is the Main Vault Interface. It requires inputs from both the Harmonic Synchronizer and the Advanced Decoder." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "3972756522696048427976646281159648338864" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "75958259730" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "3972756522696048427976646281159648338864" + } + ], + "narrative": "This is an Advanced Decoder. It requires inputs from the Frequency Converter and the Scale Multiplier." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "3972756522696048427976646281159648338864" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "3972756522696048427976646281159648338864" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "1" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "3972756522696048427976646281159648338864" + } + ], + "narrative": "This is a Frequency Converter. It requires inputs from the Quantum Inverter, the Signal Amplifier, and the Resonance Tuner." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "154382" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "492015" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "75958259730" + } + ], + "narrative": "This is a Scale Multiplier. It requires inputs from the Surveillance Tracker and the Network Mapper." + }, + { + "id": "calc_inv_mod_955d", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "3972756522696048427976646281159648338864" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "75958259730" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "3972756522696048427976646281159648338864" + } + ], + "narrative": "This is a Quantum Inverter. It requires inputs from the Signal Amplifier and the Mass Calculator." + }, + { + "id": "calc_bigmul_a22f", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "83492810394857293018" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "47582019384758293048" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "3972756522696048427976646281159648338864" + } + ], + "init": { + "inputs": { + "a": "83492810394857293018", + "b": "47582019384758293048" + }, + "outputs": {} + }, + "narrative": "A heavy-duty Signal Amplifier used to boost weak transmission signals." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "True" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "492015" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal 1 successfully handled the provided slot data." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "c0ffee1234567890abcdef1234567890" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal 1 successfully handled the provided slot data.", + "hex_output": "c0ffee1234567890abcdef1234567890" + } + }, + "narrative": "This is a Security Checkpoint. It requires inputs from the Archive Registry and the Network Mapper." + }, + { + "id": "calc_bigmul_1f74", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "1" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "75958259730" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "75958259730" + } + ], + "narrative": "This is a Mass Calculator. It requires inputs from the Resonance Tuner and the Scale Multiplier." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "91827364501928374655" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "701371908028754007527988" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "91827364501928374655" + }, + "outputs": {} + }, + "narrative": "This is a Resonance Tuner. It requires input from the Phase Shifter." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "FR7630006000011234567890189" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "True" + } + ], + "init": { + "inputs": { + "iban": "FR7630006000011234567890189" + }, + "outputs": {} + }, + "narrative": "An old Archive Registry interface connected to a massive database of financial records." + }, + { + "id": "calc_gcd_f7d1", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "56473829102938475621" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "10293847561029384756" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "56473829102938475621", + "b": "10293847561029384756" + }, + "outputs": {} + }, + "narrative": "An experimental Harmonic Synchronizer with a series of complex dials." + }, + { + "id": "num_base_convert_a606", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "94857283948572819234" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "701371908028754007527988" + } + ], + "init": { + "inputs": { + "s": "94857283948572819234", + "from_base": "16", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "A dusty Phase Shifter covered in faded diagrams." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_graph_a.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Hidden terminal logic processed the input parameters." + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_X" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "154382" + } + ], + "init": { + "inputs": { + "file_id": "network_graph_a.json", + "dst": "Node_X" + }, + "outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]", + "cost": "154382" + } + }, + "narrative": "This is a Surveillance Tracker. It requires input from the Override Console." + }, + { + "id": "graph_shortest_path_9a39", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "map_data_b.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "ESIzRFVmd4iZqrvM3e7/AA==" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Station_Z" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Station_A\", \"Station_B\", \"Station_C\", \"Station_D\", \"Station_E\", \"Station_F\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "492015" + } + ], + "init": { + "inputs": { + "file_id": "map_data_b.json", + "dst": "Station_Z" + }, + "outputs": { + "path": "[\"Station_A\", \"Station_B\", \"Station_C\", \"Station_D\", \"Station_E\", \"Station_F\"]", + "cost": "492015" + } + }, + "narrative": "This is a Network Mapper. It requires input from the Cryptographic Cypher." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A faded access card with an old corporate logo." + }, + { + "id": "terminal_2_2d39", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "39485720192837465721" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "58493028172635495810" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Hidden terminal logic processed the input parameters." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeef5678901234567890abcdef12" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "39485720192837465721", + "num2": "58493028172635495810" + }, + "outputs": { + "text_result": "Hidden terminal logic processed the input parameters.", + "hex_result": "deadbeef5678901234567890abcdef12" + } + }, + "narrative": "A heavy Override Console blinking with green lights." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "112233445566778899aabbccddeeff00" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "ESIzRFVmd4iZqrvM3e7/AA==" + } + ], + "init": { + "inputs": { + "hex": "112233445566778899aabbccddeeff00" + }, + "outputs": {} + }, + "narrative": "An intricate Cryptographic Cypher device." + }, + { + "id": "item_16_c809", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_d02d9303690e6211" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A sturdy magnetic key coated in a specialized resin." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Advanced hyperdrive component schematic v2.0" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_d02d9303690e6211" + } + ], + "init": { + "inputs": { + "blueprint": "Advanced hyperdrive component schematic v2.0" + }, + "outputs": {} + }, + "narrative": "A futuristic Fabrication Unit capable of printing complex structures." + } + ], + "edges": [ + { + "source_id": "terminal_2", + "target_id": "item_10", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num2" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "calc_inv_mod_955d", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "s" + }, + { + "source_id": "calc_bigmul_a22f", + "target_id": "calc_inv_mod_955d", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "terminal_1", + "target_id": "terminal_2", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "calc_bigmul_1f74", + "target_id": "calc_inv_mod_955d", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "calc_bigmul_a22f", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "from_base" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_bigmul_1f74", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_bigmul_1f74", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "iban_validate", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "slot_a" + }, + { + "source_id": "calc_gcd_f7d1", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num1" + }, + { + "source_id": "num_base_convert_a606", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path_9a39", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "to_base" + }, + { + "source_id": "item_16", + "target_id": "calc_gcd_f7d1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "terminal_2_2d39", + "target_id": "graph_shortest_path", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path_9a39", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "src" + }, + { + "source_id": "item_16_c809", + "target_id": "terminal_2_2d39", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "terminal_2_2d39", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "src" + }, + { + "source_id": "graph_shortest_path_9a39", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "matter_synthesizer", + "target_id": "item_16_c809", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_350fd21b_narrative.json b/data/questions/20/narrative/skeleton_350fd21b_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..347e9194adda03a2aae49533e5be744296f1c798 --- /dev/null +++ b/data/questions/20/narrative/skeleton_350fd21b_narrative.json @@ -0,0 +1,974 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 21, + "win_node_id": "item_5", + "win_condition": { + "type": "item_content", + "node_id": "item_5", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_5", + "terminal_2", + "terminal_2_1095", + "checksum_crc32", + "graph_shortest_path", + "item_4", + "item_15" + ], + "by_node": { + "item_5": { + "node_name": "", + "node_type": "Item", + "template_id": "item_5", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "terminal_2_1095": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "item_15": { + "node_name": "", + "node_type": "Item", + "template_id": "item_15", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Text_Generic", + "description": "Timezone text" + } + } + } + } + }, + "initial_values": { + "item_5": { + "init_inputs": {}, + "init_outputs": { + "content": "6f5a3b2c9d8e7f1a4c5b6a7d8e9f0c1b" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "8493028475610293847562910" + }, + "init_outputs": { + "text_result": "First terminal sequence processed partially.", + "hex_result": "deadbeefcafebabe0123456789abcdef", + "math_token": "A shiny but ultimately useless math coin." + } + }, + "terminal_2_1095": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Second terminal sequence executed.", + "hex_result": "8899aabbccddeeff0011223344556677" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "a1b2c3d4e5f67890" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "dst": "Europe/London" + }, + "init_outputs": { + "path": "[\"America/New_York\", \"Atlantic/Bermuda\", \"Atlantic/Azores\", \"Europe/Lisbon\", \"Europe/Madrid\", \"Europe/Paris\", \"Europe/London\"]", + "cost": "83749281938475629183" + } + }, + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "graph_data.zip" + } + }, + "item_15": { + "init_inputs": {}, + "init_outputs": { + "content": "America/New_York" + } + } + }, + "intro_narrative": "You are a freelance operative hired by a shadow broker to infiltrate the abandoned subterranean servers of NeonCorp. The air is thick with the smell of ozone, and flickering neon lights cast long shadows across banks of dead hardware. Your primary objective is to locate and extract the highly classified contents of the Final Data Core. However, the system's architecture is deeply fragmented. You will need to carefully trace active data connections, bypass biometric vaults, and recompile scattered terminal operations to carve a path forward. One wrong move, and the automated lockdown protocols will trap you in this digital graveyard forever.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "item_5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "6f5a3b2c9d8e7f1a4c5b6a7d8e9f0c1b" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "6f5a3b2c9d8e7f1a4c5b6a7d8e9f0c1b" + } + }, + "narrative": "The Final Data Core, heavily protected by layers of corporate security. A priceless asset in the right hands." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Decryption Key glowing with a faint neon light." + }, + { + "id": "item_8_b306", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An Authorization Code scribbled on a piece of synthetic paper." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A small Backup Datapad containing encrypted corporate secrets." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "023fa3a3c2599004e1d4aaeb0e74944e" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a Secure Biometric Safe. It requires input from the Security Signature Generator to authenticate and open." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "First terminal sequence processed partially." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "023fa3a3c2599004e1d4aaeb0e74944e" + } + ], + "narrative": "This is a Security Signature Generator. It requires input from the Data Purifier to process the cleaned data into a valid signature." + }, + { + "id": "item_8_8f2e", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Lost Keycard belonging to a high-ranking executive." + }, + { + "id": "item_16_f630", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Security Token flashing with a faint red LED." + }, + { + "id": "item_16_46b3", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Sector Map embedded in a scratched neural chip." + }, + { + "id": "container_2_7b94", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "deadbeefcafebabe0123456789abcdef" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a Secondary Biometric Vault. It requires input from the Secondary Access Terminal to unlock." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "8493028475610293847562910" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": 2092073077 + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "First terminal sequence processed partially." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeefcafebabe0123456789abcdef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "A shiny but ultimately useless math coin." + } + ], + "init": { + "inputs": { + "num1": "8493028475610293847562910" + }, + "outputs": { + "text_result": "First terminal sequence processed partially.", + "hex_result": "deadbeefcafebabe0123456789abcdef", + "math_token": "A shiny but ultimately useless math coin." + } + }, + "narrative": "This is a Secondary Access Terminal. It requires input from the Data Validator to initiate its processing sequence." + }, + { + "id": "item_16_94e6", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An old Encrypted Datapad found discarded on the floor." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "First terminal sequence processed partially." + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "First terminal sequence processed partially." + } + ], + "narrative": "This is a Data Purifier. It requires input from the Secondary Access Terminal to sanitize the incoming data streams." + }, + { + "id": "terminal_2_1095", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "83749281938475629183" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": 405212579 + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Second terminal sequence executed." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "8899aabbccddeeff0011223344556677" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Second terminal sequence executed.", + "hex_result": "8899aabbccddeeff0011223344556677" + } + }, + "narrative": "This is a Primary Access Terminal. It requires inputs from both the Integrity Checker and the Network Routing Tool to compile its operations." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "a1b2c3d4e5f67890" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "18270da3" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 405212579 + } + ], + "init": { + "inputs": { + "hex": "a1b2c3d4e5f67890" + }, + "outputs": {} + }, + "narrative": "An Integrity Checker tool used for verifying raw signal dumps." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_data.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "America/New_York" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Europe/London" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"America/New_York\", \"Atlantic/Bermuda\", \"Atlantic/Azores\", \"Europe/Lisbon\", \"Europe/Madrid\", \"Europe/Paris\", \"Europe/London\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "83749281938475629183" + } + ], + "init": { + "inputs": { + "dst": "Europe/London" + }, + "outputs": { + "path": "[\"America/New_York\", \"Atlantic/Bermuda\", \"Atlantic/Azores\", \"Europe/Lisbon\", \"Europe/Madrid\", \"Europe/Paris\", \"Europe/London\"]", + "cost": "83749281938475629183" + } + }, + "narrative": "This is a Network Routing Tool. It requires inputs from both the Encrypted Data Archive and the Location Identifier to calculate the optimal path." + }, + { + "id": "checksum_crc32_2f43", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "8899aabbccddeeff0011223344556677" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "7cb28075" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2092073077 + } + ], + "narrative": "This is a Data Validator. It requires input from the Primary Access Terminal to function." + }, + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "graph_data.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "graph_data.zip" + } + }, + "narrative": "An Encrypted Data Archive stored on a physical memory drive." + }, + { + "id": "item_16_3203", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Mainframe Log device covered in digital dust." + }, + { + "id": "item_15", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_15", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Text_Generic", + "description": "Timezone text", + "value": "America/New_York" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "America/New_York" + } + }, + "narrative": "A Location Identifier emitting a low hum." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_b306", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_b306", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "hash_md5", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8_8f2e", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_16_f630", + "target_id": "hash_md5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_16_46b3", + "target_id": "item_8_8f2e", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_2_7b94", + "target_id": "item_16_f630", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "container_2_7b94", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_16_94e6", + "target_id": "container_2_7b94", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "terminal_2_1095", + "target_id": "item_16_94e6", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2_1095", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num2" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2_1095", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "checksum_crc32_2f43", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num2" + }, + { + "source_id": "terminal_2_1095", + "target_id": "checksum_crc32_2f43", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex" + }, + { + "source_id": "item_4", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + }, + { + "source_id": "item_16_3203", + "target_id": "item_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_15", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "content", + "target_port": "src" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_3516978c_narrative.json b/data/questions/20/narrative/skeleton_3516978c_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..3354b99ebd07334fe87c2694d3dcdc08bdedc165 --- /dev/null +++ b/data/questions/20/narrative/skeleton_3516978c_narrative.json @@ -0,0 +1,1190 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 29, + "win_node_id": "calc_gcd", + "win_condition": { + "type": "tool_output", + "node_id": "calc_gcd", + "output_port": "gcd", + "output_type": "Big_Int", + "description": "Execute BigInt GCD Calculator and get the output from port 'gcd'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "text_xor_hex", + "terminal_1_b36e", + "graph_shortest_path", + "graph_shortest_path_6594", + "crypto_rsa_decrypt_hex", + "zip_unzip_file", + "calc_inv_mod" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "text_xor_hex": { + "node_name": "Hex XOR", + "node_type": "Tool", + "template_id": "text_xor_hex", + "init_inputs": { + "hex_a": { + "type": "Hex_String", + "description": "Hex A" + } + }, + "init_outputs": {} + }, + "terminal_1_b36e": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "graph_shortest_path_6594": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "hex_cipher": { + "type": "Hex_String", + "description": "Ciphertext (Hex)" + }, + "n": { + "type": "Big_Int", + "description": "Modulus n" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System terminal initialized awaiting commands.", + "hex_output": "1234567890abcdef" + } + }, + "text_xor_hex": { + "init_inputs": { + "hex_a": "abcdef1234567890" + }, + "init_outputs": {} + }, + "terminal_1_b36e": { + "init_inputs": { + "slot_a": "Enter the primary override command" + }, + "init_outputs": { + "text_output": "Node B36E active. Output text generated successfully.", + "hex_output": "deadbeef00000000", + "item_dispenser": "Just a useless paperweight" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "graph_data_main.json" + }, + "init_outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]", + "cost": "543210" + } + }, + "graph_shortest_path_6594": { + "init_inputs": { + "src": "Node_Start_6594" + }, + "init_outputs": { + "path": "[\"Node_Start_6594\", \"Node_Mid_1\", \"Node_Mid_2\", \"Node_Mid_3\", \"Node_End\"]", + "cost": "128456" + } + }, + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "hex_cipher": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "n": "1029384756102938475610293847561" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "encrypted_archive.zip" + }, + "init_outputs": { + "files": "extracted_folder.zip" + } + }, + "calc_inv_mod": { + "init_inputs": { + "a": "987654321098765432109876543210", + "mod": "999983" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You've infiltrated the underground server farm of 'Syndicate Zero', a rogue cyber-terrorist organization planning to wipe out global banking records. The air is frigid, humming with the low vibration of thousands of liquid-cooled servers. The blast doors have sealed shut behind you, and the automated network purge will begin in exactly sixty minutes. Your objective is to navigate their labyrinthine network of hardware encryptors, biometric vaults, and black-box routers. You must find the correct sequence of cryptographic handshakes and data injections to reach their core override console. One wrong move, and the data vanishes forever. Analyze the environment, link the scattered server nodes, and halt the purge.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "12102717150" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "12686305275" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "225" + } + ], + "narrative": "The Mainframe Override Console capable of halting the system purge. It requires inputs from both the Quantum Multiplier Relay and the Cryptographic Core." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "15" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 845753685 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "12686305275" + } + ], + "narrative": "An experimental Quantum Multiplier Relay. It requires inputs from both the Secondary Signal Processor and the Data Integrity Scanner." + }, + { + "id": "calc_gcd_5a66", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 845753685 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "543210" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "15" + } + ], + "narrative": "A Secondary Signal Processor for filtering noise. It requires inputs from both the Data Integrity Scanner and the Network Topology Mapper." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "543210" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 845753685 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "12686305275" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "12102717150" + } + ], + "narrative": "The Cryptographic Core of the facility. It requires inputs from the Data Integrity Scanner, the Quantum Multiplier Relay, and the Network Topology Mapper." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1234567890abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "32692d55" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 845753685 + } + ], + "narrative": "A Data Integrity Scanner that verifies file authenticity. It requires input from the Network Gateway Interface." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "\u0007Vm\"v#%\t" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "128456" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System terminal initialized awaiting commands." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System terminal initialized awaiting commands.", + "hex_output": "1234567890abcdef" + } + }, + "narrative": "The Network Gateway Interface checkpoint. It requires inputs from both the Subnet Routing Optimizer and the RSA Decryption Engine." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "756051fd34567890" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "A heavily armored Biometric Vault built into the wall. It requires input from the Cipher Blending Matrix to authenticate." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "abcdef1234567890" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "deadbeef00000000" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "756051fd34567890" + } + ], + "init": { + "inputs": { + "hex_a": "abcdef1234567890" + }, + "outputs": {} + }, + "narrative": "A dedicated Cipher Blending Matrix. It requires input from the Primary Access Terminal." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A compact, military-grade Encrypted Memory Module with no external ports." + }, + { + "id": "terminal_1_b36e", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Enter the primary override command" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "740622" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Node B36E active. Output text generated successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeef00000000" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Just a useless paperweight" + } + ], + "init": { + "inputs": { + "slot_a": "Enter the primary override command" + }, + "outputs": { + "text_output": "Node B36E active. Output text generated successfully.", + "hex_output": "deadbeef00000000", + "item_dispenser": "Just a useless paperweight" + } + }, + "narrative": "The Primary Access Terminal for the facility. It requires input from the Modular Inversion Coprocessor." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_data_main.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "False" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node B36E active. Output text generated successfully." + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "543210" + } + ], + "init": { + "inputs": { + "file_id": "graph_data_main.json" + }, + "outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]", + "cost": "543210" + } + }, + "narrative": "A Network Topology Mapper for dark web routing. It requires inputs from both the Primary Access Terminal and the Financial Ledger Verifier." + }, + { + "id": "item_8_0d77", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavily reinforced Black-box Flight Recorder salvaged from a crashed surveillance drone." + }, + { + "id": "graph_shortest_path_6594", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_folder.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Start_6594" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node B36E active. Output text generated successfully." + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Start_6594\", \"Node_Mid_1\", \"Node_Mid_2\", \"Node_Mid_3\", \"Node_End\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "128456" + } + ], + "init": { + "inputs": { + "src": "Node_Start_6594" + }, + "outputs": { + "path": "[\"Node_Start_6594\", \"Node_Mid_1\", \"Node_Mid_2\", \"Node_Mid_3\", \"Node_End\"]", + "cost": "128456" + } + }, + "narrative": "A tactical Subnet Routing Optimizer. It requires inputs from both the Archive Extraction Tool and the Primary Access Terminal." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "Node B36E active. Output text generated successfully." + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "An automated Financial Ledger Verifier. It requires input from the Primary Access Terminal." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "1029384756102938475610293847561" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "543210" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0007Vm\"v#%\t" + } + ], + "init": { + "inputs": { + "hex_cipher": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "n": "1029384756102938475610293847561" + }, + "outputs": {} + }, + "narrative": "A high-powered RSA Decryption Engine. It requires input from the Network Topology Mapper." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "\u0007Vm\"v#%\t" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_folder.zip" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_archive.zip" + }, + "outputs": { + "files": "extracted_folder.zip" + } + }, + "narrative": "An Archive Extraction Tool for unpacking digital files. It requires input from the RSA Decryption Engine." + }, + { + "id": "item_8_ea3a", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "An unmarked Hidden Server Cache pulled from a dismantled server rack." + }, + { + "id": "item_8_bbfc", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A classified Offshore Account Log detailing untraceable global transactions." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A glowing Time-Sync Beacon broadcasting global timestamp markers." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "987654321098765432109876543210" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "740622" + } + ], + "init": { + "inputs": { + "a": "987654321098765432109876543210", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "A rack-mounted Modular Inversion Coprocessor designed for reversing complex digital equations." + } + ], + "edges": [ + { + "source_id": "calc_bigmul", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "calc_gcd_5a66", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd_5a66", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "terminal_1", + "target_id": "calc_modexp", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_1", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex" + }, + { + "source_id": "container_2", + "target_id": "calc_bigmul", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "text_xor_hex", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_1_b36e", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex_b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_gcd_5a66", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "item_8_0d77", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path_6594", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "base" + }, + { + "source_id": "terminal_1_b36e", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "dst" + }, + { + "source_id": "iban_validate", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "src" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "slot_a" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path_6594", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "item_8_ea3a", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "graph_shortest_path", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "d" + }, + { + "source_id": "item_8_bbfc", + "target_id": "iban_validate", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "terminal_1_b36e", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "iban" + }, + { + "source_id": "terminal_1_b36e", + "target_id": "graph_shortest_path_6594", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "dst" + }, + { + "source_id": "item_16", + "target_id": "item_8_bbfc", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_1_b36e", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "slot_b" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_3d2f6033_narrative.json b/data/questions/20/narrative/skeleton_3d2f6033_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..f1aa8f13d80be45d32e12a9d61af4f0d32224323 --- /dev/null +++ b/data/questions/20/narrative/skeleton_3d2f6033_narrative.json @@ -0,0 +1,1106 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 22, + "win_node_id": "item_5", + "win_condition": { + "type": "item_content", + "node_id": "item_5", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_5", + "terminal_1", + "num_base_convert", + "luhn_check", + "container_4_da9c", + "graph_shortest_path", + "regex_search", + "zip_unzip_file", + "calc_inv_mod", + "calc_modexp" + ], + "by_node": { + "item_5": { + "node_name": "", + "node_type": "Item", + "template_id": "item_5", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + }, + "container_4_da9c": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "pattern": { + "type": "Text_Generic", + "description": "Regex pattern" + }, + "text": { + "type": "Text_Generic", + "description": "Text (optional)" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_5": { + "init_inputs": {}, + "init_outputs": { + "content": "8a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal authentication verified. Access granted to secured subsystem.", + "hex_output": "1234567890abcdef1234567890abcdef" + } + }, + "num_base_convert": { + "init_inputs": { + "s": "847392847582910384758291" + }, + "init_outputs": {} + }, + "luhn_check": { + "init_inputs": { + "number": "79927398713" + }, + "init_outputs": {} + }, + "container_4_da9c": { + "init_inputs": { + "fingerprint_input": "hash-84729" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "dst": "node_target_99" + }, + "init_outputs": { + "path": "[\"node_start\", \"node_1\", \"node_2\", \"node_3\", \"node_4\", \"node_target_99\"]", + "cost": "10" + } + }, + "regex_search": { + "init_inputs": { + "pattern": "[A-Z0-9]+", + "text": "The quick brown fox jumps over 13 lazy dogs." + }, + "init_outputs": { + "matches": "[\"THE\", \"QUICK\", \"BROWN\", \"13\", \"DOGS\"]" + } + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "encrypted_archive_2023.zip", + "password": "SuperSecretPa$$w0rd" + }, + "init_outputs": { + "files": "extracted_data_contents.json" + } + }, + "calc_inv_mod": { + "init_inputs": { + "a": "837492837492837492849" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "8", + "exp": "39485729103847592837", + "mod": "104729" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The world ended in fire and silence twenty years ago. You are a scavenger exploring the ruins of Sector 7, a former military research outpost buried beneath the nuclear winter. Your oxygen is running low, and the radiation storms above are closing in. Your ultimate objective is to find and extract the contents of the legendary core drive, rumored to hold the coordinates to the last uncorrupted sanctuary. But the outpost is locked down by automated defense systems and fragmented encrypted protocols. You must scour the debris, connect the surviving tech, and trace the data flow to survive.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "item_5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "8a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "8a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b" + } + }, + "narrative": "This is the core drive. A military-grade encrypted storage unit that holds the final coordinates." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the rusted cipher. A corroded mechanical puzzle box found among the debris." + }, + { + "id": "item_8_b128", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the dusty keybox. A small lockbox hidden deep in the facility's rubble." + }, + { + "id": "item_8_81a8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the broken relay. A scorched communication part from the old world." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the old datapad. A cracked tablet covered in a thick layer of ash." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Terminal authentication verified. Access granted to secured subsystem." + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the reinforced locker. It requires input from the main console. Supply the command to pry it open." + }, + { + "id": "item_16_6526", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the solar battery. A partially charged energy cell leaking faint radiation." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "1234567890abcdef1234567890abcdef" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the biometric safe. It requires input from the main console. Once authenticated, it will unlock." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "false" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "847392847582910384758291" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal authentication verified. Access granted to secured subsystem." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1234567890abcdef1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal authentication verified. Access granted to secured subsystem.", + "hex_output": "1234567890abcdef1234567890abcdef" + } + }, + "narrative": "This is the main console. It requires inputs from both the logic translator and the checksum verifier. Use both to boot it up." + }, + { + "id": "item_16_87a3", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the access card. A faded plastic keycard once used by the base commander." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "847392847582910384758291" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "837492837492837492849" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "847392847582910384758291" + } + ], + "init": { + "inputs": { + "s": "847392847582910384758291" + }, + "outputs": {} + }, + "narrative": "This is the logic translator. It requires inputs from both the nav computer and the sequence inverter to decode streams." + }, + { + "id": "item_16_7550", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the glowing fuse. A small glass tube emitting a faint, pulsating blue light." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "79927398713" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "79927398713" + }, + "outputs": {} + }, + "narrative": "This is the checksum verifier. A portable diagnostic tool used for validating access codes." + }, + { + "id": "container_4_da9c", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "hash-84729" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "hash-84729" + }, + "outputs": {} + }, + "narrative": "This is the hazard box. A heavily dented metal container marked with biohazard symbols." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_contents.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "[\"THE\", \"QUICK\", \"BROWN\", \"13\", \"DOGS\"]" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "node_target_99" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"node_start\", \"node_1\", \"node_2\", \"node_3\", \"node_4\", \"node_target_99\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "10" + } + ], + "init": { + "inputs": { + "dst": "node_target_99" + }, + "outputs": { + "path": "[\"node_start\", \"node_1\", \"node_2\", \"node_3\", \"node_4\", \"node_target_99\"]", + "cost": "10" + } + }, + "narrative": "This is the nav computer. It requires inputs from both the pattern scanner and the archive extractor to plot safe routes." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "[A-Z0-9]+" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "extracted_data_contents.json" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "The quick brown fox jumps over 13 lazy dogs." + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"THE\", \"QUICK\", \"BROWN\", \"13\", \"DOGS\"]" + } + ], + "init": { + "inputs": { + "pattern": "[A-Z0-9]+", + "text": "The quick brown fox jumps over 13 lazy dogs." + }, + "outputs": { + "matches": "[\"THE\", \"QUICK\", \"BROWN\", \"13\", \"DOGS\"]" + } + }, + "narrative": "This is the pattern scanner. It requires input from the archive extractor. Feed it extracted data to search for anomalies." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_archive_2023.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretPa$$w0rd" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_contents.json" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_archive_2023.zip", + "password": "SuperSecretPa$$w0rd" + }, + "outputs": { + "files": "extracted_data_contents.json" + } + }, + "narrative": "This is the archive extractor. A rugged data recovery unit salvaged from the command center." + }, + { + "id": "item_8_b742", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the scavenged casing. An empty metallic shell stripped of its internal wiring." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "837492837492837492849" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1566" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "837492837492837492849" + } + ], + "init": { + "inputs": { + "a": "837492837492837492849" + }, + "outputs": {} + }, + "narrative": "This is the sequence inverter. It requires input from the power calibrator. Once calibrated, it reverses signals." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "8" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "39485729103847592837" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1566" + } + ], + "init": { + "inputs": { + "base": "8", + "exp": "39485729103847592837", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "This is the power calibrator. A jury-rigged device used to measure erratic energy spikes." + } + ], + "edges": [ + { + "source_id": "item_8", + "target_id": "item_5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_b128", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_81a8", + "target_id": "item_8_b128", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8_81a8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_4", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16_6526", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "container_1", + "target_id": "item_16_6526", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "terminal_1", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "terminal_1", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_16_87a3", + "target_id": "terminal_1", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "terminal_1", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "slot_b" + }, + { + "source_id": "item_16_7550", + "target_id": "num_base_convert", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "luhn_check", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "slot_a" + }, + { + "source_id": "container_4_da9c", + "target_id": "item_16_87a3", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "from_base" + }, + { + "source_id": "regex_search", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "src" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file", + "target_id": "regex_search", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_8_b742", + "target_id": "container_4_da9c", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_450e1521_narrative.json b/data/questions/20/narrative/skeleton_450e1521_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..b635b0728753dca5a1b2389f4cee9366aed3c3ea --- /dev/null +++ b/data/questions/20/narrative/skeleton_450e1521_narrative.json @@ -0,0 +1,1154 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 23, + "win_node_id": "item_10", + "win_condition": { + "type": "item_content", + "node_id": "item_10", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_10", + "graph_shortest_path", + "zlib_deflate", + "terminal_1", + "calc_inv_mod", + "zip_unzip_file", + "graph_shortest_path_6b16", + "calc_bigmul_7af7", + "checksum_crc32" + ], + "by_node": { + "item_10": { + "node_name": "", + "node_type": "Item", + "template_id": "item_10", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zlib_deflate": { + "node_name": "Zlib Deflate", + "node_type": "Tool", + "template_id": "zlib_deflate", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to compress" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "graph_shortest_path_6b16": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "calc_bigmul_7af7": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_10": { + "init_inputs": {}, + "init_outputs": { + "content": "82749301928475628193028374" + } + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "graph_data_main.json", + "dst": "Node_XYZ_99" + }, + "init_outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_XYZ_99\"]", + "cost": "84729" + } + }, + "zlib_deflate": { + "init_inputs": { + "text": "This is the text to be compressed using zlib algorithm." + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Command execution trigger sequence.", + "slot_b": "918273645019283746519203" + }, + "init_outputs": { + "text_output": "Terminal execution succeeded with slot_a.", + "hex_output": "deadbeef12345678" + } + }, + "calc_inv_mod": { + "init_inputs": { + "a": "1928374658291029384756102" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": { + "zip_id": "archive_secret_01.zip", + "password": "SuperSecretPassword123!" + }, + "init_outputs": { + "files": "extracted_data_folder.tar" + } + }, + "graph_shortest_path_6b16": { + "init_inputs": { + "src": "Start_Node_Alpha", + "dst": "End_Node_Omega" + }, + "init_outputs": { + "path": "[\"Start_Node_Alpha\", \"Node_Mid_1\", \"Node_Mid_2\", \"Node_Mid_3\", \"Node_Mid_4\", \"End_Node_Omega\"]", + "cost": "51928" + } + }, + "calc_bigmul_7af7": { + "init_inputs": { + "a": "8192837465102938475619283", + "b": "5829102938475619283746510" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "1a2b3c4d5e6f7a8b" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You have infiltrated the abandoned clandestine office of Arthur Pendelton, a rogue cryptographer who vanished with highly sensitive syndicate intelligence. Rumors suggest his greatest secrets are hidden within a master ledger somewhere in this room. The space is a chaotic web of interlocking physical devices, obsolete mainframes, and cryptic logic puzzles. Your objective is clear: navigate this complex chain of machinery, trace the data flow across his workstation, and retrieve the ledger before the syndicate's sweepers arrive.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "item_10", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_10", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "82749301928475628193028374" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "82749301928475628193028374" + } + }, + "narrative": "The Grand Master's Final Ledger. A heavily bound book containing the ultimate secrets of the society." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_data_folder.tar" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "False" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "narrative": "The Digital Archive Unpacker. It requires inputs from both The Master Financial Authenticator and The Initial Archive Extractor." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "False" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "The Master Financial Authenticator. It requires input from The Secondary Financial Authenticator." + }, + { + "id": "iban_validate_9afb", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_XYZ_99\"]" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "The Secondary Financial Authenticator. It requires input from The Primary Route Planner." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "40fea2cf3ca61c9987d8817c57999f39" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "The Biometric Security Vault. It requires input from The Hexagonal Recombinator." + }, + { + "id": "text_xor_hex", + "name": "Hex XOR", + "description": "XOR two hex strings.", + "type": "Tool", + "template_id": "text_xor_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_a", + "type": "Hex_String", + "description": "Hex A", + "value": "deadbeef12345678" + }, + { + "name": "hex_b", + "type": "Hex_String", + "description": "Hex B", + "value": "9e531c202e924ae187d8817c57999f39" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "XOR Result Hex", + "value": "40fea2cf3ca61c9987d8817c57999f39" + } + ], + "narrative": "The Hexagonal Recombinator. It requires inputs from both The One-Way Cryptographic Slicer and The Mainframe Access Terminal." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Overseer's Keycard. An old, dust-covered proximity badge left on a cluttered desk." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Udv7mg==" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "9e531c202e924ae187d8817c57999f39" + } + ], + "narrative": "The One-Way Cryptographic Slicer. It requires input from The Format Translator." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_data_main.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "iiU'p" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_XYZ_99" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_XYZ_99\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "84729" + } + ], + "init": { + "inputs": { + "file_id": "graph_data_main.json", + "dst": "Node_XYZ_99" + }, + "outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_XYZ_99\"]", + "cost": "84729" + } + }, + "narrative": "The Primary Route Planner. It requires input from The Asymmetric Decoder Ring." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "789c0bc9c82c5600a2928c548592d48a1285927c85a45485e4fcdc82a2d4e2e2d41485d2e2ccbc7485aa9ccc2485c49cf4fca2cc928c5c3d002ef61446" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "1928374658291029384756102" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "2479919936706958999489618478828694246511842735444592240" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "iiU'p" + } + ], + "narrative": "The Asymmetric Decoder Ring. It requires inputs from The Data Compressor, The Multiplicative Engine, and The Inverse Logic Module." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "This is the text to be compressed using zlib algorithm." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c0bc9c82c5600a2928c548592d48a1285927c85a45485e4fcdc82a2d4e2e2d41485d2e2ccbc7485aa9ccc2485c49cf4fca2cc928c5c3d002ef61446" + } + ], + "init": { + "inputs": { + "text": "This is the text to be compressed using zlib algorithm." + }, + "outputs": {} + }, + "narrative": "The Data Compressor. An ancient hydraulic-looking machine modified to squeeze data streams into tightly packed blocks." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "51dbfb9a" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "Udv7mg==" + } + ], + "narrative": "The Format Translator. It requires input from The Integrity Scanner." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Command execution trigger sequence." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "918273645019283746519203" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal execution succeeded with slot_a." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeef12345678" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Command execution trigger sequence.", + "slot_b": "918273645019283746519203" + }, + "outputs": { + "text_output": "Terminal execution succeeded with slot_a.", + "hex_output": "deadbeef12345678" + } + }, + "narrative": "The Mainframe Access Terminal. A retro-computing console with a glowing green CRT display." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "47756892942284682627669436119794604962868639952330" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "51928" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "2479919936706958999489618478828694246511842735444592240" + } + ], + "narrative": "The Multiplicative Engine. It requires inputs from both The Secondary Route Planner and The Secondary Inverse Module." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "1928374658291029384756102" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "47756892942284682627669436119794604962868639952330" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1928374658291029384756102" + } + ], + "init": { + "inputs": { + "a": "1928374658291029384756102" + }, + "outputs": {} + }, + "narrative": "The Inverse Logic Module. It requires input from The Secondary Inverse Module." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_secret_01.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretPassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_folder.tar" + } + ], + "init": { + "inputs": { + "zip_id": "archive_secret_01.zip", + "password": "SuperSecretPassword123!" + }, + "outputs": { + "files": "extracted_data_folder.tar" + } + }, + "narrative": "The Initial Archive Extractor. A rusty server rack dedicated to restoring corrupted and secured files." + }, + { + "id": "calc_inv_mod_d612", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "47756892942284682627669436119794604962868639952330" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "51928" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "47756892942284682627669436119794604962868639952330" + } + ], + "narrative": "The Secondary Inverse Module. It requires inputs from both The Secondary Route Planner and The Quantum Calculator." + }, + { + "id": "graph_shortest_path_6b16", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_folder.tar" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Start_Node_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "End_Node_Omega" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Start_Node_Alpha\", \"Node_Mid_1\", \"Node_Mid_2\", \"Node_Mid_3\", \"Node_Mid_4\", \"End_Node_Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "51928" + } + ], + "init": { + "inputs": { + "src": "Start_Node_Alpha", + "dst": "End_Node_Omega" + }, + "outputs": { + "path": "[\"Start_Node_Alpha\", \"Node_Mid_1\", \"Node_Mid_2\", \"Node_Mid_3\", \"Node_Mid_4\", \"End_Node_Omega\"]", + "cost": "51928" + } + }, + "narrative": "The Secondary Route Planner. It requires input from The Initial Archive Extractor." + }, + { + "id": "calc_bigmul_7af7", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "8192837465102938475619283" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "5829102938475619283746510" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "47756892942284682627669436119794604962868639952330" + } + ], + "init": { + "inputs": { + "a": "8192837465102938475619283", + "b": "5829102938475619283746510" + }, + "outputs": {} + }, + "narrative": "The Quantum Calculator. A sophisticated computational device humming with immense electrical power." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "1a2b3c4d5e6f7a8b" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "51dbfb9a" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1373371290 + } + ], + "init": { + "inputs": { + "hex": "1a2b3c4d5e6f7a8b" + }, + "outputs": {} + }, + "narrative": "The Integrity Scanner. A handheld biometric and digital device used to verify the consistency of records." + } + ], + "edges": [ + { + "source_id": "zip_unzip_item", + "target_id": "item_10", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "iban_validate", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "iban_validate_9afb", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "iban" + }, + { + "source_id": "container_2", + "target_id": "zip_unzip_item", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "text_xor_hex", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "hash_md5", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "iban_validate_9afb", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "iban" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "zlib_deflate", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "base64_encode", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "text" + }, + { + "source_id": "terminal_1", + "target_id": "text_xor_hex", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex_a" + }, + { + "source_id": "calc_bigmul", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "d" + }, + { + "source_id": "calc_inv_mod", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "n" + }, + { + "source_id": "zip_unzip_file", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "calc_inv_mod_d612", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path_6b16", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "terminal_1", + "target_id": "calc_bigmul", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "graph_shortest_path_6b16", + "target_id": "calc_inv_mod_d612", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path_6b16", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "calc_inv_mod_d612", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_bigmul_7af7", + "target_id": "calc_inv_mod_d612", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_4f01716a_narrative.json b/data/questions/20/narrative/skeleton_4f01716a_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..e8b7796900135a5d03e5fb5e14a1ece050d222e3 --- /dev/null +++ b/data/questions/20/narrative/skeleton_4f01716a_narrative.json @@ -0,0 +1,1470 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 28, + "win_node_id": "container_4", + "win_condition": { + "type": "item_content", + "node_id": "container_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_4", + "terminal_1", + "terminal_2", + "graph_shortest_path", + "zip_unzip_file", + "graph_shortest_path_9725", + "calc_modexp", + "calc_modexp_a535", + "calc_modexp_174b", + "calc_bigmul", + "calc_bigmul_f811", + "calc_modexp_cf12", + "calc_bigmul_2942", + "zip_unzip_file_6307", + "calc_bigmul_6a40", + "graph_shortest_path_58d8" + ], + "by_node": { + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "graph_shortest_path_9725": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "calc_modexp_a535": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_modexp_174b": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "calc_bigmul_f811": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "calc_modexp_cf12": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "calc_bigmul_2942": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_6307": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_bigmul_6a40": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "graph_shortest_path_58d8": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "container_4": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "A♠_K♥_Q♣_J♦_10♠" + } + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal initialized and ready to process inputs.", + "hex_output": "4f9b2d8e1a7c5603b41d", + "item_dispenser": "A completely redundant token item" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal two processing complete with partial input.", + "hex_result": "7a6b5c4d3e2f10984a", + "math_token": "Another pointless math symbol coin" + } + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Alpha" + }, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]", + "cost": "245890" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_data_1.zip" + } + }, + "graph_shortest_path_9725": { + "init_inputs": { + "file_id": "graph_structure_A.json", + "src": "Node_Start_1" + }, + "init_outputs": { + "path": "[\"Node_Start_1\", \"Node_A1\", \"Node_A2\", \"Node_A3\", \"Node_End_1\"]", + "cost": "389215" + } + }, + "calc_modexp": { + "init_inputs": { + "exp": "84930219485729103847" + }, + "init_outputs": {} + }, + "calc_modexp_a535": { + "init_inputs": { + "mod": "948271" + }, + "init_outputs": {} + }, + "calc_modexp_174b": { + "init_inputs": { + "mod": "837493" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "b": "39485720192837465928" + }, + "init_outputs": {} + }, + "calc_bigmul_f811": { + "init_inputs": { + "a": "10928374650192837465" + }, + "init_outputs": {} + }, + "calc_modexp_cf12": { + "init_inputs": { + "exp": "48572910485729103847" + }, + "init_outputs": {} + }, + "calc_bigmul_2942": { + "init_inputs": { + "a": "58294018374659203847" + }, + "init_outputs": {} + }, + "zip_unzip_file_6307": { + "init_inputs": { + "zip_id": "encrypted_archive.zip", + "password": "secure_password_123" + }, + "init_outputs": { + "files": "decrypted_folder.zip" + } + }, + "calc_bigmul_6a40": { + "init_inputs": { + "a": "84759201837465920183", + "b": "47582910293847561029" + }, + "init_outputs": {} + }, + "graph_shortest_path_58d8": { + "init_inputs": { + "file_id": "graph_map_region3.json", + "src": "Node_City_X", + "dst": "Node_City_Y" + }, + "init_outputs": { + "path": "[\"Node_City_X\", \"Node_Village_A\", \"Node_Town_B\", \"Node_Checkpoint\", \"Node_City_Y\"]", + "cost": "192834" + } + } + }, + "intro_narrative": "Welcome to Sector 7, a decommissioned cyber-warfare facility buried deep underground. You are trapped inside the main control room, surrounded by humming server racks and flickering monitors. A rogue AI has initiated an absolute lockdown, sealing you in with a heavily guarded safe that holds your only means of escape. To get out, you must restore the fragmented network, decipher corrupted data logs, and hack through layers of military-grade encryption before the facility's life support systems completely shut down. The countdown has started.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Terminal initialized and ready to process inputs." + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "A♠_K♥_Q♣_J♦_10♠" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "A♠_K♥_Q♣_J♦_10♠" + } + }, + "narrative": "A heavy Biometric Safe built into the reinforced wall. It requires input from the Security Terminal to unlock." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_bf274924e4091f52" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A metallic Access Key with an embedded microchip." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "3152903960891242119678625" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialized and ready to process inputs." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "4f9b2d8e1a7c5603b41d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A completely redundant token item" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal initialized and ready to process inputs.", + "hex_output": "4f9b2d8e1a7c5603b41d", + "item_dispenser": "A completely redundant token item" + } + }, + "narrative": "This is the Security Terminal. It requires inputs from both the Network Mapper and the Data Translator to function." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Terminal two processing complete with partial input." + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_bf274924e4091f52" + } + ], + "narrative": "The Rapid Prototyper, an advanced 3D fabrication unit. It requires input from the Mainframe Console." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "470808" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "389215" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal two processing complete with partial input." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "7a6b5c4d3e2f10984a" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Another pointless math symbol coin" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal two processing complete with partial input.", + "hex_result": "7a6b5c4d3e2f10984a", + "math_token": "Another pointless math symbol coin" + } + }, + "narrative": "This is the Mainframe Console. It requires inputs from both the Subnet Analyzer and the Quantum Processor." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_1.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "[\"Node_Start_1\", \"Node_A1\", \"Node_A2\", \"Node_A3\", \"Node_End_1\"]" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "245890" + } + ], + "init": { + "inputs": { + "src": "Node_Alpha" + }, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\"]", + "cost": "245890" + } + }, + "narrative": "A Network Mapper interface. It requires inputs from the Decryption Module and the Syntax Filter." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "3152903960891242119678625" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "245890" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "688788" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "3152903960891242119678625" + } + ], + "narrative": "The Data Translator terminal. It requires inputs from the Network Mapper, the Crypto Engine, and the Logic Core." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "decrypted_folder.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Terminal two processing complete with partial input." + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_1.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_data_1.zip" + } + }, + "narrative": "The Decryption Module. It requires inputs from the Mainframe Console and the Archive Extractor." + }, + { + "id": "graph_shortest_path_9725", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_structure_A.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Start_1" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "[\"Node_City_X\", \"Node_Village_A\", \"Node_Town_B\", \"Node_Checkpoint\", \"Node_City_Y\"]" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Start_1\", \"Node_A1\", \"Node_A2\", \"Node_A3\", \"Node_End_1\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "389215" + } + ], + "init": { + "inputs": { + "file_id": "graph_structure_A.json", + "src": "Node_Start_1" + }, + "outputs": { + "path": "[\"Node_Start_1\", \"Node_A1\", \"Node_A2\", \"Node_A3\", \"Node_End_1\"]", + "cost": "389215" + } + }, + "narrative": "The Subnet Analyzer. It requires input from the Routing Matrix to map the connections." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "7257295373013359784579800353586412199291263543777573766005483000" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "84930219485729103847" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "627477" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "470808" + } + ], + "init": { + "inputs": { + "exp": "84930219485729103847" + }, + "outputs": {} + }, + "narrative": "A high-end Quantum Processor. It requires inputs from the Cipher Node and the Algorithmic Multiplier." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "[\"Node_Start_1\", \"Node_A1\", \"Node_A2\", \"Node_A3\", \"Node_End_1\"]" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "[\"Node_Start_1\", \"Node_A1\", \"Node_A2\", \"Node_A3\", \"Node_End_1\"]" + } + ], + "narrative": "The Syntax Filter module. It requires input from the Subnet Analyzer to clean the data." + }, + { + "id": "calc_modexp_a535", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "3152903960891242119678625" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "4033089497610260242838968449681735348307" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "948271" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "688788" + } + ], + "init": { + "inputs": { + "mod": "948271" + }, + "outputs": {} + }, + "narrative": "The Crypto Engine. It requires inputs from the Logic Core and the Sector Multiplier." + }, + { + "id": "calc_modexp_174b", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "389215" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "4253487339474805233939975" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "837493" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "627477" + } + ], + "init": { + "inputs": { + "mod": "837493" + }, + "outputs": {} + }, + "narrative": "The Cipher Node. It requires inputs from both the Subnet Analyzer and the Hash Scaler." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "183795441429729851960469517078956334003670375" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "39485720192837465928" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "7257295373013359784579800353586412199291263543777573766005483000" + } + ], + "init": { + "inputs": { + "b": "39485720192837465928" + }, + "outputs": {} + }, + "narrative": "The Algorithmic Multiplier device. It requires input from the Variable Expander." + }, + { + "id": "calc_bigmul_f811", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "10928374650192837465" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "389215" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "4253487339474805233939975" + } + ], + "init": { + "inputs": { + "a": "10928374650192837465" + }, + "outputs": {} + }, + "narrative": "The Hash Scaler. It requires input from the Subnet Analyzer to adjust the hash rate." + }, + { + "id": "calc_modexp_cf12", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "389215" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "48572910485729103847" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "4253487339474805233939975" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "3152903960891242119678625" + } + ], + "init": { + "inputs": { + "exp": "48572910485729103847" + }, + "outputs": {} + }, + "narrative": "The Logic Core. It requires inputs from the Hash Scaler and the Subnet Analyzer to process instructions." + }, + { + "id": "calc_bigmul_2942", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "58294018374659203847" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "3152903960891242119678625" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "183795441429729851960469517078956334003670375" + } + ], + "init": { + "inputs": { + "a": "58294018374659203847" + }, + "outputs": {} + }, + "narrative": "The Variable Expander. It requires input from the Logic Core." + }, + { + "id": "zip_unzip_file_6307", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "secure_password_123" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "decrypted_folder.zip" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_archive.zip", + "password": "secure_password_123" + }, + "outputs": { + "files": "decrypted_folder.zip" + } + }, + "narrative": "An Archive Extractor software module loaded on a rugged tablet." + }, + { + "id": "calc_bigmul_6a40", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "84759201837465920183" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "47582910293847561029" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "4033089497610260242838968449681735348307" + } + ], + "init": { + "inputs": { + "a": "84759201837465920183", + "b": "47582910293847561029" + }, + "outputs": {} + }, + "narrative": "A Sector Multiplier calculation unit housed in a dusty server rack." + }, + { + "id": "graph_shortest_path_58d8", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_map_region3.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_City_X" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_City_Y" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_City_X\", \"Node_Village_A\", \"Node_Town_B\", \"Node_Checkpoint\", \"Node_City_Y\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "192834" + } + ], + "init": { + "inputs": { + "file_id": "graph_map_region3.json", + "src": "Node_City_X", + "dst": "Node_City_Y" + }, + "outputs": { + "path": "[\"Node_City_X\", \"Node_Village_A\", \"Node_Town_B\", \"Node_Checkpoint\", \"Node_City_Y\"]", + "cost": "192834" + } + }, + "narrative": "A Routing Matrix configuration interface blinking on a small display." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_1", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "matter_synthesizer", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "blueprint" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "slot_a" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "slot_b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "from_base" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "terminal_2", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "password" + }, + { + "source_id": "graph_shortest_path_9725", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num2" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num1" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "dst" + }, + { + "source_id": "calc_modexp_a535", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "to_base" + }, + { + "source_id": "calc_modexp_174b", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path_9725", + "target_id": "calc_modexp_174b", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "base" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "base" + }, + { + "source_id": "graph_shortest_path_9725", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "text" + }, + { + "source_id": "calc_bigmul_f811", + "target_id": "calc_modexp_174b", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "exp" + }, + { + "source_id": "calc_modexp_cf12", + "target_id": "calc_modexp_a535", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "base" + }, + { + "source_id": "calc_modexp_cf12", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "s" + }, + { + "source_id": "calc_bigmul_2942", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "calc_modexp_cf12", + "target_id": "calc_bigmul_2942", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "calc_bigmul_f811", + "target_id": "calc_modexp_cf12", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path_9725", + "target_id": "calc_bigmul_f811", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "b" + }, + { + "source_id": "graph_shortest_path_9725", + "target_id": "calc_modexp_cf12", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "base" + }, + { + "source_id": "zip_unzip_file_6307", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "calc_bigmul_6a40", + "target_id": "calc_modexp_a535", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "exp" + }, + { + "source_id": "graph_shortest_path_58d8", + "target_id": "graph_shortest_path_9725", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "dst" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_4f8a8ba3_narrative.json b/data/questions/20/narrative/skeleton_4f8a8ba3_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..213b12d439af8fa196ea060f3d1d3d191dae1887 --- /dev/null +++ b/data/questions/20/narrative/skeleton_4f8a8ba3_narrative.json @@ -0,0 +1,1094 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 20, + "win_node_id": "iban_validate", + "win_condition": { + "type": "tool_output", + "node_id": "iban_validate", + "output_port": "valid", + "output_type": "Text_Generic", + "description": "Execute IBAN Validator and get the output from port 'valid'" + }, + "source_init": { + "source_nodes": [ + "json_get", + "zip_unzip_file", + "item_7", + "zip_unzip_file_4345", + "zip_unzip_file_dea9", + "item_7_1239", + "terminal_1", + "zip_unzip_file_f0bf", + "zip_unzip_item", + "matter_synthesizer", + "calc_modexp" + ], + "by_node": { + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": {}, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "zip_unzip_file_4345": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_dea9": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "item_7_1239": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "zip_unzip_file_f0bf": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "json_get": { + "init_inputs": {}, + "init_outputs": { + "values": "[\"IBAN_543981\", \"IBAN_993821\", \"IBAN_102934\", \"IBAN_554839\", \"IBAN_293847\"]" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "financial_records_decrypted.json" + } + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "def generate_integer():\n return 89234857\nprint(generate_integer())" + } + }, + "zip_unzip_file_4345": { + "init_inputs": { + "password": "SecurePassword_4345_!@#" + }, + "init_outputs": { + "files": "intermediate_archive_4345.zip" + } + }, + "zip_unzip_file_dea9": { + "init_inputs": { + "password": "VaultKey_dea9_7761" + }, + "init_outputs": { + "files": "secondary_backup_dea9.zip" + } + }, + "item_7_1239": { + "init_inputs": {}, + "init_outputs": { + "content": "import random\nval = 1239\nprint(f'Computed value is {val}')" + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Initialization Code Alpha-901" + }, + "init_outputs": { + "text_output": "Terminal initialized properly. Sequence accepted.", + "hex_output": "8b3a1c9e4d5f2a0b7c6d1e2f3a4b5c6d" + } + }, + "zip_unzip_file_f0bf": { + "init_inputs": { + "zip_id": "encrypted_payload_f0bf.zip", + "password": "Unlock_F0BF_Data_992" + }, + "init_outputs": { + "files": "extracted_assets_f0bf.zip" + } + }, + "zip_unzip_item": { + "init_inputs": { + "password": "Item_Access_Pwd_8123" + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "Blueprint Schematic: Plasma Converter Module v3" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "31", + "exp": "8937461528394756201938475", + "mod": "999983" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You've finally breached the perimeter of the derelict Kurokawa Server Farm, deep in the neon-drenched underbelly of Sector 7. The air is thick with the smell of ozone and damp rust. Your mission is clear: you need to authorize a massive credit transfer from the megacorp's shadow accounts. To do this, you must successfully execute the final banking validation on their network. The server room is a maze of locked terminals, encrypted archives, and scattered data shards left behind by previous rogue runners. You'll need to power up the decryptors, piece together broken script fragments, and trace the data flow through this chaotic web of corporate tech to finalize the transfer and get out before the corporate enforcers arrive.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "[\"IBAN_543981\", \"IBAN_993821\", \"IBAN_102934\", \"IBAN_554839\", \"IBAN_293847\"]" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "A high-security Banking Validator connected to the megacorp's network. It requires input from the Data Extractor to verify the targeted offshore account." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "financial_records_decrypted.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "89234857\n" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"IBAN_543981\", \"IBAN_993821\", \"IBAN_102934\", \"IBAN_554839\", \"IBAN_293847\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "values": "[\"IBAN_543981\", \"IBAN_993821\", \"IBAN_102934\", \"IBAN_554839\", \"IBAN_293847\"]" + } + }, + "narrative": "A localized Data Extractor designed to slice through corporate databanks. It requires inputs from both the Mainframe Executor and the Master Archive Decrypter." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def generate_integer():\n return 89234857\nprint(generate_integer())" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "89234857\n" + } + ], + "narrative": "A powerful Mainframe Executor with a direct link to the neural net. It requires input from the Corrupted Script Fragment." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "intermediate_archive_4345.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Computed value is 1239\n" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "financial_records_decrypted.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "financial_records_decrypted.json" + } + }, + "narrative": "The Master Archive Decrypter terminal. It requires inputs from both the Sub-Archive Decrypter and the Auxiliary Executor." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "def generate_integer():\n return 89234857\nprint(generate_integer())" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def generate_integer():\n return 89234857\nprint(generate_integer())" + } + }, + "narrative": "A Corrupted Script Fragment lying in a puddle of synthetic cooling fluid." + }, + { + "id": "zip_unzip_file_4345", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secondary_backup_dea9.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SecurePassword_4345_!@#" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "intermediate_archive_4345.zip" + } + ], + "init": { + "inputs": { + "password": "SecurePassword_4345_!@#" + }, + "outputs": { + "files": "intermediate_archive_4345.zip" + } + }, + "narrative": "A secondary Sub-Archive Decrypter terminal. It requires input from the Deep Archive Decrypter." + }, + { + "id": "zip_unzip_file_dea9", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_assets_f0bf.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "VaultKey_dea9_7761" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "secondary_backup_dea9.zip" + } + ], + "init": { + "inputs": { + "password": "VaultKey_dea9_7761" + }, + "outputs": { + "files": "secondary_backup_dea9.zip" + } + }, + "narrative": "An underground Deep Archive Decrypter system. It requires input from the Base Archive Decrypter." + }, + { + "id": "code_py_exec_6636", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "import random\nval = 1239\nprint(f'Computed value is {val}')" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Computed value is 1239\n" + } + ], + "narrative": "An Auxiliary Executor used for processing external code files. It requires input from the Clean Script Fragment." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "An Encrypted Comms Shard emitting a faint, pulsating neon glow." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A digital Smuggler's Note hastily saved on an old holodisc." + }, + { + "id": "item_7_1239", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "import random\nval = 1239\nprint(f'Computed value is {val}')" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "import random\nval = 1239\nprint(f'Computed value is {val}')" + } + }, + "narrative": "A Clean Script Fragment encased in anti-static glass." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal", + "value": "synthesized_item_1b658c90f170228c" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Initialization Code Alpha-901" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "536232" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal initialized properly. Sequence accepted." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "8b3a1c9e4d5f2a0b7c6d1e2f3a4b5c6d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Initialization Code Alpha-901" + }, + "outputs": { + "text_output": "Terminal initialized properly. Sequence accepted.", + "hex_output": "8b3a1c9e4d5f2a0b7c6d1e2f3a4b5c6d" + } + }, + "narrative": "A heavily guarded Access Terminal. It requires input from the Quantum math processor." + }, + { + "id": "item_8_a86c", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A battered Mercenary's log drive covered in scratches." + }, + { + "id": "zip_unzip_file_f0bf", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_payload_f0bf.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Unlock_F0BF_Data_992" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_assets_f0bf.zip" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_payload_f0bf.zip", + "password": "Unlock_F0BF_Data_992" + }, + "outputs": { + "files": "extracted_assets_f0bf.zip" + } + }, + "narrative": "An old but reliable Base Archive Decrypter terminal." + }, + { + "id": "item_8_9dee", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Hacker's Diary file containing paranoid ramblings." + }, + { + "id": "item_16_9780", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A sleek Corpo datapad bearing the golden logo of a rival megacorp." + }, + { + "id": "item_16_6cd2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A bright Neon shard smelling faintly of burnt wires." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_assets_f0bf.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Item_Access_Pwd_8123" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "password": "Item_Access_Pwd_8123" + }, + "outputs": {} + }, + "narrative": "An Item Extraction Protocol designed to physically materialize encrypted data. It requires input from the Base Archive Decrypter." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Blueprint Schematic: Plasma Converter Module v3" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_1b658c90f170228c" + } + ], + "init": { + "inputs": { + "blueprint": "Blueprint Schematic: Plasma Converter Module v3" + }, + "outputs": {} + }, + "narrative": "A glowing Nano-fabricator capable of assembling physical objects." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "31" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "8937461528394756201938475" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "536232" + } + ], + "init": { + "inputs": { + "base": "31", + "exp": "8937461528394756201938475", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "A Quantum math processor rack constantly humming as it calculates." + } + ], + "edges": [ + { + "source_id": "json_get", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "iban" + }, + { + "source_id": "code_py_exec", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "jsonpath" + }, + { + "source_id": "zip_unzip_file", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "zip_unzip_file_4345", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_dea9", + "target_id": "zip_unzip_file_4345", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "code_py_exec_6636", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "password" + }, + { + "source_id": "item_16", + "target_id": "zip_unzip_file_dea9", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_8", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_7_1239", + "target_id": "code_py_exec_6636", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "terminal_1", + "target_id": "code_py_exec", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "item_8_a86c", + "target_id": "item_7_1239", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_file_f0bf", + "target_id": "zip_unzip_file_dea9", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_8_9dee", + "target_id": "zip_unzip_file_f0bf", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_16_9780", + "target_id": "item_8_9dee", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16_6cd2", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_file_f0bf", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "matter_synthesizer", + "target_id": "terminal_1", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "trigger_item" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "slot_b" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_512db3e4_narrative.json b/data/questions/20/narrative/skeleton_512db3e4_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..7fc5007598a1c6a601db14c37a65bd0fe11f09b1 --- /dev/null +++ b/data/questions/20/narrative/skeleton_512db3e4_narrative.json @@ -0,0 +1,1124 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 22, + "win_node_id": "item_5", + "win_condition": { + "type": "item_content", + "node_id": "item_5", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_5", + "hash_md5", + "container_1", + "terminal_1", + "calc_inv_mod", + "calc_gcd_90ac", + "regex_search", + "item_4", + "calc_inv_mod_e1a5", + "terminal_2" + ], + "by_node": { + "item_5": { + "node_name": "", + "node_type": "Item", + "template_id": "item_5", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String_Key_AES", + "description": "AES Key" + } + } + }, + "hash_md5": { + "node_name": "MD5 Hasher", + "node_type": "Tool", + "template_id": "hash_md5", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_gcd_90ac": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "pattern": { + "type": "Text_Generic", + "description": "Regex pattern" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "calc_inv_mod_e1a5": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + } + } + }, + "initial_values": { + "item_5": { + "init_inputs": {}, + "init_outputs": { + "content": "7c2f8b9e1a3d4f5c6e7a8b9c0d1e2f3a" + } + }, + "hash_md5": { + "init_inputs": { + "text": "User session data for md5 processing" + }, + "init_outputs": {} + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "918273645a4b3c2d1e0f" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal output executed successfully.", + "hex_output": "a1b2c3d4e5f60718", + "item_dispenser": "Dispensed a shiny but useless coin" + } + }, + "calc_inv_mod": { + "init_inputs": { + "a": "1234567890123456789012", + "mod": "997331" + }, + "init_outputs": {} + }, + "calc_gcd_90ac": { + "init_inputs": { + "a": "9876543210987654321098", + "b": "1122334455667788990011" + }, + "init_outputs": {} + }, + "regex_search": { + "init_inputs": { + "pattern": "\\d{16}" + }, + "init_outputs": { + "matches": "[\"1234567890123456\", \"9876543210987654\", \"1111222233334444\"]" + } + }, + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "archive_data_x99.zip" + } + }, + "calc_inv_mod_e1a5": { + "init_inputs": { + "a": "8888777766665555444433", + "mod": "104729" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "5555666677778888999900", + "num2": "2323232323232323232323" + }, + "init_outputs": { + "text_result": "Computed partial terminal result safely.", + "hex_result": "deadbeefcafe1234", + "math_token": "A rusted cogwheel of no real value" + } + } + }, + "intro_narrative": "The world you once knew is buried under radioactive dust and twisted metal. As a scavenger exploring the ruins of Sector 7, you've stumbled upon an abandoned underground military bunker. The air is thick with the smell of ozone and decay. Emergency lights flicker weakly, illuminating ancient terminals and rusted lockboxes scattered throughout the facility. Your objective is clear: navigate through this forgotten labyrinth, bypass the degraded security systems, and extract the legendary final data drive. Survival outside depends on the secrets hidden deep within this bunker. Be careful, as every terminal and safe is interconnected through a complex web of obsolete technology.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "item_5", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String_Key_AES", + "description": "AES Key", + "value": "7c2f8b9e1a3d4f5c6e7a8b9c0d1e2f3a" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "7c2f8b9e1a3d4f5c6e7a8b9c0d1e2f3a" + } + }, + "narrative": "The final data drive." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A rusted pocket watch." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "3403afbb19cbaa687a75597ccbee8ebf" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the deep storage vault. It requires input from the checksum terminal." + }, + { + "id": "item_16_58ee", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A tarnished pocket watch." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool", + "value": "synthesized_item_fcbcf165908dd18a" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "User session data for md5 processing" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "3403afbb19cbaa687a75597ccbee8ebf" + } + ], + "init": { + "inputs": { + "text": "User session data for md5 processing" + }, + "outputs": {} + }, + "narrative": "The checksum terminal." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "918273645a4b3c2d1e0f" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "918273645a4b3c2d1e0f" + }, + "outputs": {} + }, + "narrative": "The scavenger's lockbox." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "Terminal output executed successfully." + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the biometric safe. It requires input from the main bunker mainframe." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "false" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_fcbcf165908dd18a" + } + ], + "narrative": "This is the scrap assembler. It requires input from the validation console." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "Terminal output executed successfully." + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "This is the validation console. It requires input from the main bunker mainframe." + }, + { + "id": "container_1_dc1d", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a1b2c3d4e5f60718" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the fallout shelter lockbox. It requires input from the main bunker mainframe." + }, + { + "id": "item_16_556c", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A broken pocket watch." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "[\"1234567890123456\", \"9876543210987654\", \"1111222233334444\"]" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "11" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal output executed successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f60718" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "Dispensed a shiny but useless coin" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Terminal output executed successfully.", + "hex_output": "a1b2c3d4e5f60718", + "item_dispenser": "Dispensed a shiny but useless coin" + } + }, + "narrative": "This is the main bunker mainframe. It requires inputs from the quantum decryption core and the data miner." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "11" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "365402" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "11" + } + ], + "narrative": "This is the quantum decryption core. It requires inputs from the phase inverter, the frequency aligner, and the resonance calibrator." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "1234567890123456789012" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "997331" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "365402" + } + ], + "init": { + "inputs": { + "a": "1234567890123456789012", + "mod": "997331" + }, + "outputs": {} + }, + "narrative": "The phase inverter." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "11" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "73262" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the frequency aligner. It requires inputs from the resonance calibrator and the secondary phase inverter." + }, + { + "id": "calc_gcd_90ac", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "9876543210987654321098" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "1122334455667788990011" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "11" + } + ], + "init": { + "inputs": { + "a": "9876543210987654321098", + "b": "1122334455667788990011" + }, + "outputs": {} + }, + "narrative": "The resonance calibrator." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "\\d{16}" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "archive_data_x99.zip" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "Computed partial terminal result safely." + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"1234567890123456\", \"9876543210987654\", \"1111222233334444\"]" + } + ], + "init": { + "inputs": { + "pattern": "\\d{16}" + }, + "outputs": { + "matches": "[\"1234567890123456\", \"9876543210987654\", \"1111222233334444\"]" + } + }, + "narrative": "This is the data miner. It requires inputs from an intact memory card and the outpost computer." + }, + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "archive_data_x99.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "archive_data_x99.zip" + } + }, + "narrative": "An intact memory card." + }, + { + "id": "calc_inv_mod_e1a5", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "8888777766665555444433" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "104729" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "73262" + } + ], + "init": { + "inputs": { + "a": "8888777766665555444433", + "mod": "104729" + }, + "outputs": {} + }, + "narrative": "The secondary phase inverter." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "5555666677778888999900" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "2323232323232323232323" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Computed partial terminal result safely." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeefcafe1234" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "A rusted cogwheel of no real value" + } + ], + "init": { + "inputs": { + "num1": "5555666677778888999900", + "num2": "2323232323232323232323" + }, + "outputs": { + "text_result": "Computed partial terminal result safely.", + "hex_result": "deadbeefcafe1234", + "math_token": "A rusted cogwheel of no real value" + } + }, + "narrative": "The outpost computer." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "item_5", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16_58ee", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "hash_md5", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "container_1", + "target_id": "item_16_58ee", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "container_4", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "matter_synthesizer", + "target_id": "hash_md5", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "trigger_item" + }, + { + "source_id": "luhn_check", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "blueprint" + }, + { + "source_id": "container_1_dc1d", + "target_id": "matter_synthesizer", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "item_16_556c", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_1", + "target_id": "luhn_check", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "number" + }, + { + "source_id": "terminal_1", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "slot_b" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "exp" + }, + { + "source_id": "calc_gcd_90ac", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "regex_search", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "slot_a" + }, + { + "source_id": "calc_gcd_90ac", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "terminal_1", + "target_id": "container_1_dc1d", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_4", + "target_id": "regex_search", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + }, + { + "source_id": "calc_inv_mod_e1a5", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "b" + }, + { + "source_id": "terminal_2", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_6a4d1a16_narrative.json b/data/questions/20/narrative/skeleton_6a4d1a16_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..e4b479adff8f315d0993d7055996f3ba4751e96b --- /dev/null +++ b/data/questions/20/narrative/skeleton_6a4d1a16_narrative.json @@ -0,0 +1,1265 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 24, + "win_node_id": "calc_modexp", + "win_condition": { + "type": "tool_output", + "node_id": "calc_modexp", + "output_port": "value", + "output_type": "Big_Int", + "description": "Execute BigInt Modular Exponentiation and get the output from port 'value'" + }, + "source_init": { + "source_nodes": [ + "graph_shortest_path", + "zip_unzip_file", + "regex_search", + "calc_gcd", + "base64_encode", + "calc_gcd_cab2", + "checksum_crc32", + "zip_unzip_file_968f", + "container_1", + "text_bidi_sanitize", + "base64_decode", + "container_4", + "graph_shortest_path_d895" + ], + "by_node": { + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "File ID (optional)" + }, + "text": { + "type": "Text_Generic", + "description": "Text (optional)" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "base64_encode": { + "node_name": "Base64 Encoder", + "node_type": "Tool", + "template_id": "base64_encode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex bytes" + } + }, + "init_outputs": {} + }, + "calc_gcd_cab2": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_968f": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "text_bidi_sanitize": { + "node_name": "Bidi Sanitizer", + "node_type": "Tool", + "template_id": "text_bidi_sanitize", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "base64_decode": { + "node_name": "Base64 Decoder", + "node_type": "Tool", + "template_id": "base64_decode", + "init_inputs": { + "data": { + "type": "Text_Generic", + "description": "Base64 string" + } + }, + "init_outputs": {} + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "graph_shortest_path_d895": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + } + } + }, + "initial_values": { + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\", \"Node_F\"]", + "cost": "450281" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_files_group1.zip" + } + }, + "regex_search": { + "init_inputs": { + "file_id": "target_log_data.txt", + "text": "The quick brown fox jumps over the lazy dog 1234567890." + }, + "init_outputs": { + "matches": "[\"match_1\", \"match_2\", \"match_3\", \"match_4\", \"match_5\"]" + } + }, + "calc_gcd": { + "init_inputs": { + "a": "93847281934857291038112", + "b": "47281930485726193847223" + }, + "init_outputs": {} + }, + "base64_encode": { + "init_inputs": { + "hex": "11223344556677889900aabbccddeeff" + }, + "init_outputs": {} + }, + "calc_gcd_cab2": { + "init_inputs": { + "b": "83749283746510293847334" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "deadbeef1234567890abcdef12345678" + }, + "init_outputs": {} + }, + "zip_unzip_file_968f": { + "init_inputs": { + "zip_id": "encrypted_archive_44.zip" + }, + "init_outputs": { + "files": "inner_contents_55.json" + } + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "a1b2c3d4e5f678901234567890abcde0" + }, + "init_outputs": {} + }, + "text_bidi_sanitize": { + "init_inputs": { + "text": "Sample text needing bidi sanitization process here." + }, + "init_outputs": {} + }, + "base64_decode": { + "init_inputs": { + "data": "VGhpcyBpcyBhIHZhbGlkIGJhc2U2NCBzdHJpbmcgdGVzdC4=" + }, + "init_outputs": {} + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "unique_fingerprint_hash_string_99" + }, + "init_outputs": {} + }, + "graph_shortest_path_d895": { + "init_inputs": { + "file_id": "graph_topology_v2_99.json", + "src": "Router_Alpha", + "dst": "Switch_Zeta" + }, + "init_outputs": { + "path": "[\"Router_A\", \"Node_X\", \"Node_Y\", \"Gateway_1\", \"Switch_Z\", \"Endpoint_Q\"]", + "cost": "82931" + } + } + }, + "intro_narrative": "The world ended in nuclear fire decades ago, leaving the surface a barren, irradiated wasteland. You are a Scavenger who has just stumbled upon the legendary Outpost Zero, a forgotten subterranean bunker rumored to house a functional life-support reactor. The air is stale, the emergency lights flicker ominously, and dust covers the dormant machinery. Your objective is clear: reactivate the bunker's systems and ignite the main power core to restore hope to the survivors above. You must navigate the complex web of abandoned terminals and scavenge through the ruins to find a way to power up the facility.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "5474330431947" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "4052529" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1350843" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "0" + } + ], + "narrative": "This is the Main Reactor Ignition. It requires inputs from the Atmospheric Calibrator, the Distance Multiplier, and the Fuel Calculator to initiate the final startup sequence." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "4052529" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "1350843" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "5474330431947" + } + ], + "narrative": "This is the Atmospheric Calibrator. It requires inputs from both the Fuel Calculator and the Distance Multiplier to properly adjust the environmental controls." + }, + { + "id": "calc_bigmul_84a3", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "450281" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "3" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "1350843" + } + ], + "narrative": "This is the Distance Multiplier. It requires inputs from the Navigation Drone and the Coordinate Translator to plot a safe routing protocol." + }, + { + "id": "calc_bigmul_b76a", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "1350843" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "3" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "4052529" + } + ], + "narrative": "This is the Fuel Calculator. It requires inputs from the Distance Multiplier and the Coordinate Translator to determine the optimal resource consumption rate." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_files_group1.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "This is a valid base64 string test." + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "[\"match_1\", \"match_2\", \"match_3\", \"match_4\", \"match_5\"]" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\", \"Node_F\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "450281" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\", \"Node_F\"]", + "cost": "450281" + } + }, + "narrative": "This is the Navigation Drone. It requires inputs from the Main Vault Extractor, the Data Pattern Scanner, and the Frequency Decoder to chart its path." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "inner_contents_55.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "ESIzRFVmd4iZAKq7zN3u/w==" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_files_group1.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_files_group1.zip" + } + }, + "narrative": "This is the Main Vault Extractor. It requires inputs from both the Transmission Encoder and the Archive Extractor to bypass the heavy security bulkheads." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A Torn Journal Page covered in frantic, burnt scribbles left behind by the bunker's previous inhabitants." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "3" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "82931" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "3" + } + ], + "narrative": "This is the Coordinate Translator. It requires inputs from the Old Power Analyzer, the Secondary Power Analyzer, and the Scavenger Map Terminal to function." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "This is a valid base64 string test." + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "target_log_data.txt" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "The quick brown fox jumps over the lazy dog 1234567890." + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"match_1\", \"match_2\", \"match_3\", \"match_4\", \"match_5\"]" + } + ], + "init": { + "inputs": { + "file_id": "target_log_data.txt", + "text": "The quick brown fox jumps over the lazy dog 1234567890." + }, + "outputs": { + "matches": "[\"match_1\", \"match_2\", \"match_3\", \"match_4\", \"match_5\"]" + } + }, + "narrative": "This is the Data Pattern Scanner. It requires input from the Frequency Decoder to filter out the corrupted sectors of the bunker's mainframe." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "5468697320697320612076616c69642062617365363420737472696e6720746573742e" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "This is a valid base64 string test." + } + ], + "narrative": "This is the Frequency Decoder. It requires input from the Rusty Radio Receiver to translate the intercepted anomalous signals." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "93847281934857291038112" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "47281930485726193847223" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "3" + } + ], + "init": { + "inputs": { + "a": "93847281934857291038112", + "b": "47281930485726193847223" + }, + "outputs": {} + }, + "narrative": "An Old Power Analyzer used for measuring raw electrical resistance in the bunker's aging grid." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "11223344556677889900aabbccddeeff" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "ESIzRFVmd4iZAKq7zN3u/w==" + } + ], + "init": { + "inputs": { + "hex": "11223344556677889900aabbccddeeff" + }, + "outputs": {} + }, + "narrative": "A Transmission Encoder built to scramble outbound distress beacons across the wasteland." + }, + { + "id": "calc_gcd_cab2", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 2306118487 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "83749283746510293847334" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "83749283746510293847334" + }, + "outputs": {} + }, + "narrative": "This is the Secondary Power Analyzer. It requires input from the Geiger Counter Module to safely measure the voltage without triggering a meltdown." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeef1234567890abcdef12345678" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "89749357" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2306118487 + } + ], + "init": { + "inputs": { + "hex": "deadbeef1234567890abcdef12345678" + }, + "outputs": {} + }, + "narrative": "A Geiger Counter Module utilized by scavengers for detecting background radiation levels." + }, + { + "id": "zip_unzip_file_968f", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_archive_44.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Sample text needing bidi sanitization process here." + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "inner_contents_55.json" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_archive_44.zip" + }, + "outputs": { + "files": "inner_contents_55.json" + } + }, + "narrative": "This is the Archive Extractor. It requires input from the Signal Scrubber to piece together the fragmented pre-war files." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a1b2c3d4e5f678901234567890abcde0" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "a1b2c3d4e5f678901234567890abcde0" + }, + "outputs": {} + }, + "narrative": "A Biometric Safe constructed from reinforced pre-war steel, sitting heavy on a rusted desk." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Sample text needing bidi sanitization process here." + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "Sample text needing bidi sanitization process here." + } + ], + "init": { + "inputs": { + "text": "Sample text needing bidi sanitization process here." + }, + "outputs": {} + }, + "narrative": "A Signal Scrubber designed to filter out radioactive static from old wasteland broadcasts." + }, + { + "id": "base64_decode", + "name": "Base64 Decoder", + "description": "Decode base64 to hex bytes.", + "type": "Tool", + "template_id": "base64_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "data", + "type": "Text_Generic", + "description": "Base64 string", + "value": "VGhpcyBpcyBhIHZhbGlkIGJhc2U2NCBzdHJpbmcgdGVzdC4=" + } + ], + "outputs": [ + { + "name": "bytes_hex", + "type": "Hex_String", + "description": "Decoded bytes as Hex", + "value": "5468697320697320612076616c69642062617365363420737472696e6720746573742e" + } + ], + "init": { + "inputs": { + "data": "VGhpcyBpcyBhIHZhbGlkIGJhc2U2NCBzdHJpbmcgdGVzdC4=" + }, + "outputs": {} + }, + "narrative": "A Rusty Radio Receiver that still hums quietly with intercepted military comms." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "unique_fingerprint_hash_string_99" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "unique_fingerprint_hash_string_99" + }, + "outputs": {} + }, + "narrative": "A Dusty Footlocker mostly buried under a pile of collapsed concrete and rebar." + }, + { + "id": "graph_shortest_path_d895", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_topology_v2_99.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Router_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Switch_Zeta" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Router_A\", \"Node_X\", \"Node_Y\", \"Gateway_1\", \"Switch_Z\", \"Endpoint_Q\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "82931" + } + ], + "init": { + "inputs": { + "file_id": "graph_topology_v2_99.json", + "src": "Router_Alpha", + "dst": "Switch_Zeta" + }, + "outputs": { + "path": "[\"Router_A\", \"Node_X\", \"Node_Y\", \"Gateway_1\", \"Switch_Z\", \"Endpoint_Q\"]", + "cost": "82931" + } + }, + "narrative": "A Scavenger Map Terminal displaying faded holographic topographies of the ruined city above." + } + ], + "edges": [ + { + "source_id": "calc_bigmul", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "base" + }, + { + "source_id": "calc_bigmul_84a3", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "calc_bigmul_b76a", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "calc_bigmul_84a3", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "calc_bigmul_b76a", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "exp" + }, + { + "source_id": "calc_bigmul_84a3", + "target_id": "calc_bigmul_b76a", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul_84a3", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_16", + "target_id": "calc_bigmul_b76a", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_bigmul_84a3", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "regex_search", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "dst" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_bigmul_b76a", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "hex_decode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "s" + }, + { + "source_id": "hex_decode", + "target_id": "regex_search", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "pattern" + }, + { + "source_id": "base64_encode", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "password" + }, + { + "source_id": "calc_gcd_cab2", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd_cab2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "zip_unzip_file_968f", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "container_1", + "target_id": "base64_encode", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file_968f", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "base64_decode", + "target_id": "hex_decode", + "connection_type": "Hex_String", + "source_port": "bytes_hex", + "target_port": "hex" + }, + { + "source_id": "container_4", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path_d895", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "to_base" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_702aff38_narrative.json b/data/questions/20/narrative/skeleton_702aff38_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..9ec540fb7fbcaf043a93b9aedd92c60f4cae666c --- /dev/null +++ b/data/questions/20/narrative/skeleton_702aff38_narrative.json @@ -0,0 +1,1125 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 37, + "win_node_id": "num_base_convert", + "win_condition": { + "type": "tool_output", + "node_id": "num_base_convert", + "output_port": "str", + "output_type": "Big_Int", + "description": "Execute Base Converter and get the output from port 'str'" + }, + "source_init": { + "source_nodes": [ + "checksum_crc32_227c", + "terminal_2", + "calc_bigmul_1019", + "calc_modexp_115f", + "terminal_2_98d1" + ], + "by_node": { + "checksum_crc32_227c": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_bigmul_1019": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "calc_modexp_115f": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + } + }, + "init_outputs": {} + }, + "terminal_2_98d1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + } + } + }, + "initial_values": { + "checksum_crc32_227c": { + "init_inputs": { + "hex": "3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Terminal computation partial output stream established.", + "hex_result": "112233445566778899aabbccddeeff00" + } + }, + "calc_bigmul_1019": { + "init_inputs": { + "b": "7382910384756192837465102938" + }, + "init_outputs": {} + }, + "calc_modexp_115f": { + "init_inputs": { + "base": "16" + }, + "init_outputs": {} + }, + "terminal_2_98d1": { + "init_inputs": { + "num1": "94857102938475610293847561029", + "num2": "10293847561928374650192837465" + }, + "init_outputs": { + "text_result": "Second terminal processed the inputs successfully.", + "hex_result": "00ffeeddccbbaa998877665544332211" + } + } + }, + "intro_narrative": "The rain batters against the window of the 42nd Precinct. You are Detective Hayes, and the 'Midnight Serial' case has just hit a dead end. The precinct's evidence room is a mess of scattered files, locked terminals, and encrypted drives. The chief has given you until dawn to identify the killer before the case is handed over to the Feds. To crack this, you'll need to piece together the scattered clues, cross-reference biometric data, and uncover the hidden motives. The final piece of the puzzle lies in the precinct's Final Verdict System, but it's locked behind multiple layers of cryptographic security. Time is running out, detective. Examine the evidence, find the connections, and close this case.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "2218996255691637720" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1436306394" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "887598594200264304" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "2218996255691637720" + } + ], + "narrative": "This is the Final Verdict System. It requires inputs from the Master Case File, the Motive Analyzer, and the Truth Synthesizer." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "1436306394" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "1544932380" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "2218996255691637720" + } + ], + "narrative": "This is the Master Case File. It requires inputs from both the Truth Synthesizer and the Location Decoder." + }, + { + "id": "calc_bigmul_c22d", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "1436306394" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "617973016" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "887598594200264304" + } + ], + "narrative": "This is the Motive Analyzer. It requires inputs from both the Cipher Translator and the Suspect Profiler." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 1436306394 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "887598594200264304" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1436306394" + } + ], + "narrative": "This is the Truth Synthesizer. It requires inputs from the Logic Inverter and the Primary Forensics Scanner." + }, + { + "id": "num_base_convert_2da6", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": 1544932380 + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1436306394" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "1452398316" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1544932380" + } + ], + "narrative": "This is the Location Decoder. It requires inputs from the Pattern Projector, the Advanced Print Analyzer, and the Truth Synthesizer." + }, + { + "id": "num_base_convert_6558", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": 1436306394 + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1436306394" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 1544932380 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1436306394" + } + ], + "narrative": "This is the Cipher Translator. It requires inputs from the Advanced Print Analyzer, the Primary Forensics Scanner, and the Contradiction Finder." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "6" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "887598594200264304" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 1544932380 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1452398316" + } + ], + "narrative": "This is the Pattern Projector. It requires inputs from the Evidence Correlator, the Advanced Print Analyzer, and the Motive Analyzer." + }, + { + "id": "calc_gcd_b685", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "1436306394" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": 1544932380 + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "6" + } + ], + "narrative": "This is the Evidence Correlator. It requires inputs from the Cipher Translator and the Advanced Print Analyzer." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "887598594200264304" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1436306394" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "887598594200264304" + } + ], + "narrative": "This is the Logic Inverter. It requires inputs from both the Motive Analyzer and the Contradiction Finder." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "559c4bda" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "5c15cc1c" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1544932380 + } + ], + "narrative": "This is the Advanced Print Analyzer. It requires input from the Primary Forensics Scanner." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A strange metallic Suspect's Token found near the victim." + }, + { + "id": "checksum_crc32_227c", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "559c4bda" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1436306394 + } + ], + "init": { + "inputs": { + "hex": "3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d" + }, + "outputs": {} + }, + "narrative": "A portable Primary Forensics Scanner used to capture fingerprints from the crime scene." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "887598594200264304" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": 1544932380 + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal computation partial output stream established." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "112233445566778899aabbccddeeff00" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Terminal computation partial output stream established.", + "hex_result": "112233445566778899aabbccddeeff00" + } + }, + "narrative": "This is the Detective's Datapad. It requires inputs from both the Motive Analyzer and the Advanced Print Analyzer." + }, + { + "id": "item_16_2434", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A confidential Locker File hidden away." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "112233445566778899aabbccddeeff00" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Evidence Locker. It requires input from the Detective's Datapad to unlock." + }, + { + "id": "calc_inv_mod_3b5c", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 1436306394 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "4562439397325504912445907457346321008" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1436306394" + } + ], + "narrative": "This is the Contradiction Finder. It requires inputs from both the Primary Forensics Scanner and the Alibi Verifier." + }, + { + "id": "calc_bigmul_1019", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "617973016" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "7382910384756192837465102938" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "4562439397325504912445907457346321008" + } + ], + "init": { + "inputs": { + "b": "7382910384756192837465102938" + }, + "outputs": {} + }, + "narrative": "This is the Alibi Verifier. It requires input from the Suspect Profiler." + }, + { + "id": "item_16_7f25", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A heavily redacted Witness Statement with a few scribbled notes." + }, + { + "id": "calc_modexp_115f", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "16" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": 1436306394 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 1544932380 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "617973016" + } + ], + "init": { + "inputs": { + "base": "16" + }, + "outputs": {} + }, + "narrative": "This is the Suspect Profiler. It requires inputs from both the Advanced Print Analyzer and the Primary Forensics Scanner." + }, + { + "id": "terminal_2_98d1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "94857102938475610293847561029" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "10293847561928374650192837465" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Second terminal processed the inputs successfully." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "00ffeeddccbbaa998877665544332211" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "94857102938475610293847561029", + "num2": "10293847561928374650192837465" + }, + "outputs": { + "text_result": "Second terminal processed the inputs successfully.", + "hex_result": "00ffeeddccbbaa998877665544332211" + } + }, + "narrative": "An old, sturdy Interrogation Computer used for questioning suspects." + } + ], + "edges": [ + { + "source_id": "calc_bigmul", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "calc_bigmul_c22d", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "to_base" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "num_base_convert_2da6", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "num_base_convert_6558", + "target_id": "calc_bigmul_c22d", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "calc_modexp", + "target_id": "num_base_convert_2da6", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "to_base" + }, + { + "source_id": "calc_gcd_b685", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert_6558", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "item_16", + "target_id": "calc_modexp", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_bigmul_c22d", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "checksum_crc32_227c", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "num_base_convert_2da6", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "s" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert_2da6", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "checksum_crc32_227c", + "target_id": "num_base_convert_6558", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "s" + }, + { + "source_id": "num_base_convert_6558", + "target_id": "calc_gcd_b685", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "terminal_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "item_16_2434", + "target_id": "calc_gcd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_bigmul_c22d", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num1" + }, + { + "source_id": "calc_bigmul_c22d", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "exp" + }, + { + "source_id": "container_2", + "target_id": "item_16_2434", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_inv_mod_3b5c", + "target_id": "num_base_convert_6558", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "from_base" + }, + { + "source_id": "checksum_crc32_227c", + "target_id": "calc_inv_mod_3b5c", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod_3b5c", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd_b685", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num2" + }, + { + "source_id": "terminal_2", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_bigmul_1019", + "target_id": "calc_inv_mod_3b5c", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "item_16_7f25", + "target_id": "calc_bigmul_1019", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32_227c", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_modexp_115f", + "target_id": "calc_bigmul_1019", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_115f", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "checksum_crc32_227c", + "target_id": "calc_modexp_115f", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "exp" + }, + { + "source_id": "calc_modexp_115f", + "target_id": "calc_bigmul_c22d", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "terminal_2_98d1", + "target_id": "item_16_7f25", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_783c95e1_narrative.json b/data/questions/20/narrative/skeleton_783c95e1_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..2dce8672f9df5c907cf5d48cbfb2e927652a5712 --- /dev/null +++ b/data/questions/20/narrative/skeleton_783c95e1_narrative.json @@ -0,0 +1,1332 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 25, + "win_node_id": "num_base_convert", + "win_condition": { + "type": "tool_output", + "node_id": "num_base_convert", + "output_port": "str", + "output_type": "Big_Int", + "description": "Execute Base Converter and get the output from port 'str'" + }, + "source_init": { + "source_nodes": [ + "calc_gcd", + "num_base_convert_0d44", + "num_base_convert_0b46", + "graph_shortest_path", + "num_base_convert_a185", + "calc_gcd_3982", + "terminal_1", + "json_get", + "num_base_convert_20e4", + "container_4", + "zip_unzip_item", + "calc_inv_mod_c6df", + "terminal_1_aaa9" + ], + "by_node": { + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "num_base_convert_0d44": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "num_base_convert_0b46": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "num_base_convert_a185": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "calc_gcd_3982": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "JSON file ID" + }, + "jsonpath": { + "type": "Text_Generic", + "description": "JSONPath expression" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "num_base_convert_20e4": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": {} + }, + "calc_inv_mod_c6df": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "terminal_1_aaa9": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + } + } + }, + "initial_values": { + "calc_gcd": { + "init_inputs": { + "b": "948573615243958671429" + }, + "init_outputs": {} + }, + "num_base_convert_0d44": { + "init_inputs": { + "s": "1839402837465910283746", + "from_base": "16" + }, + "init_outputs": {} + }, + "num_base_convert_0b46": { + "init_inputs": { + "s": "847561928374651029384" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "graph_network_01.json", + "dst": "Node_X94" + }, + "init_outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_F\", \"Node_K\", \"Node_X94\", \"Node_Z\"]", + "cost": "839402" + } + }, + "num_base_convert_a185": { + "init_inputs": { + "s": "38475629103847562910", + "from_base": "8" + }, + "init_outputs": {} + }, + "calc_gcd_3982": { + "init_inputs": { + "b": "675849302184756392018" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Initilization text sequence alpha" + }, + "init_outputs": { + "text_output": "Terminal 1 processed data successfully without error.", + "hex_output": "4a5b6c7d8e9f0a1b2c3d4e5f" + } + }, + "json_get": { + "init_inputs": { + "file_id": "config_data_102.json", + "jsonpath": "$.system.users[*].name" + }, + "init_outputs": { + "values": "[\"admin\", \"guest\", \"operator\", \"system_bot\", \"developer\"]" + } + }, + "num_base_convert_20e4": { + "init_inputs": { + "from_base": "10" + }, + "init_outputs": {} + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "hash_1a2b3c4d5e6f" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "secret_archive_v2.zip", + "password": "P@ssw0rd2024!" + }, + "init_outputs": {} + }, + "calc_inv_mod_c6df": { + "init_inputs": { + "a": "59283746102938475619", + "mod": "859433" + }, + "init_outputs": {} + }, + "terminal_1_aaa9": { + "init_inputs": { + "slot_a": "Input command for terminal aaa9", + "slot_b": "293847561029384756190" + }, + "init_outputs": { + "text_output": "Output message from terminal aaa9 received successfully.", + "hex_output": "11223344556677889900aabbccddeeff" + } + } + }, + "intro_narrative": "You are a rogue netrunner trapped deep inside the Neo-Corp mainframe. The automated defense protocols have initiated a lockdown, and deadly Black ICE is slowly closing in on your signal. To disconnect your consciousness safely and escape the subnet, you must manually force the system to eject you. The only way out is to navigate through the complex web of cryptographic nodes and activate the Final Override Protocol before the system completely purges your mind. Time is running out, and every digital node in this room holds a piece of your salvation.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "1" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "847561928374651029384" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1" + } + ], + "narrative": "This is the Final Override Protocol. It requires inputs from the Core Inverter, the Auxiliary Inverter, and the Primary Decryptor to execute." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "847561928374651029384" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1839402837465910283746" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "847561928374651029384" + } + ], + "narrative": "This is the Core Inverter. It requires inputs from both the Protocol Translator and the Main Translator." + }, + { + "id": "calc_inv_mod_a9bd", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1839402837465910283746" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1" + } + ], + "narrative": "This is an Auxiliary Inverter. It requires inputs from both the Primary Decryptor and the Phase Translator." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "839402" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "948573615243958671429" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "948573615243958671429" + }, + "outputs": {} + }, + "narrative": "This is the Primary Decryptor. It requires input from the Network Router to begin cracking the ICE." + }, + { + "id": "num_base_convert_0d44", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1839402837465910283746" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "336343" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1839402837465910283746" + } + ], + "init": { + "inputs": { + "s": "1839402837465910283746", + "from_base": "16" + }, + "outputs": {} + }, + "narrative": "This is a Protocol Translator. It requires input from the Quantum Inverter to align the system codes." + }, + { + "id": "num_base_convert_0b46", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "847561928374651029384" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "38475629103847562910" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "1" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "847561928374651029384" + } + ], + "init": { + "inputs": { + "s": "847561928374651029384" + }, + "outputs": {} + }, + "narrative": "This is the Main Translator. It requires inputs from both the Sub-Translator and the Secondary Decryptor." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_network_01.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "adminguestoperatorsystembotdeveloper" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_X94" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_A\", \"Node_B\", \"Node_F\", \"Node_K\", \"Node_X94\", \"Node_Z\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "839402" + } + ], + "init": { + "inputs": { + "file_id": "graph_network_01.json", + "dst": "Node_X94" + }, + "outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_F\", \"Node_K\", \"Node_X94\", \"Node_Z\"]", + "cost": "839402" + } + }, + "narrative": "This is a Network Router. It requires input from the Transmission Encoder to map the safest digital pathway." + }, + { + "id": "num_base_convert_a185", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "38475629103847562910" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "8" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "1" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "38475629103847562910" + } + ], + "init": { + "inputs": { + "s": "38475629103847562910", + "from_base": "8" + }, + "outputs": {} + }, + "narrative": "This is a Sub-Translator module. It processes data from the Secondary Decryptor to refine the override keys." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "69d9a29e0b9eb2da297ab6ada2bb32b2d7a66e8b5d7af7a5a297ab" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "adminguestoperatorsystembotdeveloper" + } + ], + "narrative": "This is a Transmission Encoder. It processes data from the Signal Decoder to continue the sequence." + }, + { + "id": "calc_gcd_3982", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "1" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "675849302184756392018" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "675849302184756392018" + }, + "outputs": {} + }, + "narrative": "This is the Secondary Decryptor. It needs input from the Primary Decryptor to begin its deep computation." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Initilization text sequence alpha" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "1839402837465910283746" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal 1 processed data successfully without error." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "4a5b6c7d8e9f0a1b2c3d4e5f" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Initilization text sequence alpha" + }, + "outputs": { + "text_output": "Terminal 1 processed data successfully without error.", + "hex_output": "4a5b6c7d8e9f0a1b2c3d4e5f" + } + }, + "narrative": "This is an Access Terminal. It needs the result from the Phase Translator to activate its interface." + }, + { + "id": "base64_decode", + "name": "Base64 Decoder", + "description": "Decode base64 to hex bytes.", + "type": "Tool", + "template_id": "base64_decode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "data", + "type": "Text_Generic", + "description": "Base64 string", + "value": "[\"admin\", \"guest\", \"operator\", \"system_bot\", \"developer\"]" + } + ], + "outputs": [ + { + "name": "bytes_hex", + "type": "Hex_String", + "description": "Decoded bytes as Hex", + "value": "69d9a29e0b9eb2da297ab6ada2bb32b2d7a66e8b5d7af7a5a297ab" + } + ], + "narrative": "This is a Signal Decoder. It requires input from the Data Extractor to function properly in this network." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "config_data_102.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "$.system.users[*].name" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"admin\", \"guest\", \"operator\", \"system_bot\", \"developer\"]" + } + ], + "init": { + "inputs": { + "file_id": "config_data_102.json", + "jsonpath": "$.system.users[*].name" + }, + "outputs": { + "values": "[\"admin\", \"guest\", \"operator\", \"system_bot\", \"developer\"]" + } + }, + "narrative": "This is a standalone Data Extractor unit, humming quietly with blue neon energy." + }, + { + "id": "num_base_convert_20e4", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "1839402837465910283746" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "10" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "1" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "1839402837465910283746" + } + ], + "init": { + "inputs": { + "from_base": "10" + }, + "outputs": {} + }, + "narrative": "This is a Phase Translator. It requires inputs from both the Primary Decryptor and the Protocol Translator." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A small Data Cache module embedded in the server rack, waiting to be accessed." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "hash_1a2b3c4d5e6f" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "hash_1a2b3c4d5e6f" + }, + "outputs": {} + }, + "narrative": "This is a heavy Secure Vault. Its digital lock pulses with a threatening red holographic warning." + }, + { + "id": "item_16_9020", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A fragmented Log File floating in the data stream, likely left behind by a previous netrunner." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secret_archive_v2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "P@ssw0rd2024!" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "secret_archive_v2.zip", + "password": "P@ssw0rd2024!" + }, + "outputs": {} + }, + "narrative": "This is an Archive Extractor utility, designed to crack heavy corporate firewalls and digital archives." + }, + { + "id": "calc_inv_mod_c6df", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "59283746102938475619" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "859433" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "336343" + } + ], + "init": { + "inputs": { + "a": "59283746102938475619", + "mod": "859433" + }, + "outputs": {} + }, + "narrative": "This is a Quantum Inverter interface, glowing with volatile cybernetic energy." + }, + { + "id": "terminal_1_aaa9", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Input command for terminal aaa9" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "293847561029384756190" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Output message from terminal aaa9 received successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "11223344556677889900aabbccddeeff" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Input command for terminal aaa9", + "slot_b": "293847561029384756190" + }, + "outputs": { + "text_output": "Output message from terminal aaa9 received successfully.", + "hex_output": "11223344556677889900aabbccddeeff" + } + }, + "narrative": "This is an old Maintenance Terminal with a flickering screen, disconnected from the main grid." + } + ], + "edges": [ + { + "source_id": "calc_inv_mod", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "calc_inv_mod_a9bd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "s" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "from_base" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod_a9bd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "num_base_convert_0d44", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "num_base_convert_0b46", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "num_base_convert_a185", + "target_id": "num_base_convert_0b46", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "from_base" + }, + { + "source_id": "base64_encode", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "src" + }, + { + "source_id": "calc_gcd_3982", + "target_id": "num_base_convert_a185", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "to_base" + }, + { + "source_id": "terminal_1", + "target_id": "num_base_convert_0b46", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "base64_decode", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "bytes_hex", + "target_port": "hex" + }, + { + "source_id": "json_get", + "target_id": "base64_decode", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "data" + }, + { + "source_id": "num_base_convert_20e4", + "target_id": "calc_inv_mod_a9bd", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "num_base_convert_20e4", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "slot_b" + }, + { + "source_id": "item_16", + "target_id": "base64_decode", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "container_4", + "target_id": "calc_inv_mod_a9bd", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "calc_gcd_3982", + "target_id": "num_base_convert_0b46", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "to_base" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_gcd_3982", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "item_16_9020", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "calc_gcd", + "target_id": "num_base_convert_20e4", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "to_base" + }, + { + "source_id": "num_base_convert_0d44", + "target_id": "num_base_convert_20e4", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "s" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "calc_inv_mod_c6df", + "target_id": "num_base_convert_0d44", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "to_base" + }, + { + "source_id": "terminal_1_aaa9", + "target_id": "zip_unzip_item", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_7e40df42_narrative.json b/data/questions/20/narrative/skeleton_7e40df42_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..092304ea77a41a60bb3a8eb47c3ab2fb9283c04c --- /dev/null +++ b/data/questions/20/narrative/skeleton_7e40df42_narrative.json @@ -0,0 +1,1235 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 22, + "win_node_id": "zip_unzip_item", + "win_condition": { + "type": "tool_output", + "node_id": "zip_unzip_item", + "output_port": "item", + "output_type": "Item", + "description": "Execute Zip Unzipper and get the output from port 'item'" + }, + "source_init": { + "source_nodes": [ + "zip_unzip_item", + "zip_unzip_file", + "zip_unzip_file_06fd", + "crypto_rsa_decrypt_hex", + "terminal_1", + "zip_unzip_file_d084", + "calc_inv_mod", + "calc_gcd", + "terminal_2", + "calc_bigmul_819b", + "hmac_sha256", + "crypto_rsa_decrypt_hex_00d0", + "code_py_exec" + ], + "by_node": { + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": {}, + "init_outputs": { + "item": { + "type": "Item", + "description": "item in the zip" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_06fd": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "d": { + "type": "Big_Int", + "description": "Private exponent d" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "zip_unzip_file_d084": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + }, + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_bigmul_819b": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + }, + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "hex_key": { + "type": "Hex_String", + "description": "Hex key" + } + }, + "init_outputs": {} + }, + "crypto_rsa_decrypt_hex_00d0": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "hex_cipher": { + "type": "Hex_String", + "description": "Ciphertext (Hex)" + }, + "n": { + "type": "Big_Int", + "description": "Modulus n" + }, + "d": { + "type": "Big_Int", + "description": "Private exponent d" + } + }, + "init_outputs": {} + }, + "code_py_exec": { + "node_name": "Python Executor", + "node_type": "Tool", + "template_id": "code_py_exec", + "init_inputs": { + "code": { + "type": "Code_Python", + "description": "Python code" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "zip_unzip_item": { + "init_inputs": {}, + "init_outputs": { + "item": "XIV_XXVI_MMXXIV_SUM_MMLXIV" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_archive_data.zip" + } + }, + "zip_unzip_file_06fd": { + "init_inputs": {}, + "init_outputs": { + "files": "confidential_document.pdf" + } + }, + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "d": "49201948572910394857201938475638" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "System initialization completed successfully.", + "hex_output": "deadbeef1234567890abcdef", + "item_dispenser": "this item has no functional value here" + } + }, + "zip_unzip_file_d084": { + "init_inputs": { + "zip_id": "source_package_v2.zip" + }, + "init_outputs": { + "files": "payload_content.bin" + } + }, + "calc_inv_mod": { + "init_inputs": { + "mod": "100003" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "982746102938475619283746", + "b": "102938475618293847561920" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num1": "503928471628394051627384" + }, + "init_outputs": { + "text_result": "Partial input recognized. Awaiting further data.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d", + "math_token": "just a meaningless token for testing" + } + }, + "calc_bigmul_819b": { + "init_inputs": { + "a": "738495029384756192837465", + "b": "859403928172635485960192" + }, + "init_outputs": {} + }, + "hmac_sha256": { + "init_inputs": { + "hex_key": "3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e" + }, + "init_outputs": {} + }, + "crypto_rsa_decrypt_hex_00d0": { + "init_inputs": { + "hex_cipher": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "n": "12345678901234567890123456789012", + "d": "98765432109876543210987654321098" + }, + "init_outputs": {} + }, + "code_py_exec": { + "init_inputs": { + "code": "def test():\n return 42\nprint(test())" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The world ended seventy years ago, leaving only scorched earth and rusted metal behind. You are a scavenger deep inside what remains of a pre-war corporate bunker. The air is stale, thick with dust, and the silence is deafening. Rumor has it that this bunker holds a sealed vault containing clean water purifiers and untouched medical supplies—a treasure worth more than gold. To unlock the final extraction unit, you will need to power up broken systems, crack old-world encryption, and piece together the fractured machinery left by those who perished here. Time is running out before the radiation storm outside seals you in forever.", + "narrative_style": "post_apocalyptic" + }, + "nodes": [ + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "extracted_archive_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "False" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip", + "value": "XIV_XXVI_MMXXIV_SUM_MMLXIV" + } + ], + "init": { + "inputs": {}, + "outputs": { + "item": "XIV_XXVI_MMXXIV_SUM_MMLXIV" + } + }, + "narrative": "This is the vault extraction unit. It requires inputs from both the global banking scanner and the inner secure container to release the final supplies." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "Partial input recognized. Awaiting further data." + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "False" + } + ], + "narrative": "This is the global banking scanner. It requires input from the bunker sublevel console to process the old world credentials." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "confidential_document.pdf" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "{0IyK" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_archive_data.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_archive_data.zip" + } + }, + "narrative": "This is the inner secure container. It requires inputs from both the middle secure container and the backup decryption relay to unseal." + }, + { + "id": "zip_unzip_file_06fd", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "payload_content.bin" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "v\u001f1" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "confidential_document.pdf" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "confidential_document.pdf" + } + }, + "narrative": "This is the middle secure container. It requires inputs from both the main decryption relay and the outer secure container to access the next layer." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "deadbeef1234567890abcdef" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": 2162732236 + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "49201948572910394857201938475638" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "v\u001f1" + } + ], + "init": { + "inputs": { + "d": "49201948572910394857201938475638" + }, + "outputs": {} + }, + "narrative": "This is the main decryption relay. It requires inputs from both the overseer terminal and the data integrity verifier to decipher the codes." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "42\n" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "31734545790519645636880774871824405292155326696386560" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "System initialization completed successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeef1234567890abcdef" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "this item has no functional value here" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "System initialization completed successfully.", + "hex_output": "deadbeef1234567890abcdef", + "item_dispenser": "this item has no functional value here" + } + }, + "narrative": "This is the overseer terminal. It requires inputs from both the heavy computation rig and the salvaged mainframe to grant access." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "50002" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "634665529189225343723866542774777114758516193280" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "31734545790519645636880774871824405292155326696386560" + } + ], + "narrative": "This is the heavy computation rig. It requires inputs from both the quantum reverser and the scrap-built multiplier to process the massive numbers." + }, + { + "id": "zip_unzip_file_d084", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "source_package_v2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Partial input recognized. Awaiting further data." + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "payload_content.bin" + } + ], + "init": { + "inputs": { + "zip_id": "source_package_v2.zip" + }, + "outputs": { + "files": "payload_content.bin" + } + }, + "narrative": "This is the outer secure container. It requires input from the bunker sublevel console to initiate the first stage of unsealing." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A rusted keycard found in the ashes. It looks like it still holds some magnetic charge." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "2" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "100003" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "50002" + } + ], + "init": { + "inputs": { + "mod": "100003" + }, + "outputs": {} + }, + "narrative": "This is the quantum reverser. It requires input from the harmonic analyzer to invert the signal." + }, + { + "id": "item_8_482f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A scavenged battery wrapped in duct tape. Might still provide a spark." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "69c4e7606ab20d9d690ef59f608c7cc50b2e6ec27a0505a6c96498c22eaf4d8d" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "80e8accc" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2162732236 + } + ], + "narrative": "This is the data integrity verifier. It requires input from the cryptographic stamper to validate the corrupted files." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "982746102938475619283746" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "102938475618293847561920" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "2" + } + ], + "init": { + "inputs": { + "a": "982746102938475619283746", + "b": "102938475618293847561920" + }, + "outputs": {} + }, + "narrative": "An old piece of military tech modified into a harmonic analyzer." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "503928471628394051627384" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "634665529189225343723866542774777114758516193280" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial input recognized. Awaiting further data." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "just a meaningless token for testing" + } + ], + "init": { + "inputs": { + "num1": "503928471628394051627384" + }, + "outputs": { + "text_result": "Partial input recognized. Awaiting further data.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d", + "math_token": "just a meaningless token for testing" + } + }, + "narrative": "This is the bunker sublevel console. It requires input from the scrap-built multiplier to boot up properly." + }, + { + "id": "calc_bigmul_819b", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "738495029384756192837465" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "859403928172635485960192" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "634665529189225343723866542774777114758516193280" + } + ], + "init": { + "inputs": { + "a": "738495029384756192837465", + "b": "859403928172635485960192" + }, + "outputs": {} + }, + "narrative": "A scrap-built multiplier cobbled together from old server parts." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "Partial input recognized. Awaiting further data." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "69c4e7606ab20d9d690ef59f608c7cc50b2e6ec27a0505a6c96498c22eaf4d8d" + } + ], + "init": { + "inputs": { + "hex_key": "3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e" + }, + "outputs": {} + }, + "narrative": "This is the cryptographic stamper. It requires input from the bunker sublevel console to generate a valid signature." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A dirt-caked lockbox buried under the rubble. The hinges are rusted shut." + }, + { + "id": "item_8_96a8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A depleted energy cell lying in the dust. It might be rechargeable." + }, + { + "id": "crypto_rsa_decrypt_hex_00d0", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "a1b2c3d4e5f60718293a4b5c6d7e8f90" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "12345678901234567890123456789012" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "98765432109876543210987654321098" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "{0IyK" + } + ], + "init": { + "inputs": { + "hex_cipher": "a1b2c3d4e5f60718293a4b5c6d7e8f90", + "n": "12345678901234567890123456789012", + "d": "98765432109876543210987654321098" + }, + "outputs": {} + }, + "narrative": "A backup decryption relay hidden behind some loose panels." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def test():\n return 42\nprint(test())" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "42\n" + } + ], + "init": { + "inputs": { + "code": "def test():\n return 42\nprint(test())" + }, + "outputs": {} + }, + "narrative": "A salvaged mainframe with a cracked monitor, waiting for instructions." + } + ], + "edges": [ + { + "source_id": "iban_validate", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_06fd", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "zip_unzip_file_06fd", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "terminal_1", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex_cipher" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "slot_b" + }, + { + "source_id": "zip_unzip_file_d084", + "target_id": "zip_unzip_file_06fd", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_8", + "target_id": "zip_unzip_file_d084", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "item_8_482f", + "target_id": "calc_bigmul", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "checksum_crc32", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "n" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "terminal_2", + "target_id": "zip_unzip_file_d084", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "password" + }, + { + "source_id": "calc_bigmul_819b", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num2" + }, + { + "source_id": "hmac_sha256", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_bigmul_819b", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "terminal_2", + "target_id": "iban_validate", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "iban" + }, + { + "source_id": "terminal_2", + "target_id": "hmac_sha256", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "item_16", + "target_id": "item_8_482f", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_96a8", + "target_id": "checksum_crc32", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "crypto_rsa_decrypt_hex_00d0", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "code_py_exec", + "target_id": "terminal_1", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "slot_a" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_81423b2e_narrative.json b/data/questions/20/narrative/skeleton_81423b2e_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..a43b80ac179186726a8719859ad4760bd05a4014 --- /dev/null +++ b/data/questions/20/narrative/skeleton_81423b2e_narrative.json @@ -0,0 +1,1149 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 20, + "win_node_id": "item_8", + "win_condition": { + "type": "item_content", + "node_id": "item_8", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_8", + "container_4", + "zip_unzip_file", + "code_py_exec", + "zip_unzip_file_12a6", + "zip_unzip_file_98ef", + "csv_query", + "terminal_2", + "zip_unzip_file_1fe1", + "zip_unzip_file_c45f", + "text_rotN", + "luhn_check" + ], + "by_node": { + "item_8": { + "node_name": "", + "node_type": "Item", + "template_id": "item_8", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hidden_Item", + "description": "The integer" + } + } + }, + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": { + "fingerprint_input": { + "type": "Text_Generic", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "code_py_exec": { + "node_name": "Python Executor", + "node_type": "Tool", + "template_id": "code_py_exec", + "init_inputs": { + "code": { + "type": "Code_Python", + "description": "Python code" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_12a6": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_98ef": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "csv_query": { + "node_name": "CSV Query", + "node_type": "Tool", + "template_id": "csv_query", + "init_inputs": { + "select": { + "type": "Text_Generic", + "description": "Columns to select" + } + }, + "init_outputs": { + "rows": { + "type": "Text_Generic", + "description": "Result rows" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "zip_unzip_file_1fe1": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_c45f": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "n": { + "type": "Big_Int", + "description": "Shift N" + } + }, + "init_outputs": {} + }, + "luhn_check": { + "node_name": "Luhn Checker", + "node_type": "Tool", + "template_id": "luhn_check", + "init_inputs": { + "number": { + "type": "Text_Generic", + "description": "Number string" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "item_8": { + "init_inputs": {}, + "init_outputs": { + "content": ".tfel eht si yek eht ,thgir eht si yek eht" + } + }, + "container_4": { + "init_inputs": { + "fingerprint_input": "0xABCDEF1234567890HASH" + }, + "init_outputs": {} + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "dataset_main_extract.csv" + } + }, + "code_py_exec": { + "init_inputs": { + "code": "import math\nprint('Computed value:', math.pi)" + }, + "init_outputs": {} + }, + "zip_unzip_file_12a6": { + "init_inputs": {}, + "init_outputs": { + "files": "config_override_12a6.json" + } + }, + "zip_unzip_file_98ef": { + "init_inputs": { + "zip_id": "archive_bundle_98ef.zip" + }, + "init_outputs": { + "files": "temp_results_98ef.txt" + } + }, + "csv_query": { + "init_inputs": { + "select": "first_name, last_name, email" + }, + "init_outputs": { + "rows": "[\"Alice, Smith, a@s.com\", \"Bob, Jones, b@j.com\", \"Carol, White, c@w.com\", \"Dave, Brown, d@b.com\"]" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "38475910283746591023", + "num2": "57384910293847561029" + }, + "init_outputs": { + "text_result": "Initial partial computation is successfully evaluated.", + "hex_result": "112233445566778899aabbccddeeff00" + } + }, + "zip_unzip_file_1fe1": { + "init_inputs": { + "password": "super_secret_password_1fe1" + }, + "init_outputs": { + "files": "financial_report_1fe1.xlsx" + } + }, + "zip_unzip_file_c45f": { + "init_inputs": { + "zip_id": "secure_backup_c45f.zip", + "password": "complex_secure_pwd_c45f" + }, + "init_outputs": { + "files": "source_code_c45f.tar.gz" + } + }, + "text_rotN": { + "init_inputs": { + "text": "Secret message requiring ROT shift", + "n": "19283746501928374650" + }, + "init_outputs": {} + }, + "luhn_check": { + "init_inputs": { + "number": "79927398713" + }, + "init_outputs": {} + } + }, + "intro_narrative": "The dimly lit private office of the late CEO is a chaotic mess of scattered files, broken electronics, and hidden compartments. You are Detective Miller, tasked with unraveling a web of corporate fraud that ultimately led to cold-blooded murder. The definitive proof you need is hidden within the master ledger, but uncovering it requires piecing together a complex trail of heavily encrypted data. You'll need to utilize an array of forensic tools, old cryptographic devices, and raw deductive reasoning to connect the digital breadcrumbs. The clock is ticking before the company's cleanup crew arrives to scrub the room. Examine the scattered devices, figure out how they connect, and expose the truth.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer", + "value": ".tfel eht si yek eht ,thgir eht si yek eht" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": ".tfel eht si yek eht ,thgir eht si yek eht" + } + }, + "narrative": "The Master Ledger. A critical piece of evidence detailing the final, illicit transactions that led to the murder." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "Suspect's Wristwatch. An expensive, gold-plated watch belonging to the prime suspect in the investigation." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "0xABCDEF1234567890HASH" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "0xABCDEF1234567890HASH" + }, + "outputs": {} + }, + "narrative": "Biometric Safe. A heavy steel safe secured by a high-tech fingerprint scanner." + }, + { + "id": "item_16_ae78", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "Victim's Pocket Watch. A shattered silver pocket watch found right next to the body." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "dataset_main_extract.csv" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "false" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "narrative": "This is the Final Evidence Extractor. It requires inputs from both the Classified Archive Tool and the Credit Card Verifier." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "config_override_12a6.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Computed value: 3.141592653589793\n" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "dataset_main_extract.csv" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "dataset_main_extract.csv" + } + }, + "narrative": "This is a Classified Archive Tool. It requires inputs from both the Hacker's Laptop and the Encrypted Log Decoder." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "import math\nprint('Computed value:', math.pi)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Computed value: 3.141592653589793\n" + } + ], + "init": { + "inputs": { + "code": "import math\nprint('Computed value:', math.pi)" + }, + "outputs": {} + }, + "narrative": "Hacker's Laptop. A ruggedized computer equipped with advanced scripting software and bypass tools." + }, + { + "id": "item_8_7041", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Dusty Folder. A forgotten manila folder containing several blurry surveillance photographs." + }, + { + "id": "zip_unzip_file_12a6", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "temp_results_98ef.txt" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"Alice, Smith, a@s.com\", \"Bob, Jones, b@j.com\", \"Carol, White, c@w.com\", \"Dave, Brown, d@b.com\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "config_override_12a6.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "config_override_12a6.json" + } + }, + "narrative": "This is an Encrypted Log Decoder. It requires inputs from both the Financial Archive Extractor and the Database Search Terminal." + }, + { + "id": "zip_unzip_file_98ef", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_bundle_98ef.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"Alice, Smith, a@s.com\", \"Bob, Jones, b@j.com\", \"Carol, White, c@w.com\", \"Dave, Brown, d@b.com\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "temp_results_98ef.txt" + } + ], + "init": { + "inputs": { + "zip_id": "archive_bundle_98ef.zip" + }, + "outputs": { + "files": "temp_results_98ef.txt" + } + }, + "narrative": "This is a Financial Archive Extractor. It requires input from the Database Search Terminal." + }, + { + "id": "csv_query", + "name": "CSV Query", + "description": "Query CSV: select columns and simple WHERE.", + "type": "Tool", + "template_id": "csv_query", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "CSV file ID", + "value": "financial_report_1fe1.xlsx" + }, + { + "name": "select", + "type": "Text_Generic", + "description": "Columns to select", + "value": "first_name, last_name, email" + }, + { + "name": "where", + "type": "Text_Generic", + "description": "Where clause", + "value": "Ugetgv oguucig tgswktkpi TQV ujkhv" + } + ], + "outputs": [ + { + "name": "rows", + "type": "Text_Generic", + "description": "Result rows", + "value": "[\"Alice, Smith, a@s.com\", \"Bob, Jones, b@j.com\", \"Carol, White, c@w.com\", \"Dave, Brown, d@b.com\"]" + } + ], + "init": { + "inputs": { + "select": "first_name, last_name, email" + }, + "outputs": { + "rows": "[\"Alice, Smith, a@s.com\", \"Bob, Jones, b@j.com\", \"Carol, White, c@w.com\", \"Dave, Brown, d@b.com\"]" + } + }, + "narrative": "This is a Database Search Terminal. It requires inputs from both the Email Backup Extractor and the Vintage Decoder Ring." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "38475910283746591023" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "57384910293847561029" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Initial partial computation is successfully evaluated." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "112233445566778899aabbccddeeff00" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "38475910283746591023", + "num2": "57384910293847561029" + }, + "outputs": { + "text_result": "Initial partial computation is successfully evaluated.", + "hex_result": "112233445566778899aabbccddeeff00" + } + }, + "narrative": "Math Co-processor. An old arithmetic unit used to crunch heavy numerical calculations." + }, + { + "id": "item_8_70fb", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Torn Receipt. A crumpled piece of paper showing a partial transaction from the night of the crime." + }, + { + "id": "item_8_cc4b", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Polaroid Photo. An instant photograph showing a secret alleyway meeting between two unknown figures." + }, + { + "id": "zip_unzip_file_1fe1", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "source_code_c45f.tar.gz" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "super_secret_password_1fe1" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "financial_report_1fe1.xlsx" + } + ], + "init": { + "inputs": { + "password": "super_secret_password_1fe1" + }, + "outputs": { + "files": "financial_report_1fe1.xlsx" + } + }, + "narrative": "This is an Email Backup Extractor. It requires input from the Phone Dump Analyzer." + }, + { + "id": "zip_unzip_file_c45f", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_backup_c45f.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "complex_secure_pwd_c45f" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "source_code_c45f.tar.gz" + } + ], + "init": { + "inputs": { + "zip_id": "secure_backup_c45f.zip", + "password": "complex_secure_pwd_c45f" + }, + "outputs": { + "files": "source_code_c45f.tar.gz" + } + }, + "narrative": "Phone Dump Analyzer. A specialized forensic workstation used to rip data from mobile devices." + }, + { + "id": "item_8_5c20", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Scrap of Paper. A small note covered in hasty, panicked handwriting." + }, + { + "id": "item_8_6409", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Burner Phone. A cheap prepaid mobile phone with no caller ID and a cracked screen." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Secret message requiring ROT shift" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "19283746501928374650" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Ugetgv oguucig tgswktkpi TQV ujkhv" + } + ], + "init": { + "inputs": { + "text": "Secret message requiring ROT shift", + "n": "19283746501928374650" + }, + "outputs": {} + }, + "narrative": "Vintage Decoder Ring. A classic cryptographic toy that shifts letters to obscure secret messages." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "79927398713" + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "init": { + "inputs": { + "number": "79927398713" + }, + "outputs": {} + }, + "narrative": "Credit Card Verifier. A specialized terminal used strictly to validate financial account numbers." + } + ], + "edges": [ + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_4", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_16_ae78", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "zip_unzip_item", + "target_id": "item_16_ae78", + "connection_type": "Item", + "source_port": "item", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_file", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "code_py_exec", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "password" + }, + { + "source_id": "item_8_7041", + "target_id": "zip_unzip_file", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zip_unzip_file_12a6", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "zip_unzip_file_98ef", + "target_id": "zip_unzip_file_12a6", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "csv_query", + "target_id": "zip_unzip_file_98ef", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "password" + }, + { + "source_id": "terminal_2", + "target_id": "zip_unzip_file_98ef", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "csv_query", + "target_id": "zip_unzip_file_12a6", + "connection_type": "Text_Generic", + "source_port": "rows", + "target_port": "password" + }, + { + "source_id": "item_8_70fb", + "target_id": "csv_query", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "item_8_cc4b", + "target_id": "item_8_7041", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_file_1fe1", + "target_id": "csv_query", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_c45f", + "target_id": "zip_unzip_file_1fe1", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_8_5c20", + "target_id": "item_8_cc4b", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_6409", + "target_id": "zip_unzip_file_c45f", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "text_rotN", + "target_id": "csv_query", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "where" + }, + { + "source_id": "luhn_check", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "valid", + "target_port": "password" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_8775d3bb_narrative.json b/data/questions/20/narrative/skeleton_8775d3bb_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..091b1f04a1743b1c485b2ad0dfc1a736ef00421b --- /dev/null +++ b/data/questions/20/narrative/skeleton_8775d3bb_narrative.json @@ -0,0 +1,1227 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 25, + "win_node_id": "hash_md5", + "win_condition": { + "type": "tool_output", + "node_id": "hash_md5", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute MD5 Hasher and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "terminal_2", + "calc_inv_mod", + "num_base_convert", + "container_3", + "num_base_convert_ea4b", + "calc_modexp", + "num_base_convert_d09e", + "terminal_1_7344", + "item_12" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + } + }, + "init_outputs": {} + }, + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": { + "fingerprint_input": { + "type": "Big_Int", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "num_base_convert_ea4b": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "num_base_convert_d09e": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "terminal_1_7344": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "item_12": { + "node_name": "", + "node_type": "Item", + "template_id": "item_12", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hex_String", + "description": "The hex code" + } + } + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": { + "slot_a": "System boot sequence initiated for terminal 1" + }, + "init_outputs": { + "text_output": "Diagnostics run completed with zero critical errors found.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "item_dispenser": "A completely useless token coin." + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Partial input processed successfully waiting for stream.", + "hex_result": "deadbeef1234567890abcdef12345678" + } + }, + "calc_inv_mod": { + "init_inputs": { + "mod": "541097" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "s": "73948572638194758264319857", + "from_base": "16" + }, + "init_outputs": {} + }, + "container_3": { + "init_inputs": { + "fingerprint_input": "102938475610293847562039485" + }, + "init_outputs": {} + }, + "num_base_convert_ea4b": { + "init_inputs": { + "from_base": "32", + "to_base": "10" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "8", + "mod": "997331" + }, + "init_outputs": {} + }, + "num_base_convert_d09e": { + "init_inputs": { + "s": "847261937465028475619374", + "to_base": "16" + }, + "init_outputs": {} + }, + "terminal_1_7344": { + "init_inputs": { + "slot_a": "Backup terminal activation string parameter alpha", + "slot_b": "5638291047582930485761029" + }, + "init_outputs": { + "text_output": "Backup terminal output generated from slot parameters.", + "hex_output": "bbccdd11223344556677889900aabbcc" + } + }, + "item_12": { + "init_inputs": {}, + "init_outputs": { + "content": "aa55aa55aa55aa55aa55aa55aa55aa55" + } + } + }, + "intro_narrative": "You awaken in a sterile, dimly lit subterranean server room. The hum of cooling fans is the only sound, masking the deafening reality: you are trapped inside the core data facility of the secretive Syndicate. A rogue AI has locked down the compound and initiated a complete data purge. Your only chance of escape is to authenticate yourself as a high-tier administrator by producing the final override clearance. The systems here are fragmented, forcing you to link various hardware modules, decrypt old cipher drives, and bypass biometric security to reconstruct the system's master key. The blast doors are sealed, and the purge countdown has begun. Time is running out.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "q(~" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "c630a7fac4b86c9cfe9459aac34391a4" + } + ], + "narrative": "This is the Final Verifier. It requires input from the Master Decryption Engine to generate the ultimate lockdown override code." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "446961676e6f73746963732072756e20636f6d706c657465642077697468207a65726f20637269746963616c206572726f727320666f756e642e" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": 2306118487 + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "1" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "q(~" + } + ], + "narrative": "This is the Master Decryption Engine. It requires inputs from the Cryptographic Combiner, the Signal Converter, and the Integrity Analyzer to break the core firewall." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "464590" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "7893814753701" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the Cryptographic Combiner. It requires inputs from both the Primary Inversion Module and the Secondary Inversion Module to find their common denominator." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Diagnostics run completed with zero critical errors found." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "446961676e6f73746963732072756e20636f6d706c657465642077697468207a65726f20637269746963616c206572726f727320666f756e642e" + } + ], + "narrative": "This is the Signal Converter. It requires input from the Alpha Terminal to encode the plain text into a machine-readable format." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "deadbeef1234567890abcdef12345678" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "89749357" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2306118487 + } + ], + "narrative": "This is the Integrity Analyzer. It requires input from the Beta Terminal to ensure the data sequence is not corrupted." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "System boot sequence initiated for terminal 1" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": 1649495039 + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Diagnostics run completed with zero critical errors found." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A completely useless token coin." + } + ], + "init": { + "inputs": { + "slot_a": "System boot sequence initiated for terminal 1" + }, + "outputs": { + "text_output": "Diagnostics run completed with zero critical errors found.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "item_dispenser": "A completely useless token coin." + } + }, + "narrative": "This is the Alpha Terminal. It requires input from the Secondary Integrity Scanner to initialize its display module." + }, + { + "id": "checksum_crc32_f1e9", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "7e9aecf1" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "62514bff" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 1649495039 + } + ], + "narrative": "This is the Secondary Integrity Scanner. It requires input from the Primary Integrity Scanner to complete the dual-pass security check." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "212092" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "73948572638194758264319857" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial input processed successfully waiting for stream." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "deadbeef1234567890abcdef12345678" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Partial input processed successfully waiting for stream.", + "hex_result": "deadbeef1234567890abcdef12345678" + } + }, + "narrative": "This is the Beta Terminal. It requires inputs from both the Protocol Translator and the Exponential Calculator to process its final sequence." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "7893814753701" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "541097" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "464590" + } + ], + "init": { + "inputs": { + "mod": "541097" + }, + "outputs": {} + }, + "narrative": "This is the Primary Inversion Module. It requires input from the Secondary Inversion Module to finalize the mathematical reversal." + }, + { + "id": "calc_inv_mod_7ef6", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "847261937465028475619374" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "71541278707751" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "7893814753701" + } + ], + "narrative": "This is the Secondary Inversion Module. It requires inputs from both the Alpha Translator and the Beta Translator to calculate the structural inversion." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "73948572638194758264319857" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": 1649495039 + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "73948572638194758264319857" + } + ], + "init": { + "inputs": { + "s": "73948572638194758264319857", + "from_base": "16" + }, + "outputs": {} + }, + "narrative": "This is the Protocol Translator. It requires input from the Secondary Integrity Scanner to interpret the low-level data streams." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A classified document containing a list of international time zones and offset codes." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "102938475610293847562039485" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "102938475610293847562039485" + }, + "outputs": {} + }, + "narrative": "A reinforced biometric safe built heavily into the concrete wall." + }, + { + "id": "num_base_convert_ea4b", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": 2124082417 + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "32" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "71541278707751" + } + ], + "init": { + "inputs": { + "from_base": "32", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the Alpha Translator. It requires input from the Primary Integrity Scanner to shift its data frequencies." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "8" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "847261937465028475619374" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "997331" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "212092" + } + ], + "init": { + "inputs": { + "base": "8", + "mod": "997331" + }, + "outputs": {} + }, + "narrative": "This is the Exponential Calculator. It requires input from the Beta Translator to amplify the numerical sequence." + }, + { + "id": "num_base_convert_d09e", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "847261937465028475619374" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "71541278707751" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "16" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "847261937465028475619374" + } + ], + "init": { + "inputs": { + "s": "847261937465028475619374", + "to_base": "16" + }, + "outputs": {} + }, + "narrative": "This is the Beta Translator. It requires input from the Alpha Translator to complete the format transition." + }, + { + "id": "checksum_crc32_715b", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "aa55aa55aa55aa55aa55aa55aa55aa55" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "7e9aecf1" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2124082417 + } + ], + "narrative": "This is the Primary Integrity Scanner. It requires input from the Encrypted Hex Drive to verify its structural data." + }, + { + "id": "item_16_d9d4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "A hidden digital folder containing obscure timezone references." + }, + { + "id": "terminal_1_7344", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Backup terminal activation string parameter alpha" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "5638291047582930485761029" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Backup terminal output generated from slot parameters." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "bbccdd11223344556677889900aabbcc" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Backup terminal activation string parameter alpha", + "slot_b": "5638291047582930485761029" + }, + "outputs": { + "text_output": "Backup terminal output generated from slot parameters.", + "hex_output": "bbccdd11223344556677889900aabbcc" + } + }, + "narrative": "A heavy-duty offline command console labeled 'Gamma'." + }, + { + "id": "item_12", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_12", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hex_String", + "description": "The hex code", + "value": "aa55aa55aa55aa55aa55aa55aa55aa55" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "aa55aa55aa55aa55aa55aa55aa55aa55" + } + }, + "narrative": "A small encrypted USB drive left carelessly on a server rack." + } + ], + "edges": [ + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "calc_gcd", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "d" + }, + { + "source_id": "hex_encode", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_cipher" + }, + { + "source_id": "checksum_crc32", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "n" + }, + { + "source_id": "terminal_1", + "target_id": "hex_encode", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "text" + }, + { + "source_id": "checksum_crc32_f1e9", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "slot_b" + }, + { + "source_id": "terminal_2", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "hex" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod_7ef6", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "num_base_convert", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "num2" + }, + { + "source_id": "item_16", + "target_id": "num_base_convert", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "container_3", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32_f1e9", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "to_base" + }, + { + "source_id": "num_base_convert_ea4b", + "target_id": "calc_inv_mod_7ef6", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "mod" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num1" + }, + { + "source_id": "num_base_convert_d09e", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "exp" + }, + { + "source_id": "checksum_crc32_715b", + "target_id": "num_base_convert_ea4b", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "s" + }, + { + "source_id": "terminal_2", + "target_id": "hex_encode", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "checksum_crc32_715b", + "target_id": "checksum_crc32_f1e9", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "num_base_convert_d09e", + "target_id": "calc_inv_mod_7ef6", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "a" + }, + { + "source_id": "item_16_d9d4", + "target_id": "num_base_convert_d09e", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "num_base_convert_ea4b", + "target_id": "num_base_convert_d09e", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "from_base" + }, + { + "source_id": "terminal_1_7344", + "target_id": "calc_inv_mod_7ef6", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "calc_inv_mod_7ef6", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "b" + }, + { + "source_id": "item_12", + "target_id": "checksum_crc32_715b", + "connection_type": "Hex_String", + "source_port": "content", + "target_port": "hex" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_9346c9bc_narrative.json b/data/questions/20/narrative/skeleton_9346c9bc_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..bd36d879af830c28e3dfb7f724bdda129e71f370 --- /dev/null +++ b/data/questions/20/narrative/skeleton_9346c9bc_narrative.json @@ -0,0 +1,1284 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 23, + "win_node_id": "terminal_2", + "win_condition": { + "type": "tool_output", + "node_id": "terminal_2", + "output_port": "text_result", + "output_type": "Text_Generic", + "description": "Execute and get the output from port 'text_result'" + }, + "source_init": { + "source_nodes": [ + "terminal_2", + "graph_shortest_path", + "zip_unzip_file", + "graph_shortest_path_644b", + "hex_encode", + "zip_unzip_file_cb0c", + "terminal_1", + "hex_decode", + "zip_unzip_file_0386", + "calc_modexp_6047", + "code_py_exec", + "num_base_convert", + "item_4" + ], + "by_node": { + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "graph_shortest_path_644b": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "hex_encode": { + "node_name": "Text to Hex Encoder", + "node_type": "Tool", + "template_id": "hex_encode", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_cb0c": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "hex_decode": { + "node_name": "Hex to Text Decoder", + "node_type": "Tool", + "template_id": "hex_decode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex string" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_0386": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "calc_modexp_6047": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "code_py_exec": { + "node_name": "Python Executor", + "node_type": "Tool", + "template_id": "code_py_exec", + "init_inputs": { + "code": { + "type": "Code_Python", + "description": "Python code" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "from_base": { + "type": "Big_Int", + "description": "From base" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + } + } + }, + "initial_values": { + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "WhenTheRavenFliesAtMidnightTheKeyAppearsInShadow", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f", + "math_token": "Nyx_Erebus_Thanatos_Hypnos_Aether" + } + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Alpha", + "dst": "Node_Omega" + }, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Omega\"]", + "cost": "582390" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_data_1.zip" + } + }, + "graph_shortest_path_644b": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]", + "cost": "124890" + } + }, + "hex_encode": { + "init_inputs": { + "text": "Encode this text into hexadecimal format, please." + }, + "init_outputs": {} + }, + "zip_unzip_file_cb0c": { + "init_inputs": { + "zip_id": "encrypted_archive.zip" + }, + "init_outputs": { + "files": "unpacked_contents.tar" + } + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Hello from terminal 1!", + "slot_b": "4823947501928374659210" + }, + "init_outputs": { + "text_output": "Terminal 1 has computed the output text perfectly.", + "hex_output": "aabbccddeeff00112233", + "item_dispenser": "A completely useless item dispensed just to mock you." + } + }, + "hex_decode": { + "init_inputs": { + "hex": "48656c6c6f20576f726c64" + }, + "init_outputs": {} + }, + "zip_unzip_file_0386": { + "init_inputs": { + "password": "SuperSecretP@ssw0rd!" + }, + "init_outputs": { + "files": "final_secrets.zip" + } + }, + "calc_modexp_6047": { + "init_inputs": { + "exp": "192837465019283746501" + }, + "init_outputs": {} + }, + "code_py_exec": { + "init_inputs": { + "code": "print('Hello from the secure Python executor!')\nres = 42" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "s": "8472910384756291047582", + "from_base": "16", + "to_base": "10" + }, + "init_outputs": {} + }, + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "mysterious_bundle.zip" + } + } + }, + "intro_narrative": "You awaken in the ruins of the Astral Sanctuary, a mystical realm where the boundaries of magic and logic intertwine. The air is thick with ancient arcane energy, and before you lies the Grand Gate, the only way back to the mortal world. For centuries, archmages sought to seal a dark entity here, leaving behind complex mystical artifacts to ensure only the worthy could operate the sanctuary's mechanisms.\n\nTo open the gate, you must navigate a web of enchanted objects—from whispering stones and sealed grimoires to burning crucibles. Each relic holds a piece of the grand puzzle, waiting for the right magical spark to awaken. However, the path is not linear. You must carefully explore the chambers, uncover dormant tools, and channel the energies between them. The stars align above, casting a celestial glow upon the mysterious pedestals and altars scattered around you. Can you decipher the flow of magic, connect the ancient relics, and unlock the final barrier before the sanctuary collapses into the void? Your journey into the arcane begins now.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "36" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "582390" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "WhenTheRavenFliesAtMidnightTheKeyAppearsInShadow" + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "Nyx_Erebus_Thanatos_Hypnos_Aether" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "WhenTheRavenFliesAtMidnightTheKeyAppearsInShadow", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f", + "math_token": "Nyx_Erebus_Thanatos_Hypnos_Aether" + } + }, + "narrative": "The Grand Gate. The final barrier. It requires inputs from both the Altar of Resonance and the Moonlit Mirror to finally open." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "73692" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "23328" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "36" + } + ], + "narrative": "The Altar of Resonance. A stone altar humming with power. It requires inputs from the Crimson Crucible and the Azure Crucible." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": 4680840 + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "124890" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "73692" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "23328" + } + ], + "narrative": "The Crimson Crucible. A vessel of red flames. It requires inputs from the Star Chart, the Soul Scales, and the Azure Crucible." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "582390" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "124890" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "582390" + } + ], + "narrative": "The Moonlit Mirror. A reflective surface of liquid silver. It requires inputs from the Leyline Navigator and the Star Chart." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_1.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_Omega" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "582390" + } + ], + "init": { + "inputs": { + "src": "Node_Alpha", + "dst": "Node_Omega" + }, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Epsilon\", \"Node_Omega\"]", + "cost": "582390" + } + }, + "narrative": "The Leyline Navigator. A brass compass. It needs input from the Sealed Grimoire to reveal safe passages." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "unpacked_contents.tar" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_1.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_data_1.zip" + } + }, + "narrative": "The Sealed Grimoire. An ancient tome wrapped in chains. It requires inputs from the Purification Font and the Crystal Archive." + }, + { + "id": "graph_shortest_path_644b", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "final_secrets.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Terminal 1 has computed the output text perfectly." + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Hello from the secure Python executor!\n" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "124890" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]", + "cost": "124890" + } + }, + "narrative": "The Star Chart. An intricate celestial map. It requires inputs from the Oracle Pedestal, the Void Chest, and the Summoner's Circle." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "456e636f64652074686973207465787420696e746f2068657861646563696d616c20666f726d61742c20706c656173652e" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "00476c88" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 4680840 + } + ], + "narrative": "The Soul Scales. A golden set of scales. It requires input from the Runic Translator to weigh the magical essence." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Encode this text into hexadecimal format, please." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "456e636f64652074686973207465787420696e746f2068657861646563696d616c20666f726d61742c20706c656173652e" + } + ], + "init": { + "inputs": { + "text": "Encode this text into hexadecimal format, please." + }, + "outputs": {} + }, + "narrative": "The Runic Translator. An ancient translation table engraved with glowing runes." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A Hidden Gem. A faintly glowing emerald vibrating with dormant magical energy." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "[\"Node_A\", \"Node_B\", \"Node_C\", \"Node_D\", \"Node_E\"]" + } + ], + "narrative": "The Purification Font. A basin of holy water. It processes data from the Star Chart to cleanse corruption." + }, + { + "id": "zip_unzip_file_cb0c", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_archive.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Hello World" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "unpacked_contents.tar" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_archive.zip" + }, + "outputs": { + "files": "unpacked_contents.tar" + } + }, + "narrative": "The Crystal Archive. A magical crystalline storage. It requires input from the Whispering Stone to unlock." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Hello from terminal 1!" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "4823947501928374659210" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal 1 has computed the output text perfectly." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "aabbccddeeff00112233" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A completely useless item dispensed just to mock you." + } + ], + "init": { + "inputs": { + "slot_a": "Hello from terminal 1!", + "slot_b": "4823947501928374659210" + }, + "outputs": { + "text_output": "Terminal 1 has computed the output text perfectly.", + "hex_output": "aabbccddeeff00112233", + "item_dispenser": "A completely useless item dispensed just to mock you." + } + }, + "narrative": "The Oracle Pedestal. A mysterious marble pedestal that grants visions when activated." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "48656c6c6f20576f726c64" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "Hello World" + } + ], + "init": { + "inputs": { + "hex": "48656c6c6f20576f726c64" + }, + "outputs": {} + }, + "narrative": "The Whispering Stone. A smooth, dark stone that murmurs forgotten secrets." + }, + { + "id": "zip_unzip_file_0386", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "mysterious_bundle.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretP@ssw0rd!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "final_secrets.zip" + } + ], + "init": { + "inputs": { + "password": "SuperSecretP@ssw0rd!" + }, + "outputs": { + "files": "final_secrets.zip" + } + }, + "narrative": "The Void Chest. A shadowy wooden chest. It requires input from the Forgotten Pouch to materialize its contents." + }, + { + "id": "calc_modexp_6047", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "160119232999525423740384642" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "192837465019283746501" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "124890" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "73692" + } + ], + "init": { + "inputs": { + "exp": "192837465019283746501" + }, + "outputs": {} + }, + "narrative": "The Azure Crucible. A vessel of blue flames. It requires inputs from the Elemental Forge and the Star Chart." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "print('Hello from the secure Python executor!')\nres = 42" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "Hello from the secure Python executor!\n" + } + ], + "init": { + "inputs": { + "code": "print('Hello from the secure Python executor!')\nres = 42" + }, + "outputs": {} + }, + "narrative": "The Summoner's Circle. A chalk circle on the floor designed to invoke lesser spirits." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "8472910384756291047582" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "16" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "160119232999525423740384642" + } + ], + "init": { + "inputs": { + "s": "8472910384756291047582", + "from_base": "16", + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "The Elemental Forge. A burning furnace used to transmute magical energies into pure power." + }, + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "mysterious_bundle.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "mysterious_bundle.zip" + } + }, + "narrative": "The Forgotten Pouch. A small leather pouch bound with enchanted silver thread." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Timepiece. An ornate silver pocket watch ticking with strange, irregular rhythms." + } + ], + "edges": [ + { + "source_id": "calc_gcd", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "num1" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "calc_inv_mod", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "num2" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "graph_shortest_path_644b", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path_644b", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "exp" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "base" + }, + { + "source_id": "hex_encode", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_8", + "target_id": "zip_unzip_file", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_cb0c", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "graph_shortest_path_644b", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "path", + "target_port": "text" + }, + { + "source_id": "terminal_1", + "target_id": "graph_shortest_path_644b", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "src" + }, + { + "source_id": "hex_decode", + "target_id": "zip_unzip_file_cb0c", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "zip_unzip_file_0386", + "target_id": "graph_shortest_path_644b", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "calc_modexp_6047", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "code_py_exec", + "target_id": "graph_shortest_path_644b", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "dst" + }, + { + "source_id": "calc_modexp_6047", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_modexp_6047", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "base" + }, + { + "source_id": "graph_shortest_path_644b", + "target_id": "calc_modexp_6047", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "item_4", + "target_id": "zip_unzip_file_0386", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + }, + { + "source_id": "item_16", + "target_id": "item_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_9bc0c8bf_narrative.json b/data/questions/20/narrative/skeleton_9bc0c8bf_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..fb7e58774d115171134f3e3f3d1ccbba8e11053a --- /dev/null +++ b/data/questions/20/narrative/skeleton_9bc0c8bf_narrative.json @@ -0,0 +1,1211 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 25, + "win_node_id": "calc_bigmul", + "win_condition": { + "type": "tool_output", + "node_id": "calc_bigmul", + "output_port": "product", + "output_type": "Big_Int", + "description": "Execute Big Number Multiplier and get the output from port 'product'" + }, + "source_init": { + "source_nodes": [ + "calc_bigmul", + "graph_shortest_path", + "zip_unzip_file", + "zip_unzip_file_2c41", + "checksum_crc32", + "calc_gcd", + "text_rotN", + "json_get", + "hex_encode", + "crypto_rsa_decrypt_hex", + "checksum_crc32_0b93", + "hex_decode", + "zip_unzip_file_ef40" + ], + "by_node": { + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_2c41": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First integer" + } + }, + "init_outputs": {} + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "n": { + "type": "Big_Int", + "description": "Shift N" + } + }, + "init_outputs": {} + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "JSON file ID" + } + }, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "hex_encode": { + "node_name": "Text to Hex Encoder", + "node_type": "Tool", + "template_id": "hex_encode", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "hex_cipher": { + "type": "Hex_String", + "description": "Ciphertext (Hex)" + }, + "d": { + "type": "Big_Int", + "description": "Private exponent d" + } + }, + "init_outputs": {} + }, + "checksum_crc32_0b93": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "hex_decode": { + "node_name": "Hex to Text Decoder", + "node_type": "Tool", + "template_id": "hex_decode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex string" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_ef40": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + } + } + }, + "initial_values": { + "calc_bigmul": { + "init_inputs": { + "b": "84729384758291029384" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"NodeA\", \"NodeB\", \"NodeC\", \"NodeD\", \"NodeE\", \"NodeF\", \"NodeG\"]", + "cost": "837492" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_data_1.zip" + } + }, + "zip_unzip_file_2c41": { + "init_inputs": {}, + "init_outputs": { + "files": "unzipped_content_2.zip" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "a": "948572938475829102938475" + }, + "init_outputs": {} + }, + "text_rotN": { + "init_inputs": { + "n": "84729384758392018274" + }, + "init_outputs": {} + }, + "json_get": { + "init_inputs": { + "file_id": "data_source_3.json" + }, + "init_outputs": { + "values": "[\"value1\", \"value2\", \"value3\", \"value4\", \"value5\"]" + } + }, + "hex_encode": { + "init_inputs": { + "text": "Initial text to be encoded into hexadecimal format." + }, + "init_outputs": {} + }, + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "hex_cipher": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "d": "38472938475829102938475620192837" + }, + "init_outputs": {} + }, + "checksum_crc32_0b93": { + "init_inputs": { + "hex": "99887766554433221100aabbccddeeff" + }, + "init_outputs": {} + }, + "hex_decode": { + "init_inputs": { + "hex": "68656c6c6f20776f726c6420686578206465636f6465" + }, + "init_outputs": {} + }, + "zip_unzip_file_ef40": { + "init_inputs": { + "zip_id": "protected_archive_4.zip", + "password": "SuperSecretPassword123!" + }, + "init_outputs": { + "files": "final_extracted_files_5.zip" + } + } + }, + "intro_narrative": "You awaken in the forgotten Sanctum of Eldoria, a mystical observatory suspended between the realms of mortals and the divine. The air is thick with ancient magic, and celestial dust settles on intricately carved stone pedestals. Centuries ago, the Archmages sealed a cataclysmic rift here, leaving behind a complex web of arcane mechanisms designed to test the worthiness of any who might seek to harness the Sanctum's true power. As the cosmic alignment nears, the seal begins to fracture, threatening to unleash chaos upon the world. Your objective is clear: you must reactivate the Sanctum's dormant magical network. By tracing the flow of ethereal energies and aligning the sacred artifacts, you can reignite the Final Ritual Altar and restore the seal before the astronomical convergence is complete. Beware, for magic is a precise art, and the order of the arcane forces is paramount. Your journey of deduction and discovery starts now.", + "narrative_style": "fantasy" + }, + "nodes": [ + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "386622913" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "84729384758291029384" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "32758321551948278682210675592" + } + ], + "init": { + "inputs": { + "b": "84729384758291029384" + }, + "outputs": {} + }, + "narrative": "This is the Final Ritual Altar. It requires input from the Astral Loom to execute the ultimate spell of restoration." + }, + { + "id": "calc_bigmul_f01c", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": 386622913 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "1" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "386622913" + } + ], + "narrative": "This is the Astral Loom. It requires inputs from the Aetheric Amplifier and the Runestone Evaluator to weave threads of raw power." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "0" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "837492" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1" + } + ], + "narrative": "This is the Aetheric Amplifier. It requires inputs from the Leyline Navigator, the Paradox Mirror, and the Harmony Balancer to magnify the spells." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_1.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "nkrru cuxrj nkd jkiujk" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "[\"value1\", \"value2\", \"value3\", \"value4\", \"value5\"]" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"NodeA\", \"NodeB\", \"NodeC\", \"NodeD\", \"NodeE\", \"NodeF\", \"NodeG\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "837492" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"NodeA\", \"NodeB\", \"NodeC\", \"NodeD\", \"NodeE\", \"NodeF\", \"NodeG\"]", + "cost": "837492" + } + }, + "narrative": "This is the Leyline Navigator. It requires inputs from the Ward-Locked Tome, the Spell Component Extractor, and the Shifting Glyph Wheel to chart a safe magical path." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "unzipped_content_2.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "nkrru cuxrj nkd jkiujk" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_1.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_data_1.zip" + } + }, + "narrative": "This is the Ward-Locked Tome. It requires inputs from the Bound Grimoire and the Shifting Glyph Wheel to open." + }, + { + "id": "zip_unzip_file_2c41", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "final_extracted_files_5.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "K\u0016S" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "unzipped_content_2.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "unzipped_content_2.zip" + } + }, + "narrative": "This is the Bound Grimoire. It requires inputs from the Arcane Decoder and the Sealed Magic Scroll to reveal its hidden pages." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "170b65c1" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 386622913 + } + ], + "init": { + "inputs": { + "hex": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + }, + "outputs": {} + }, + "narrative": "This is the Runestone Evaluator. It is a mystical scale designed to assess the innate power of magical markings." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "837492" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "0" + } + ], + "narrative": "This is the Paradox Mirror. It requires inputs from the Harmony Balancer and the Leyline Navigator to reflect the reversed magic." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "948572938475829102938475" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": 386622913 + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "a": "948572938475829102938475" + }, + "outputs": {} + }, + "narrative": "This is the Harmony Balancer. It requires input from the Runestone Evaluator to find the equilibrium between forces." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": 4255030974 + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Crystal Vault. It requires input from the Mana Resonator to unseal its protective wards." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "496e697469616c207465787420746f20626520656e636f64656420696e746f2068657861646563696d616c20666f726d61742e" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Obsidian Casket. It requires input from the Enchantment Scriber to unlock its heavy lid." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "hello world hex decode" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "84729384758392018274" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "nkrru cuxrj nkd jkiujk" + } + ], + "init": { + "inputs": { + "n": "84729384758392018274" + }, + "outputs": {} + }, + "narrative": "This is the Shifting Glyph Wheel. It requires input from the Ancient Dialect Translator to properly align its runes." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "data_source_3.json" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "nkrru cuxrj nkd jkiujk" + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"value1\", \"value2\", \"value3\", \"value4\", \"value5\"]" + } + ], + "init": { + "inputs": { + "file_id": "data_source_3.json" + }, + "outputs": { + "values": "[\"value1\", \"value2\", \"value3\", \"value4\", \"value5\"]" + } + }, + "narrative": "This is the Spell Component Extractor. It requires input from the Shifting Glyph Wheel to isolate the correct arcane ingredients." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Initial text to be encoded into hexadecimal format." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "496e697469616c207465787420746f20626520656e636f64656420696e746f2068657861646563696d616c20666f726d61742e" + } + ], + "init": { + "inputs": { + "text": "Initial text to be encoded into hexadecimal format." + }, + "outputs": {} + }, + "narrative": "This is the Enchantment Scriber. A delicate silver quill that translates mortal thoughts into raw magical scripts." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the Dust Covered Relic. A forgotten artifact holding an unknown blessing from the ancient mages." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": 4255030974 + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "38472938475829102938475620192837" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "K\u0016S" + } + ], + "init": { + "inputs": { + "hex_cipher": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d", + "d": "38472938475829102938475620192837" + }, + "outputs": {} + }, + "narrative": "This is the Arcane Decoder. It requires input from the Mana Resonator to unravel complex magical ciphers." + }, + { + "id": "checksum_crc32_0b93", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "99887766554433221100aabbccddeeff" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "fd9e9ebe" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 4255030974 + } + ], + "init": { + "inputs": { + "hex": "99887766554433221100aabbccddeeff" + }, + "outputs": {} + }, + "narrative": "This is the Mana Resonator. A brass and crystal device built to gauge the frequency of ethereal waves." + }, + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "68656c6c6f20776f726c6420686578206465636f6465" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "hello world hex decode" + } + ], + "init": { + "inputs": { + "hex": "68656c6c6f20776f726c6420686578206465636f6465" + }, + "outputs": {} + }, + "narrative": "This is the Ancient Dialect Translator. A magical prism that can decipher forgotten tongues." + }, + { + "id": "zip_unzip_file_ef40", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "protected_archive_4.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "SuperSecretPassword123!" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "final_extracted_files_5.zip" + } + ], + "init": { + "inputs": { + "zip_id": "protected_archive_4.zip", + "password": "SuperSecretPassword123!" + }, + "outputs": { + "files": "final_extracted_files_5.zip" + } + }, + "narrative": "This is the Sealed Magic Scroll. A tightly bound parchment radiating a mysterious, dormant aura." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Moonlit Crystal. A shimmering stone that hums with lunar energy, waiting to be claimed." + } + ], + "edges": [ + { + "source_id": "calc_bigmul_f01c", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_bigmul_f01c", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "zip_unzip_file_2c41", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul_f01c", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "exp" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "container_3", + "target_id": "calc_gcd", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "container_1", + "target_id": "calc_modexp", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "text_rotN", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "json_get", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "dst" + }, + { + "source_id": "hex_encode", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "text_rotN", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "text_rotN", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "jsonpath" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "zip_unzip_file_2c41", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "checksum_crc32_0b93", + "target_id": "crypto_rsa_decrypt_hex", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "n" + }, + { + "source_id": "checksum_crc32_0b93", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "fingerprint_input" + }, + { + "source_id": "hex_decode", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "zip_unzip_file_ef40", + "target_id": "zip_unzip_file_2c41", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "item_16", + "target_id": "calc_inv_mod", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_9d70fc64_narrative.json b/data/questions/20/narrative/skeleton_9d70fc64_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..87f5c7bb5c4dcf3ad3b04258822234c8501571e5 --- /dev/null +++ b/data/questions/20/narrative/skeleton_9d70fc64_narrative.json @@ -0,0 +1,1079 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 20, + "win_node_id": "container_4", + "win_condition": { + "type": "item_content", + "node_id": "container_4", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "container_4", + "item_7", + "terminal_2", + "calc_inv_mod", + "graph_shortest_path", + "zip_unzip_file", + "container_1", + "code_py_exec_6060", + "item_9", + "item_1", + "container_2_0878" + ], + "by_node": { + "container_4": { + "node_name": "", + "node_type": "Item", + "template_id": "container_4", + "init_inputs": {}, + "init_outputs": { + "inner_space": { + "type": "Item", + "description": "Contents" + } + } + }, + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "calc_inv_mod": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "container_1": { + "node_name": "", + "node_type": "Item", + "template_id": "container_1", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "code_py_exec_6060": { + "node_name": "Python Executor", + "node_type": "Tool", + "template_id": "code_py_exec", + "init_inputs": { + "code": { + "type": "Code_Python", + "description": "Python code" + } + }, + "init_outputs": {} + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "container_2_0878": { + "node_name": "", + "node_type": "Item", + "template_id": "container_2", + "init_inputs": { + "fingerprint_input": { + "type": "Hex_String", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "container_4": { + "init_inputs": {}, + "init_outputs": { + "inner_space": "2_3_5_7_11_13_17_19_23_29_31" + } + }, + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "result = 10 * 42\nprint(result)" + } + }, + "terminal_2": { + "init_inputs": { + "num2": "93847582910485739284" + }, + "init_outputs": { + "text_result": "System initialized and waiting for additional parameter input.", + "hex_result": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + } + }, + "calc_inv_mod": { + "init_inputs": { + "a": "82374950381726485930", + "mod": "999983" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Node_Alpha", + "dst": "Node_Omega" + }, + "init_outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Omega\"]", + "cost": "45210" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_data_archive_v3.csv" + } + }, + "container_1": { + "init_inputs": { + "fingerprint_input": "1f2e3d4c5b6a7980" + }, + "init_outputs": {} + }, + "code_py_exec_6060": { + "init_inputs": { + "code": "def generate_pwd():\n return 'secret_password_123'\nprint(generate_pwd())" + }, + "init_outputs": {} + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "config_graph_v2.json" + } + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "1234567890123456789012" + } + }, + "container_2_0878": { + "init_inputs": { + "fingerprint_input": "ffeeddccbbaa9988" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You awaken in a dimly lit, abandoned detective agency. Rain beats against the cracked windows, and the faint smell of old paper and ozone lingers in the air. You've been locked in by an unknown assailant who left behind a trail of cryptic devices, old documents, and locked containers. Your only way out is to navigate this web of interconnected clues, deciphering the secrets hidden within each object to eventually disarm the heavily fortified exit. The clock is ticking, and the shadows seem to grow longer with each passing minute. Explore your surroundings carefully and logically piece together the fragments of this mystery to secure your freedom.", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "420\n" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents", + "value": "2_3_5_7_11_13_17_19_23_29_31" + } + ], + "init": { + "inputs": {}, + "outputs": { + "inner_space": "2_3_5_7_11_13_17_19_23_29_31" + } + }, + "narrative": "This is The Final Safe. It requires input from The Analysis Console to disarm its locking mechanism." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "result = 10 * 42\nprint(result)" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "420\n" + } + ], + "narrative": "This is The Analysis Console. It requires input from The Cipher Manuscript to execute the required code sequences." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "result = 10 * 42\nprint(result)" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "result = 10 * 42\nprint(result)" + } + }, + "narrative": "This is The Cipher Manuscript. A fragile document covered in dense symbols." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is The Rusty Keycard. It shows heavy signs of wear." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "101214" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "93847582910485739284" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "System initialized and waiting for additional parameter input." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num2": "93847582910485739284" + }, + "outputs": { + "text_result": "System initialized and waiting for additional parameter input.", + "hex_result": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + } + }, + "narrative": "This is The Mainframe Terminal. It requires input from The Cryptographic Processor to initiate." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is The Biometric Lockbox. It requires input from The Mainframe Terminal to authenticate the biometric fingerprint." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is A Small Wooden Box. It has intricate carvings on the lid." + }, + { + "id": "item_8_8efd", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is A Silver Case. It is slightly dented but securely latched." + }, + { + "id": "item_8_4780", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is A Dusty Envelope. It looks like it was left behind on a messy desk." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1234567890123456789012" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "45210" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "109611" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "101214" + } + ], + "narrative": "This is The Cryptographic Processor. It requires inputs from The Inversion Calculator, The Network Mapper, and A Torn Blueprint to function properly." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "82374950381726485930" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "999983" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "109611" + } + ], + "init": { + "inputs": { + "a": "82374950381726485930", + "mod": "999983" + }, + "outputs": {} + }, + "narrative": "This is The Inversion Calculator. An antique mathematical device with mechanical spinning dials." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "extracted_data_archive_v3.csv" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_Alpha" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_Omega" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Omega\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "45210" + } + ], + "init": { + "inputs": { + "src": "Node_Alpha", + "dst": "Node_Omega" + }, + "outputs": { + "path": "[\"Node_Alpha\", \"Node_Beta\", \"Node_Gamma\", \"Node_Delta\", \"Node_Omega\"]", + "cost": "45210" + } + }, + "narrative": "This is The Network Mapper. It requires input from The Archive Extractor to plot the correct routes on the system grid." + }, + { + "id": "item_16_31bd", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is The Old Badge. It bears the insignia of a forgotten security firm." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "config_graph_v2.json" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "secret_password_123\n" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_data_archive_v3.csv" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_data_archive_v3.csv" + } + }, + "narrative": "This is The Archive Extractor. It requires inputs from The Diagnostic Computer and The Encrypted Hard Drive to retrieve the compressed files." + }, + { + "id": "item_8_3d08", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is A Leather Pouch. It feels oddly heavy." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "1f2e3d4c5b6a7980" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "1f2e3d4c5b6a7980" + }, + "outputs": {} + }, + "narrative": "This is The Guard's Locker. A tall metal cabinet that seems to have been hastily abandoned." + }, + { + "id": "code_py_exec_6060", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def generate_pwd():\n return 'secret_password_123'\nprint(generate_pwd())" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "secret_password_123\n" + } + ], + "init": { + "inputs": { + "code": "def generate_pwd():\n return 'secret_password_123'\nprint(generate_pwd())" + }, + "outputs": {} + }, + "narrative": "This is The Diagnostic Computer. It blinks with a green cursor on a black screen." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "config_graph_v2.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "config_graph_v2.json" + } + }, + "narrative": "This is The Encrypted Hard Drive. It is encased in a heavy-duty protective shell." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "1234567890123456789012" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "1234567890123456789012" + } + }, + "narrative": "This is A Torn Blueprint. It contains a series of faded markings." + }, + { + "id": "container_2_0878", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "ffeeddccbbaa9988" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "init": { + "inputs": { + "fingerprint_input": "ffeeddccbbaa9988" + }, + "outputs": {} + }, + "narrative": "This is The Detective's Briefcase. A sturdy container reinforced with steel corners." + } + ], + "edges": [ + { + "source_id": "code_py_exec", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "item_16", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "terminal_2", + "target_id": "code_py_exec", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "trigger_item" + }, + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "item_8", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_8efd", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_4780", + "target_id": "item_8_8efd", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "num1" + }, + { + "source_id": "terminal_2", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "calc_inv_mod", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "exp" + }, + { + "source_id": "item_16_31bd", + "target_id": "calc_inv_mod", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "zip_unzip_file", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "item_8_3d08", + "target_id": "item_8_4780", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_1", + "target_id": "item_16_31bd", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "code_py_exec_6060", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "password" + }, + { + "source_id": "item_9", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + }, + { + "source_id": "item_1", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "base" + }, + { + "source_id": "container_2_0878", + "target_id": "zip_unzip_file", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_9da0c9f5_narrative.json b/data/questions/20/narrative/skeleton_9da0c9f5_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..6e7f1f5367ab61e545456155809a26df956d7f55 --- /dev/null +++ b/data/questions/20/narrative/skeleton_9da0c9f5_narrative.json @@ -0,0 +1,1228 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 27, + "win_node_id": "calc_inv_mod", + "win_condition": { + "type": "tool_output", + "node_id": "calc_inv_mod", + "output_port": "inv", + "output_type": "Big_Int", + "description": "Execute BigInt Modular Inverse and get the output from port 'inv'" + }, + "source_init": { + "source_nodes": [ + "calc_gcd_3293", + "hmac_sha256", + "calc_modexp_4846", + "json_get", + "text_rotN", + "terminal_2", + "calc_inv_mod_5a42", + "crypto_rsa_decrypt_hex", + "item_4", + "graph_shortest_path", + "calc_inv_mod_7f1d" + ], + "by_node": { + "calc_gcd_3293": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "hmac_sha256": { + "node_name": "HMAC-SHA256 Calculator", + "node_type": "Tool", + "template_id": "hmac_sha256", + "init_inputs": { + "hex_key": { + "type": "Hex_String", + "description": "Hex key" + } + }, + "init_outputs": {} + }, + "calc_modexp_4846": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": {}, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "text_rotN": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "n": { + "type": "Big_Int", + "description": "Shift N" + } + }, + "init_outputs": {} + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_inv_mod_5a42": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + } + }, + "init_outputs": {} + }, + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "hex_cipher": { + "type": "Hex_String", + "description": "Ciphertext (Hex)" + }, + "n": { + "type": "Big_Int", + "description": "Modulus n" + }, + "d": { + "type": "Big_Int", + "description": "Private exponent d" + } + }, + "init_outputs": {} + }, + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "calc_inv_mod_7f1d": { + "node_name": "BigInt Modular Inverse", + "node_type": "Tool", + "template_id": "calc_inv_mod", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "Integer a" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "calc_gcd_3293": { + "init_inputs": { + "b": "849204857209384729103" + }, + "init_outputs": {} + }, + "hmac_sha256": { + "init_inputs": { + "hex_key": "deadbeef1234567890abcdef12345678" + }, + "init_outputs": {} + }, + "calc_modexp_4846": { + "init_inputs": { + "mod": "987653" + }, + "init_outputs": {} + }, + "json_get": { + "init_inputs": {}, + "init_outputs": { + "values": "[\"value1\", \"value2\", \"value3\", \"value4\"]" + } + }, + "text_rotN": { + "init_inputs": { + "n": "382910384756291038475" + }, + "init_outputs": {} + }, + "terminal_2": { + "init_inputs": { + "num2": "482019384756291038471" + }, + "init_outputs": { + "text_result": "Terminal output successfully generated.", + "hex_result": "aabbccddeeff00112233", + "math_token": "A completely useless math token string" + } + }, + "calc_inv_mod_5a42": { + "init_inputs": { + "a": "859203948571029384756" + }, + "init_outputs": {} + }, + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "hex_cipher": "1234567890abcdef1234567890abcdef", + "n": "73829103847562910384756", + "d": "29384756102938475610293" + }, + "init_outputs": {} + }, + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "archive_data.zip" + } + }, + "graph_shortest_path": { + "init_inputs": { + "src": "node_A", + "dst": "node_Z" + }, + "init_outputs": { + "path": "[\"node_A\", \"node_B\", \"node_C\", \"node_D\", \"node_E\", \"node_Z\"]", + "cost": "482918" + } + }, + "calc_inv_mod_7f1d": { + "init_inputs": { + "a": "592019384756291038475", + "mod": "857309" + }, + "init_outputs": {} + } + }, + "intro_narrative": "Welcome to the Chronosphere, the submerged steampunk laboratory of the brilliant but erratic Professor Arkwright. The facility is powered by unstable geothermal pressure and complex clockwork mechanisms. Suddenly, the main boiler safety valve jams! The facility is now in lockdown, and the pressure gauges are redlining. You have exactly sixty minutes before the entire submerged lab is crushed under the ocean's weight. To survive, you must navigate through a series of complex mechanical tools, brass calibrators, and steam-powered analytical engines to manually trigger the Omega Phase Inverter and vent the core. Gather scattered artifacts, activate the dormant automata, and carefully trace the flow of steam and data between these magnificent machines. The clock is ticking, and the pressure is rising!", + "narrative_style": "steampunk" + }, + "nodes": [ + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "1" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "0" + } + ], + "narrative": "This is the Omega Phase Inverter. It requires inputs from the Grand Ratio Master and the Thermodynamic Multiplier Beta to finalize the sequence." + }, + { + "id": "calc_gcd", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "1" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": 2289102085 + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the Grand Ratio Master. It requires inputs from both the Ratio Calibrator Gamma and the Secondary Resonance Tuner." + }, + { + "id": "calc_gcd_b26b", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "1971278766" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "1" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the Ratio Calibrator Gamma. It requires inputs from both the Thermodynamic Multiplier Beta and the Phase Inverter Alpha." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "1" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 2199096960 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "1" + } + ], + "narrative": "This is the Thermodynamic Multiplier Beta. It requires inputs from the Ratio Calibrator Beta, the Ratio Calibrator Alpha, and the Resonance Tuner." + }, + { + "id": "calc_gcd_f0f3", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": "1" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "347233" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "narrative": "This is the Ratio Calibrator Beta. It needs inputs from both the Ratio Calibrator Alpha and the Thermodynamic Multiplier Alpha." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "archive_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "\u0007䗷Ά\bm" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "narrative": "This is the Pneumatic Tube Extractor. It requires inputs from both the Clockwork Decryptor and the Copper Cylinder." + }, + { + "id": "calc_gcd_3293", + "name": "BigInt GCD Calculator", + "description": "Greatest common divisor of two large decimal integers.", + "type": "Tool", + "template_id": "calc_gcd", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First integer", + "value": 2289102085 + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second integer", + "value": "849204857209384729103" + } + ], + "outputs": [ + { + "name": "gcd", + "type": "Big_Int", + "description": "GCD result", + "value": "1" + } + ], + "init": { + "inputs": { + "b": "849204857209384729103" + }, + "outputs": {} + }, + "narrative": "This is the Ratio Calibrator Alpha. It requires input from the Secondary Resonance Tuner to balance the gears." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "f75939bb6b155d6f9b9cf0c1e211ad3b2fc4762693b874aef35b133319dfbec5" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "83138e80" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2199096960 + } + ], + "narrative": "This is the Resonance Tuner. It processes data from the Alchemical Authenticator to align frequencies." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "deadbeef1234567890abcdef12345678" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "[\"value1\", \"value2\", \"value3\", \"value4\"]" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "f75939bb6b155d6f9b9cf0c1e211ad3b2fc4762693b874aef35b133319dfbec5" + } + ], + "init": { + "inputs": { + "hex_key": "deadbeef1234567890abcdef12345678" + }, + "outputs": {} + }, + "narrative": "This is the Alchemical Authenticator. It requires input from the Analytical Engine Punch Reader to verify the chemical signature." + }, + { + "id": "calc_modexp_4846", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "1971278766" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "173441" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "987653" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "347233" + } + ], + "init": { + "inputs": { + "mod": "987653" + }, + "outputs": {} + }, + "narrative": "This is the Thermodynamic Multiplier Alpha. It requires inputs from both the Phase Inverter Alpha and the Phase Inverter Beta." + }, + { + "id": "checksum_crc32_cf94", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "83138e80" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "8870ed05" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2289102085 + } + ], + "narrative": "This is the Secondary Resonance Tuner. It requires input from the Resonance Tuner to stabilize the acoustic waves." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "archive_data.zip" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "Qbojfkxi lrqmrq przzbppcriiv dbkboxqba." + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"value1\", \"value2\", \"value3\", \"value4\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "values": "[\"value1\", \"value2\", \"value3\", \"value4\"]" + } + }, + "narrative": "This is the Analytical Engine Punch Reader. It requires inputs from both the Cryptex Letter Ring and the Copper Cylinder." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A heavy brass gear token found resting on a velvet cushion." + }, + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Terminal output successfully generated." + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "382910384756291038475" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Qbojfkxi lrqmrq przzbppcriiv dbkboxqba." + } + ], + "init": { + "inputs": { + "n": "382910384756291038475" + }, + "outputs": {} + }, + "narrative": "This is the Cryptex Letter Ring. It needs the result from the Steam Pressure Gauge to align its tumblers." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "482918" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "482019384756291038471" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal output successfully generated." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "aabbccddeeff00112233" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "A completely useless math token string" + } + ], + "init": { + "inputs": { + "num2": "482019384756291038471" + }, + "outputs": { + "text_result": "Terminal output successfully generated.", + "hex_result": "aabbccddeeff00112233", + "math_token": "A completely useless math token string" + } + }, + "narrative": "This is the Steam Pressure Gauge. It requires input from the Navigation Automaton to measure the boiler stress." + }, + { + "id": "calc_inv_mod_5a42", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "859203948571029384756" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 2289102085 + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "1971278766" + } + ], + "init": { + "inputs": { + "a": "859203948571029384756" + }, + "outputs": {} + }, + "narrative": "This is the Phase Inverter Alpha. It needs the result from the Secondary Resonance Tuner to reverse the steam flow." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "1234567890abcdef1234567890abcdef" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "73829103847562910384756" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "29384756102938475610293" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u0007䗷Ά\bm" + } + ], + "init": { + "inputs": { + "hex_cipher": "1234567890abcdef1234567890abcdef", + "n": "73829103847562910384756", + "d": "29384756102938475610293" + }, + "outputs": {} + }, + "narrative": "An intricate puzzle box known as the Clockwork Decryptor." + }, + { + "id": "item_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_4", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "Zip file path", + "value": "archive_data.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "archive_data.zip" + } + }, + "narrative": "A heavy copper cylinder engraved with intricate navigation lines." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "archive_data.zip" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "node_A" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "node_Z" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"node_A\", \"node_B\", \"node_C\", \"node_D\", \"node_E\", \"node_Z\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "482918" + } + ], + "init": { + "inputs": { + "src": "node_A", + "dst": "node_Z" + }, + "outputs": { + "path": "[\"node_A\", \"node_B\", \"node_C\", \"node_D\", \"node_E\", \"node_Z\"]", + "cost": "482918" + } + }, + "narrative": "This is the Navigation Automaton. It requires input from the Copper Cylinder to chart a viable escape path." + }, + { + "id": "calc_inv_mod_7f1d", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "592019384756291038475" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "857309" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "173441" + } + ], + "init": { + "inputs": { + "a": "592019384756291038475", + "mod": "857309" + }, + "outputs": {} + }, + "narrative": "A humming machine known as the Phase Inverter Beta." + } + ], + "edges": [ + { + "source_id": "calc_gcd", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "calc_gcd_b26b", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "mod" + }, + { + "source_id": "calc_gcd_f0f3", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "base" + }, + { + "source_id": "zip_unzip_item", + "target_id": "calc_gcd_b26b", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_gcd_b26b", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "calc_gcd_3293", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "exp" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "hmac_sha256", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "calc_gcd_3293", + "target_id": "calc_gcd_f0f3", + "connection_type": "Big_Int", + "source_port": "gcd", + "target_port": "a" + }, + { + "source_id": "calc_modexp_4846", + "target_id": "calc_gcd_f0f3", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "b" + }, + { + "source_id": "checksum_crc32_cf94", + "target_id": "calc_gcd", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "checksum_crc32", + "target_id": "checksum_crc32_cf94", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "checksum_crc32_cf94", + "target_id": "calc_gcd_3293", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "json_get", + "target_id": "hmac_sha256", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "text" + }, + { + "source_id": "item_8", + "target_id": "json_get", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "text_rotN", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "jsonpath" + }, + { + "source_id": "terminal_2", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "calc_inv_mod_5a42", + "target_id": "calc_modexp_4846", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "base" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + }, + { + "source_id": "item_4", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + }, + { + "source_id": "calc_inv_mod_5a42", + "target_id": "calc_gcd_b26b", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "a" + }, + { + "source_id": "checksum_crc32_cf94", + "target_id": "calc_inv_mod_5a42", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num1" + }, + { + "source_id": "item_4", + "target_id": "zip_unzip_item", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "zip_id" + }, + { + "source_id": "item_4", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + }, + { + "source_id": "calc_inv_mod_7f1d", + "target_id": "calc_modexp_4846", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "exp" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_a13d0185_narrative.json b/data/questions/20/narrative/skeleton_a13d0185_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..861d9150174230df2baa432de6a6ed4071b4bf8b --- /dev/null +++ b/data/questions/20/narrative/skeleton_a13d0185_narrative.json @@ -0,0 +1,1056 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 20, + "win_node_id": "text_bidi_sanitize", + "win_condition": { + "type": "tool_output", + "node_id": "text_bidi_sanitize", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute Bidi Sanitizer and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "item_7", + "hash_md5", + "calc_modexp", + "graph_shortest_path", + "terminal_2", + "calc_modexp_877d", + "terminal_1", + "item_9" + ], + "by_node": { + "item_7": { + "node_name": "", + "node_type": "Item", + "template_id": "item_7", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "The integer" + } + } + }, + "hash_md5": { + "node_name": "MD5 Hasher", + "node_type": "Tool", + "template_id": "hash_md5", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + }, + "num2": { + "type": "Big_Int", + "description": "Second Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + }, + "math_token": { + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + } + }, + "calc_modexp_877d": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "item_9": { + "node_name": "", + "node_type": "Item", + "template_id": "item_9", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "JSON file path" + } + } + } + } + }, + "initial_values": { + "item_7": { + "init_inputs": {}, + "init_outputs": { + "content": "def get_secret_integer():\n return 89347" + } + }, + "hash_md5": { + "init_inputs": { + "text": "Initialize hash text with unique content 83921" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "mod": "997331" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "src": "Node_A_778", + "dst": "Node_Z_991" + }, + "init_outputs": { + "path": "[\"Node_A_778\", \"Node_C_112\", \"Node_E_554\", \"Node_G_882\", \"Node_K_309\", \"Node_Z_991\"]", + "cost": "485291" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "81294857103948572110", + "num2": "39485710293847561928" + }, + "init_outputs": { + "text_result": "Partial calculations processed successfully on terminal 2.", + "hex_result": "a1b2c3d4e5f678901234567890abcdef", + "math_token": "A completely useless math token of zero value" + } + }, + "calc_modexp_877d": { + "init_inputs": { + "base": "16", + "exp": "58392019485736251093" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Slot A activation sequence initiated.", + "slot_b": "44938271650392847561" + }, + "init_outputs": { + "text_output": "Terminal 1 slot A processing is complete.", + "hex_output": "deadbeef0123456789abcdef10293847" + } + }, + "item_9": { + "init_inputs": {}, + "init_outputs": { + "content": "graph_data_9942.json" + } + } + }, + "intro_narrative": "Welcome to Sector 7G, a neon-drenched alleyway in the underbelly of Neo-Kowloon. The acid rain never seems to stop here, washing the grime of the city into the overcrowded gutters. You are a street-smart data runner whose latest extraction job just went terribly sideways. Now, hunted by relentless corporate enforcers, you've taken refuge in this abandoned hacker den. The air is thick with the smell of ozone, cheap synthetics, and burning silicon. Before you lies a tangled web of jury-rigged terminals, salvaged memory drives, and glowing cryptographic servers. Your only way out of this lockdown is to systematically process the raw data, sanitize the corrupted corporate files, and execute the hidden override codes. You must piece together the scattered technology in the room, follow the digital breadcrumbs, and outsmart the grid. Time is running out. Use your wits to navigate the network, unlock the secured containers, and trigger the final execution sequence before the corporate hit squads breach the reinforced steel door.", + "narrative_style": "cyberpunk" + }, + "nodes": [ + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "(no output)" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "(no output)" + } + ], + "narrative": "This is the Data Purifier. It requires input from the Execution Engine to sanitize the corrupted strings and extract the hidden truth." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def get_secret_integer():\n return 89347" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "(no output)" + } + ], + "narrative": "This is the Execution Engine. It requires input from the Hacked Datapad to safely run and compile the injected scripts." + }, + { + "id": "item_7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_7", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "The integer", + "value": "def get_secret_integer():\n return 89347" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def get_secret_integer():\n return 89347" + } + }, + "narrative": "A Hacked Datapad with a shattered OLED screen, holding a volatile snippet of raw code." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Alpha Data Fragment, a small holographic chip containing heavily fragmented data." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Primary Memory Core, a salvaged storage component pulsing with a faint blue light." + }, + { + "id": "container_3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_3", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Big_Int", + "description": "Fingerprint Hash", + "value": "2196398835" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Secure Vault. It requires input from the Cryptographic Inverter to disengage its heavy biometric locks." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "768628" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 2657386369 + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "2196398835" + } + ], + "narrative": "This is the Cryptographic Inverter. It requires inputs from both the Integrity Scanner and the Quantum Decryptor to compute the access keys." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "166f8cc340bd47fb3663af3f8c01b62c" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "9e647f81" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 2657386369 + } + ], + "narrative": "This is the Integrity Scanner. It requires input from the Hash Generator to verify the underlying data structure." + }, + { + "id": "item_8_f55f", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Beta Data Fragment, another piece of corrupted data stored on a scratched optic drive." + }, + { + "id": "item_8_9ef2", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "The Gamma Data Fragment, a piece of old data hidden inside a rusted, unmarked casing." + }, + { + "id": "item_16_20fb", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Secondary Memory Core, a slightly damaged but functional digital storage component." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Initialize hash text with unique content 83921" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "166f8cc340bd47fb3663af3f8c01b62c" + } + ], + "init": { + "inputs": { + "text": "Initialize hash text with unique content 83921" + }, + "outputs": {} + }, + "narrative": "An old-school Hash Generator unit designed to compress biometric data into fixed digital strings." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "a1b2c3d4e5f678901234567890abcdef" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is the Lockbox. It requires input from the Maintenance Terminal to authenticate and unlock." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "485291" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "394687495" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "997331" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "768628" + } + ], + "init": { + "inputs": { + "mod": "997331" + }, + "outputs": {} + }, + "narrative": "This is the Quantum Decryptor. It requires inputs from both the Network Navigator and the Secondary Decryptor to crack the prime sequence." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "graph_data_9942.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Node_A_778" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_Z_991" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"Node_A_778\", \"Node_C_112\", \"Node_E_554\", \"Node_G_882\", \"Node_K_309\", \"Node_Z_991\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "485291" + } + ], + "init": { + "inputs": { + "src": "Node_A_778", + "dst": "Node_Z_991" + }, + "outputs": { + "path": "[\"Node_A_778\", \"Node_C_112\", \"Node_E_554\", \"Node_G_882\", \"Node_K_309\", \"Node_Z_991\"]", + "cost": "485291" + } + }, + "narrative": "This is the Network Navigator. It requires input from the Network Map Data to plot the optimal routing vectors." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this terminal" + }, + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "81294857103948572110" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "39485710293847561928" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial calculations processed successfully on terminal 2." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "a1b2c3d4e5f678901234567890abcdef" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided", + "value": "A completely useless math token of zero value" + } + ], + "init": { + "inputs": { + "num1": "81294857103948572110", + "num2": "39485710293847561928" + }, + "outputs": { + "text_result": "Partial calculations processed successfully on terminal 2.", + "hex_result": "a1b2c3d4e5f678901234567890abcdef", + "math_token": "A completely useless math token of zero value" + } + }, + "narrative": "A dusty Maintenance Terminal once used by city technicians for low-level system diagnostics." + }, + { + "id": "item_16_dc8b", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "The Tertiary Memory Core, a heavily encrypted component salvaged from a corporate drone." + }, + { + "id": "calc_modexp_877d", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "16" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "58392019485736251093" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": 2657386369 + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "394687495" + } + ], + "init": { + "inputs": { + "base": "16", + "exp": "58392019485736251093" + }, + "outputs": {} + }, + "narrative": "This is the Secondary Decryptor. It requires input from the Integrity Scanner to function properly." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Slot A activation sequence initiated." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "44938271650392847561" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal 1 slot A processing is complete." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeef0123456789abcdef10293847" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Slot A activation sequence initiated.", + "slot_b": "44938271650392847561" + }, + "outputs": { + "text_output": "Terminal 1 slot A processing is complete.", + "hex_output": "deadbeef0123456789abcdef10293847" + } + }, + "narrative": "The Main Console of the hacker den, glowing with a neon green prompt waiting for manual entry." + }, + { + "id": "item_9", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_9", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "File_Id", + "description": "JSON file path", + "value": "graph_data_9942.json" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "graph_data_9942.json" + } + }, + "narrative": "The Network Map Data, stored on a rugged flash drive containing the physical layout of the entire sector." + } + ], + "edges": [ + { + "source_id": "code_py_exec", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "text" + }, + { + "source_id": "item_7", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "item_8", + "target_id": "item_7", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "container_3", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_inv_mod", + "target_id": "container_3", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "fingerprint_input" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "item_8_f55f", + "target_id": "container_3", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "item_8_9ef2", + "target_id": "item_8_f55f", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_16_20fb", + "target_id": "item_8_9ef2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "hash_md5", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "container_1", + "target_id": "item_16_20fb", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "base" + }, + { + "source_id": "terminal_2", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex_result", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_16_dc8b", + "target_id": "terminal_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "calc_modexp_877d", + "target_id": "calc_modexp", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "exp" + }, + { + "source_id": "terminal_1", + "target_id": "item_16_dc8b", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_modexp_877d", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "mod" + }, + { + "source_id": "item_9", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "content", + "target_port": "file_id" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_a4898e76_narrative.json b/data/questions/20/narrative/skeleton_a4898e76_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..95a57a07aeb20ebff29b0eebca122232ee509e14 --- /dev/null +++ b/data/questions/20/narrative/skeleton_a4898e76_narrative.json @@ -0,0 +1,1230 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 26, + "win_node_id": "text_rotN", + "win_condition": { + "type": "tool_output", + "node_id": "text_rotN", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute ROT-N Cipher and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "calc_bigmul", + "terminal_1", + "calc_bigmul_ce3b", + "num_base_convert", + "graph_shortest_path", + "num_base_convert_c641", + "calc_modexp", + "zip_unzip_item", + "matter_synthesizer", + "unicode_norm", + "text_rotN_ef42" + ], + "by_node": { + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "calc_bigmul_ce3b": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "num_base_convert": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "num_base_convert_c641": { + "node_name": "Base Converter", + "node_type": "Tool", + "template_id": "num_base_convert", + "init_inputs": { + "s": { + "type": "Big_Int", + "description": "Input integer value" + }, + "to_base": { + "type": "Big_Int", + "description": "To base" + } + }, + "init_outputs": {} + }, + "calc_modexp": { + "node_name": "BigInt Modular Exponentiation", + "node_type": "Tool", + "template_id": "calc_modexp", + "init_inputs": { + "base": { + "type": "Big_Int", + "description": "Base" + }, + "exp": { + "type": "Big_Int", + "description": "Exponent" + }, + "mod": { + "type": "Big_Int", + "description": "Modulus" + } + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_item", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + } + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "node_name": "Matter Synthesizer", + "node_type": "Tool", + "template_id": "matter_synthesizer", + "init_inputs": { + "blueprint": { + "type": "Text_Generic", + "description": "Object Blueprint" + } + }, + "init_outputs": {} + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "form": { + "type": "Text_Generic", + "description": "Form" + } + }, + "init_outputs": {} + }, + "text_rotN_ef42": { + "node_name": "ROT-N Cipher", + "node_type": "Tool", + "template_id": "text_rotN", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "n": { + "type": "Big_Int", + "description": "Shift N" + } + }, + "init_outputs": {} + } + } + }, + "initial_values": { + "calc_bigmul": { + "init_inputs": { + "a": "39581938501938491039" + }, + "init_outputs": {} + }, + "terminal_1": { + "init_inputs": { + "slot_a": "Initialization sequence initiated." + }, + "init_outputs": { + "text_output": "Terminal accessed successfully with valid credentials.", + "hex_output": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + } + }, + "calc_bigmul_ce3b": { + "init_inputs": { + "a": "84920194827103847291" + }, + "init_outputs": {} + }, + "num_base_convert": { + "init_inputs": { + "to_base": "10" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": { + "file_id": "network_graph.json", + "dst": "Node_XYZ_99" + }, + "init_outputs": { + "path": "[\"StartNode\", \"Node_12\", \"Node_44\", \"Node_78\", \"Node_90\", \"Node_XYZ_99\"]", + "cost": "482910" + } + }, + "num_base_convert_c641": { + "init_inputs": { + "s": "19384729501837465920", + "to_base": "8" + }, + "init_outputs": {} + }, + "calc_modexp": { + "init_inputs": { + "base": "16", + "exp": "10293847561029384756", + "mod": "997331" + }, + "init_outputs": {} + }, + "zip_unzip_item": { + "init_inputs": { + "zip_id": "secure_payload.zip" + }, + "init_outputs": {} + }, + "matter_synthesizer": { + "init_inputs": { + "blueprint": "Plasma_Rifle_Mk4_Blueprint_Data" + }, + "init_outputs": {} + }, + "unicode_norm": { + "init_inputs": { + "text": "Téxt tø nòrmalîzè for processing", + "form": "NFC" + }, + "init_outputs": {} + }, + "text_rotN_ef42": { + "init_inputs": { + "text": "Secret message requiring ROT-N encryption", + "n": "12345678901234567890" + }, + "init_outputs": {} + } + }, + "intro_narrative": "You are the lead detective on the infamous 'Midnight Syndicate' case. A string of high-profile cyber-heists has left the city's financial sector in ruins. The suspects have vanished, leaving behind a trail of cryptic clues, locked devices, and encrypted files scattered across their abandoned hideout. The precinct has set up a makeshift forensics lab here to piece together the evidence. Your objective is to follow the digital footprints, bypass the syndicate's security measures, and uncover the mastermind's true identity. The clock is ticking before they strike again. You'll need to carefully analyze every piece of evidence, using each discovery to unlock the next, until you crack the final code.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "text_rotN", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Téxt tø nòrmalîzè for processing" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "386622913" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Uhyu uw oqsnbmmag gps qspdfttjoh" + } + ], + "narrative": "This is the Master Decoder. It requires inputs from both the Cryptographic Workbench and the Suspect's Diary to reveal the true culprit's identity." + }, + { + "id": "calc_inv_mod", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": 386622913 + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "15303284365806315552322576607" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "386622913" + } + ], + "narrative": "This is the Cryptographic Workbench. It requires inputs from both the Crime Scene Reconstructor and the Evidence Locker Keypad to break the encryption." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "39581938501938491039" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": 386622913 + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "15303284365806315552322576607" + } + ], + "init": { + "inputs": { + "a": "39581938501938491039" + }, + "outputs": {} + }, + "narrative": "This is the Crime Scene Reconstructor. It requires input from the Evidence Locker Keypad to load the correct virtual case data." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this terminal" + }, + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Initialization sequence initiated." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "243451380825690351991508638320276192598405414661853600000" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal accessed successfully with valid credentials." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Initialization sequence initiated." + }, + "outputs": { + "text_output": "Terminal accessed successfully with valid credentials.", + "hex_output": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + } + }, + "narrative": "This is the Captain's Terminal. It requires input from the License Plate Scanner to grant access to its highly classified files." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "a1b2c3d4e5f67890a1b2c3d4e5f67890" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "170b65c1" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 386622913 + } + ], + "narrative": "This is the Evidence Locker Keypad. It requires input from the Captain's Terminal to accept a valid security passcode." + }, + { + "id": "calc_bigmul_ce3b", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "84920194827103847291" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "2866825509778368421318464914469600000" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "243451380825690351991508638320276192598405414661853600000" + } + ], + "init": { + "inputs": { + "a": "84920194827103847291" + }, + "outputs": {} + }, + "narrative": "This is the License Plate Scanner. It requires input from the Wiretap Decoder to locate the suspects' getaway vehicle." + }, + { + "id": "num_base_convert", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "2866825509778368421318464914469600000" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "4520559009387579802607269152000" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "10" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "2866825509778368421318464914469600000" + } + ], + "init": { + "inputs": { + "to_base": "10" + }, + "outputs": {} + }, + "narrative": "This is the Wiretap Decoder. It requires inputs from both the Financial Records Server and the Ballistics Computer to descramble the audio." + }, + { + "id": "calc_bigmul_89db", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "634175" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "4520559009387579802607269152000" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "2866825509778368421318464914469600000" + } + ], + "narrative": "This is the Financial Records Server. It requires inputs from both the Alibi Checker and the Police Database to trace the money." + }, + { + "id": "calc_inv_mod_6b2b", + "name": "BigInt Modular Inverse", + "description": "Modular inverse of a modulo mod (large decimal strings).", + "type": "Tool", + "template_id": "calc_inv_mod", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "a", + "type": "Big_Int", + "description": "Integer a", + "value": "4520559009387579802607269152000" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "482910" + } + ], + "outputs": [ + { + "name": "inv", + "type": "Big_Int", + "description": "Modular inverse", + "value": "4520559009387579802607269152000" + } + ], + "narrative": "This is the Alibi Checker. It requires inputs from both the Ballistics Computer and the City Map Interface to cross-reference suspect movements." + }, + { + "id": "calc_bigmul_537b", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "482910" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "9361079723732330667427200" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "4520559009387579802607269152000" + } + ], + "narrative": "This is the Ballistics Computer. It requires inputs from both the Fingerprint Matcher and the City Map Interface to determine the firing angle." + }, + { + "id": "calc_bigmul_00d6", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "482910" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "19384729501837465920" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "9361079723732330667427200" + } + ], + "narrative": "This is the Fingerprint Matcher. It requires inputs from both the City Map Interface and the Forensic Analyzer to run its matching algorithms." + }, + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by", + "value": "synthesized_item_bcdeb19c295336fb" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text" + } + ], + "narrative": "This is the Suspect's Watch. A heavily damaged mechanical watch recovered from the suspect's abandoned apartment." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "network_graph.json" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "Téxt tø nòrmalîzè for processing" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Node_XYZ_99" + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"StartNode\", \"Node_12\", \"Node_44\", \"Node_78\", \"Node_90\", \"Node_XYZ_99\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "482910" + } + ], + "init": { + "inputs": { + "file_id": "network_graph.json", + "dst": "Node_XYZ_99" + }, + "outputs": { + "path": "[\"StartNode\", \"Node_12\", \"Node_44\", \"Node_78\", \"Node_90\", \"Node_XYZ_99\"]", + "cost": "482910" + } + }, + "narrative": "This is the City Map Interface. It requires input from the Suspect's Diary to calculate the most likely escape route." + }, + { + "id": "num_base_convert_c641", + "name": "Base Converter", + "description": "Convert integer between bases (2..36).", + "type": "Tool", + "template_id": "num_base_convert", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "s", + "type": "Big_Int", + "description": "Input integer value", + "value": "19384729501837465920" + }, + { + "name": "from_base", + "type": "Big_Int", + "description": "From base", + "value": "482910" + }, + { + "name": "to_base", + "type": "Big_Int", + "description": "To base", + "value": "8" + } + ], + "outputs": [ + { + "name": "str", + "type": "Big_Int", + "description": "Converted integer value", + "value": "19384729501837465920" + } + ], + "init": { + "inputs": { + "s": "19384729501837465920", + "to_base": "8" + }, + "outputs": {} + }, + "narrative": "This is the Forensic Analyzer. It requires input from the City Map Interface to calibrate its sensitive tracking sensors." + }, + { + "id": "calc_modexp", + "name": "BigInt Modular Exponentiation", + "description": "Modular exponentiation pow(base, exp, mod) with large decimal strings.", + "type": "Tool", + "template_id": "calc_modexp", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "base", + "type": "Big_Int", + "description": "Base", + "value": "16" + }, + { + "name": "exp", + "type": "Big_Int", + "description": "Exponent", + "value": "10293847561029384756" + }, + { + "name": "mod", + "type": "Big_Int", + "description": "Modulus", + "value": "997331" + } + ], + "outputs": [ + { + "name": "value", + "type": "Big_Int", + "description": "Result value", + "value": "634175" + } + ], + "init": { + "inputs": { + "base": "16", + "exp": "10293847561029384756", + "mod": "997331" + }, + "outputs": {} + }, + "narrative": "This is the Police Database. A secure central server terminal holding extensive criminal records and suspect profiling data." + }, + { + "id": "zip_unzip_item", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_item", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_hidden", + "type": "Hidden_Item", + "description": "Hidden item required to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "secure_payload.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "Gsqfsh asggous fseiwfwbu FCH-B sbqfmdhwcb" + } + ], + "outputs": [ + { + "name": "item", + "type": "Item", + "description": "item in the zip" + } + ], + "init": { + "inputs": { + "zip_id": "secure_payload.zip" + }, + "outputs": {} + }, + "narrative": "This is the Locked Evidence Safe. It requires input from the Anonymous Note to unlock its digital seals." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "Plasma_Rifle_Mk4_Blueprint_Data" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_bcdeb19c295336fb" + } + ], + "init": { + "inputs": { + "blueprint": "Plasma_Rifle_Mk4_Blueprint_Data" + }, + "outputs": {} + }, + "narrative": "This is the Evidence Replicator. A specialized 3D printing device used to duplicate objects found at crime scenes." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "This is the Victim's Locket. A small silver locket found on the victim's body. It seems unusually heavy." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Téxt tø nòrmalîzè for processing" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "Téxt tø nòrmalîzè for processing" + } + ], + "init": { + "inputs": { + "text": "Téxt tø nòrmalîzè for processing", + "form": "NFC" + }, + "outputs": {} + }, + "narrative": "This is the Suspect's Diary. A battered leather-bound notebook containing erratic handwritten notes." + }, + { + "id": "text_rotN_ef42", + "name": "ROT-N Cipher", + "description": "Caesar shift by N.", + "type": "Tool", + "template_id": "text_rotN", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Secret message requiring ROT-N encryption" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Shift N", + "value": "12345678901234567890" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Rotated text", + "value": "Gsqfsh asggous fseiwfwbu FCH-B sbqfmdhwcb" + } + ], + "init": { + "inputs": { + "text": "Secret message requiring ROT-N encryption", + "n": "12345678901234567890" + }, + "outputs": {} + }, + "narrative": "This is the Anonymous Note. A threatening letter made entirely of cut-out magazine letters found at the scene." + } + ], + "edges": [ + { + "source_id": "calc_inv_mod", + "target_id": "text_rotN", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "n" + }, + { + "source_id": "calc_bigmul", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "mod" + }, + { + "source_id": "terminal_1", + "target_id": "calc_inv_mod", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "trigger_item" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_inv_mod", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "a" + }, + { + "source_id": "checksum_crc32", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "b" + }, + { + "source_id": "terminal_1", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex" + }, + { + "source_id": "calc_bigmul_ce3b", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "slot_b" + }, + { + "source_id": "num_base_convert", + "target_id": "calc_bigmul_ce3b", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "calc_bigmul_89db", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "s" + }, + { + "source_id": "calc_inv_mod_6b2b", + "target_id": "calc_bigmul_89db", + "connection_type": "Big_Int", + "source_port": "inv", + "target_port": "b" + }, + { + "source_id": "calc_bigmul_537b", + "target_id": "calc_inv_mod_6b2b", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "a" + }, + { + "source_id": "calc_bigmul_537b", + "target_id": "num_base_convert", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "from_base" + }, + { + "source_id": "calc_bigmul_00d6", + "target_id": "calc_bigmul_537b", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "b" + }, + { + "source_id": "item_16", + "target_id": "calc_inv_mod_6b2b", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul_00d6", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "num_base_convert_c641", + "target_id": "calc_bigmul_00d6", + "connection_type": "Big_Int", + "source_port": "str", + "target_port": "b" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_inv_mod_6b2b", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "mod" + }, + { + "source_id": "calc_modexp", + "target_id": "calc_bigmul_89db", + "connection_type": "Big_Int", + "source_port": "value", + "target_port": "a" + }, + { + "source_id": "graph_shortest_path", + "target_id": "calc_bigmul_537b", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "a" + }, + { + "source_id": "zip_unzip_item", + "target_id": "terminal_1", + "connection_type": "Item", + "source_port": "item", + "target_port": "trigger_item" + }, + { + "source_id": "graph_shortest_path", + "target_id": "num_base_convert_c641", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "from_base" + }, + { + "source_id": "matter_synthesizer", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "source_tool" + }, + { + "source_id": "item_8", + "target_id": "zip_unzip_item", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "trigger_hidden" + }, + { + "source_id": "unicode_norm", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "unicode_norm", + "target_id": "text_rotN", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "text_rotN_ef42", + "target_id": "zip_unzip_item", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "password" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_a8f008ed_narrative.json b/data/questions/20/narrative/skeleton_a8f008ed_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..624fcea8d5920ccd35d9c72a63d4f50ec0d99c9f --- /dev/null +++ b/data/questions/20/narrative/skeleton_a8f008ed_narrative.json @@ -0,0 +1,1270 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 22, + "win_node_id": "hash_md5", + "win_condition": { + "type": "tool_output", + "node_id": "hash_md5", + "output_port": "hex", + "output_type": "Hex_String", + "description": "Execute MD5 Hasher and get the output from port 'hex'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "json_get", + "zip_unzip_file", + "hash_sha256", + "graph_shortest_path", + "zip_unzip_file_beb8", + "zip_unzip_file_d519", + "hex_encode", + "zip_unzip_file_48b8", + "terminal_2", + "item_11", + "unicode_norm", + "terminal_1_2a34" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "json_get": { + "node_name": "JSON Getter", + "node_type": "Tool", + "template_id": "json_get", + "init_inputs": {}, + "init_outputs": { + "values": { + "type": "Text_Generic", + "description": "Extracted values" + } + } + }, + "zip_unzip_file": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": {}, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "hash_sha256": { + "node_name": "SHA-256 Hasher", + "node_type": "Tool", + "template_id": "hash_sha256", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text to hash" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "zip_unzip_file_beb8": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "zip_unzip_file_d519": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "hex_encode": { + "node_name": "Text to Hex Encoder", + "node_type": "Tool", + "template_id": "hex_encode", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + } + }, + "init_outputs": {} + }, + "zip_unzip_file_48b8": { + "node_name": "Zip Unzipper", + "node_type": "Tool", + "template_id": "zip_unzip_file", + "init_inputs": { + "zip_id": { + "type": "File_Id", + "description": "Zip file ID" + }, + "password": { + "type": "Text_Generic", + "description": "Password" + } + }, + "init_outputs": { + "files": { + "type": "File_Id", + "description": "Extracted file ID" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": { + "num1": { + "type": "Big_Int", + "description": "First Number" + } + }, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "item_11": { + "node_name": "", + "node_type": "Item", + "template_id": "item_11", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Code_Python", + "description": "Python code" + } + } + }, + "unicode_norm": { + "node_name": "Unicode Normalizer", + "node_type": "Tool", + "template_id": "unicode_norm", + "init_inputs": { + "text": { + "type": "Text_Generic", + "description": "Text" + }, + "form": { + "type": "Text_Generic", + "description": "Form" + } + }, + "init_outputs": {} + }, + "terminal_1_2a34": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": { + "slot_a": { + "type": "Text_Generic", + "description": "Input Slot A" + }, + "slot_b": { + "type": "Big_Int", + "description": "Input Slot B" + } + }, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": { + "slot_a": "Initialization sequence alpha starting now." + }, + "init_outputs": { + "text_output": "Terminal 1 execution generated this text output successfully.", + "hex_output": "a1b2c3d4e5f60718293a" + } + }, + "json_get": { + "init_inputs": {}, + "init_outputs": { + "values": "[\"name\", \"age\", \"location\", \"status\", \"role\"]" + } + }, + "zip_unzip_file": { + "init_inputs": {}, + "init_outputs": { + "files": "extracted_archive_main.zip" + } + }, + "hash_sha256": { + "init_inputs": { + "text": "Data payload to be hashed with sha256 algorithm." + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"vertex_1\", \"vertex_2\", \"vertex_3\", \"vertex_4\", \"vertex_5\", \"vertex_6\", \"vertex_7\"]", + "cost": "00000000000000456789" + } + }, + "zip_unzip_file_beb8": { + "init_inputs": { + "password": "secure_pass_beb8_991" + }, + "init_outputs": { + "files": "unzipped_beb8_docs.rar" + } + }, + "zip_unzip_file_d519": { + "init_inputs": { + "zip_id": "encrypted_d519_source.zip", + "password": "password_d519_secret" + }, + "init_outputs": { + "files": "unzipped_d519_output.csv" + } + }, + "hex_encode": { + "init_inputs": { + "text": "Text payload to be converted into hex string format." + }, + "init_outputs": {} + }, + "zip_unzip_file_48b8": { + "init_inputs": { + "zip_id": "compressed_48b8_data.zip", + "password": "pass_48b8_super_safe" + }, + "init_outputs": { + "files": "result_48b8_docs.pdf" + } + }, + "terminal_2": { + "init_inputs": { + "num1": "58392019283746573829" + }, + "init_outputs": { + "text_result": "Terminal 2 executed partial input and produced this.", + "hex_result": "f1e2d3c4b5a69788796a" + } + }, + "item_11": { + "init_inputs": {}, + "init_outputs": { + "content": "def calculate_sum(a, b):\n return a + b\n" + } + }, + "unicode_norm": { + "init_inputs": { + "text": "café au lait with some accents", + "form": "NFC" + }, + "init_outputs": {} + }, + "terminal_1_2a34": { + "init_inputs": { + "slot_a": "Terminal 1_2a34 slot A input initialization.", + "slot_b": "94857362514253647586" + }, + "init_outputs": { + "text_output": "Execution of terminal 1_2a34 has completed successfully.", + "hex_output": "deadbeef1234567890ab", + "item_dispenser": "A completely useless item taking up your space." + } + } + }, + "intro_narrative": "You've successfully infiltrated the subterranean server farm of OmniCorp. The air is frigid, humming with the relentless sound of cooling fans and spinning drives. Your objective is clear: breach the mainframe and extract the encrypted ledger before the automated security sweep locks down the sector forever. To achieve this, you must navigate their segmented intranet, decrypt secure drives, and piece together fragments of digital override keys hidden throughout the facility. Time is running out.", + "narrative_style": "techno_thriller" + }, + "nodes": [ + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "5HIl5A==" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "d9b8c343d19145e59dcbe7f50e0a792f" + } + ], + "narrative": "This is the Mainframe Authenticator. It requires input from the Signal Encoder to grant you final access to the system." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool", + "value": "synthesized_item_92a8d334b9d70a02" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "e47225e4" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "5HIl5A==" + } + ], + "narrative": "This is a Signal Encoder. It requires input from the Data Integrity Scanner to modulate the outgoing transmission." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "a1b2c3d4e5f60718293a" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "e47225e4" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 3832686052 + } + ], + "narrative": "This is a Data Integrity Scanner. It requires input from the Primary Control Console to verify the payload." + }, + { + "id": "matter_synthesizer", + "name": "Matter Synthesizer", + "description": "Synthesizes physical objects from data blueprints.", + "type": "Tool", + "template_id": "matter_synthesizer", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "blueprint", + "type": "Text_Generic", + "description": "Object Blueprint", + "value": "[\"name\", \"age\", \"location\", \"status\", \"role\"]" + } + ], + "outputs": [ + { + "name": "output_slot", + "type": "Item", + "description": "Synthesized Object", + "value": "synthesized_item_92a8d334b9d70a02" + } + ], + "narrative": "This is a 3D Fabrication Unit. It requires input from the Data Extraction Module to print the necessary physical component." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Initialization sequence alpha starting now." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "00000000000000456789" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Terminal 1 execution generated this text output successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "a1b2c3d4e5f60718293a" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided" + } + ], + "init": { + "inputs": { + "slot_a": "Initialization sequence alpha starting now." + }, + "outputs": { + "text_output": "Terminal 1 execution generated this text output successfully.", + "hex_output": "a1b2c3d4e5f60718293a" + } + }, + "narrative": "This is the Primary Control Console. It requires input from the Network Routing Analyst to process its override commands." + }, + { + "id": "json_get", + "name": "JSON Getter", + "description": "Extract values by simple JSONPath.", + "type": "Tool", + "template_id": "json_get", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "JSON file ID", + "value": "extracted_archive_main.zip" + }, + { + "name": "jsonpath", + "type": "Text_Generic", + "description": "JSONPath expression", + "value": "Terminal 2 executed partial input and produced this." + } + ], + "outputs": [ + { + "name": "values", + "type": "Text_Generic", + "description": "Extracted values", + "value": "[\"name\", \"age\", \"location\", \"status\", \"role\"]" + } + ], + "init": { + "inputs": {}, + "outputs": { + "values": "[\"name\", \"age\", \"location\", \"status\", \"role\"]" + } + }, + "narrative": "This is a Data Extraction Module. It requires inputs from the Encrypted Archive Extractor and the Secondary Logic Console to parse out the correct schematics." + }, + { + "id": "zip_unzip_file", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "unzipped_d519_output.csv" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "(no output)" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "extracted_archive_main.zip" + } + ], + "init": { + "inputs": {}, + "outputs": { + "files": "extracted_archive_main.zip" + } + }, + "narrative": "This is an Encrypted Archive Extractor. It requires inputs from the Logic Execution Engine and the Core System Archive to decrypt the targeted files." + }, + { + "id": "code_py_exec", + "name": "Python Executor", + "description": "Run limited Python: only safe builtins.", + "type": "Tool", + "template_id": "code_py_exec", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "code", + "type": "Code_Python", + "description": "Python code", + "value": "def calculate_sum(a, b):\n return a + b\n" + } + ], + "outputs": [ + { + "name": "stdout", + "type": "Text_Generic", + "description": "Standard Output (includes errors if any)", + "value": "(no output)" + } + ], + "narrative": "This is a Logic Execution Engine. It requires input from the Logic Microchip to run its custom subroutines." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "ae1951d144a0c096e1413a8bf60e6ddff7f1a604c6cf2a93e20cd0a6bc63c139" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a Secure Lockbox. It requires input from the Biometric Hash Generator to release its mechanical lock." + }, + { + "id": "hash_sha256", + "name": "SHA-256 Hasher", + "description": "SHA-256 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Data payload to be hashed with sha256 algorithm." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "SHA-256 Hex digest", + "value": "ae1951d144a0c096e1413a8bf60e6ddff7f1a604c6cf2a93e20cd0a6bc63c139" + } + ], + "init": { + "inputs": { + "text": "Data payload to be hashed with sha256 algorithm." + }, + "outputs": {} + }, + "narrative": "A Biometric Hash Generator embedded in the wall." + }, + { + "id": "graph_shortest_path", + "name": "Shortest Path Finder", + "description": "Shortest path on graph json file with edges list.", + "type": "Tool", + "template_id": "graph_shortest_path", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "file_id", + "type": "File_Id", + "description": "Graph JSON file ID", + "value": "unzipped_beb8_docs.rar" + }, + { + "name": "src", + "type": "Text_Generic", + "description": "Source node", + "value": "café au lait with some accents" + }, + { + "name": "dst", + "type": "Text_Generic", + "description": "Destination node", + "value": "Execution of terminal 1_2a34 has completed successfully." + } + ], + "outputs": [ + { + "name": "path", + "type": "Text_Generic", + "description": "Path list", + "value": "[\"vertex_1\", \"vertex_2\", \"vertex_3\", \"vertex_4\", \"vertex_5\", \"vertex_6\", \"vertex_7\"]" + }, + { + "name": "cost", + "type": "Big_Int", + "description": "Path cost", + "value": "00000000000000456789" + } + ], + "init": { + "inputs": {}, + "outputs": { + "path": "[\"vertex_1\", \"vertex_2\", \"vertex_3\", \"vertex_4\", \"vertex_5\", \"vertex_6\", \"vertex_7\"]", + "cost": "00000000000000456789" + } + }, + "narrative": "This is a Network Routing Analyst terminal. It requires inputs from the Network Map Archive, the String Normalization Drive, and the Targeting Terminal to calculate a safe path." + }, + { + "id": "container_1_e0d3", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "54657874207061796c6f616420746f20626520636f6e76657274656420696e746f2068657820737472696e6720666f726d61742e" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is an Auxiliary Lockbox. It requires input from the Hexadecimal Translator to disengage its magnetic seal." + }, + { + "id": "zip_unzip_file_beb8", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "result_48b8_docs.pdf" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "secure_pass_beb8_991" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "unzipped_beb8_docs.rar" + } + ], + "init": { + "inputs": { + "password": "secure_pass_beb8_991" + }, + "outputs": { + "files": "unzipped_beb8_docs.rar" + } + }, + "narrative": "This is a Network Map Archive. It requires input from the Encrypted Network Drive to access its hidden directories." + }, + { + "id": "zip_unzip_file_d519", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "encrypted_d519_source.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "password_d519_secret" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "unzipped_d519_output.csv" + } + ], + "init": { + "inputs": { + "zip_id": "encrypted_d519_source.zip", + "password": "password_d519_secret" + }, + "outputs": { + "files": "unzipped_d519_output.csv" + } + }, + "narrative": "A Core System Archive isolated from the main power grid." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "Text payload to be converted into hex string format." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "54657874207061796c6f616420746f20626520636f6e76657274656420696e746f2068657820737472696e6720666f726d61742e" + } + ], + "init": { + "inputs": { + "text": "Text payload to be converted into hex string format." + }, + "outputs": {} + }, + "narrative": "A Hexadecimal Translator humming quietly on a steel desk." + }, + { + "id": "zip_unzip_file_48b8", + "name": "Zip Unzipper", + "description": "Unzip a password-protected zip file by id.", + "type": "Tool", + "template_id": "zip_unzip_file", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "zip_id", + "type": "File_Id", + "description": "Zip file ID", + "value": "compressed_48b8_data.zip" + }, + { + "name": "password", + "type": "Text_Generic", + "description": "Password", + "value": "pass_48b8_super_safe" + } + ], + "outputs": [ + { + "name": "files", + "type": "File_Id", + "description": "Extracted file ID", + "value": "result_48b8_docs.pdf" + } + ], + "init": { + "inputs": { + "zip_id": "compressed_48b8_data.zip", + "password": "pass_48b8_super_safe" + }, + "outputs": { + "files": "result_48b8_docs.pdf" + } + }, + "narrative": "An Encrypted Network Drive that seems to store old backup files." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "58392019283746573829" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": "00000000000000456789" + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Terminal 2 executed partial input and produced this." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "f1e2d3c4b5a69788796a" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": { + "num1": "58392019283746573829" + }, + "outputs": { + "text_result": "Terminal 2 executed partial input and produced this.", + "hex_result": "f1e2d3c4b5a69788796a" + } + }, + "narrative": "This is the Secondary Logic Console. It requires input from the Network Routing Analyst to bypass internal firewalls." + }, + { + "id": "item_11", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_11", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Code_Python", + "description": "Python code", + "value": "def calculate_sum(a, b):\n return a + b\n" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "def calculate_sum(a, b):\n return a + b\n" + } + }, + "narrative": "A Logic Microchip with exposed gold contacts." + }, + { + "id": "unicode_norm", + "name": "Unicode Normalizer", + "description": "Unicode normalize (NFC/NFD/NFKC/NFKD).", + "type": "Tool", + "template_id": "unicode_norm", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "café au lait with some accents" + }, + { + "name": "form", + "type": "Text_Generic", + "description": "Form", + "value": "NFC" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Normalized text", + "value": "café au lait with some accents" + } + ], + "init": { + "inputs": { + "text": "café au lait with some accents", + "form": "NFC" + }, + "outputs": {} + }, + "narrative": "A String Normalization Drive used to clean up corrupted data streams." + }, + { + "id": "terminal_1_2a34", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "Terminal 1_2a34 slot A input initialization." + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "94857362514253647586" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Execution of terminal 1_2a34 has completed successfully." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "deadbeef1234567890ab" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "A completely useless item taking up your space." + } + ], + "init": { + "inputs": { + "slot_a": "Terminal 1_2a34 slot A input initialization.", + "slot_b": "94857362514253647586" + }, + "outputs": { + "text_output": "Execution of terminal 1_2a34 has completed successfully.", + "hex_output": "deadbeef1234567890ab", + "item_dispenser": "A completely useless item taking up your space." + } + }, + "narrative": "A Targeting Terminal with a blinking green cursor." + } + ], + "edges": [ + { + "source_id": "base64_encode", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "text" + }, + { + "source_id": "checksum_crc32", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "matter_synthesizer", + "target_id": "base64_encode", + "connection_type": "Item", + "source_port": "output_slot", + "target_port": "trigger_item" + }, + { + "source_id": "terminal_1", + "target_id": "checksum_crc32", + "connection_type": "Hex_String", + "source_port": "hex_output", + "target_port": "hex" + }, + { + "source_id": "json_get", + "target_id": "matter_synthesizer", + "connection_type": "Text_Generic", + "source_port": "values", + "target_port": "blueprint" + }, + { + "source_id": "zip_unzip_file", + "target_id": "json_get", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "code_py_exec", + "target_id": "zip_unzip_file", + "connection_type": "Text_Generic", + "source_port": "stdout", + "target_port": "password" + }, + { + "source_id": "container_1", + "target_id": "code_py_exec", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "hash_sha256", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_1", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "slot_b" + }, + { + "source_id": "container_1_e0d3", + "target_id": "zip_unzip_file", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "zip_unzip_file_beb8", + "target_id": "graph_shortest_path", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "file_id" + }, + { + "source_id": "terminal_1", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "item_dispenser", + "target_port": "source_tool" + }, + { + "source_id": "zip_unzip_file_d519", + "target_id": "zip_unzip_file", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "hex_encode", + "target_id": "container_1_e0d3", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "zip_unzip_file_48b8", + "target_id": "zip_unzip_file_beb8", + "connection_type": "File_Id", + "source_port": "files", + "target_port": "zip_id" + }, + { + "source_id": "terminal_2", + "target_id": "json_get", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "jsonpath" + }, + { + "source_id": "item_11", + "target_id": "code_py_exec", + "connection_type": "Code_Python", + "source_port": "content", + "target_port": "code" + }, + { + "source_id": "unicode_norm", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "src" + }, + { + "source_id": "terminal_2", + "target_id": "item_11", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "graph_shortest_path", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "cost", + "target_port": "num2" + }, + { + "source_id": "terminal_1_2a34", + "target_id": "graph_shortest_path", + "connection_type": "Text_Generic", + "source_port": "text_output", + "target_port": "dst" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_a8f2622d_narrative.json b/data/questions/20/narrative/skeleton_a8f2622d_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..dc370ec652f5ccb3ed125b7e83e261373094e379 --- /dev/null +++ b/data/questions/20/narrative/skeleton_a8f2622d_narrative.json @@ -0,0 +1,976 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 21, + "win_node_id": "item_16", + "win_condition": { + "type": "item_content", + "node_id": "item_16", + "description": "Obtain the content of " + }, + "source_init": { + "source_nodes": [ + "item_16", + "terminal_2", + "crypto_rsa_decrypt_hex", + "checksum_crc32", + "calc_bigmul", + "item_1", + "regex_search" + ], + "by_node": { + "item_16": { + "node_name": "", + "node_type": "Item", + "template_id": "item_16", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Hidden_Item", + "description": "Timezone text" + } + } + }, + "terminal_2": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_2", + "init_inputs": {}, + "init_outputs": { + "text_result": { + "type": "Text_Generic", + "description": "Text result for partial input" + }, + "hex_result": { + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided" + } + } + }, + "crypto_rsa_decrypt_hex": { + "node_name": "RSA Decrypt", + "node_type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "init_inputs": { + "hex_cipher": { + "type": "Hex_String", + "description": "Ciphertext (Hex)" + }, + "n": { + "type": "Big_Int", + "description": "Modulus n" + }, + "d": { + "type": "Big_Int", + "description": "Private exponent d" + } + }, + "init_outputs": {} + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "a": { + "type": "Big_Int", + "description": "First large integer" + } + }, + "init_outputs": {} + }, + "item_1": { + "node_name": "", + "node_type": "Item", + "template_id": "item_1", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "Big_Int", + "description": "The number" + } + } + }, + "regex_search": { + "node_name": "Regex Search", + "node_type": "Tool", + "template_id": "regex_search", + "init_inputs": { + "pattern": { + "type": "Text_Generic", + "description": "Regex pattern" + }, + "file_id": { + "type": "File_Id", + "description": "File ID (optional)" + }, + "text": { + "type": "Text_Generic", + "description": "Text (optional)" + } + }, + "init_outputs": { + "matches": { + "type": "Text_Generic", + "description": "Found matches (List)" + } + } + } + } + }, + "initial_values": { + "item_16": { + "init_inputs": {}, + "init_outputs": { + "content": "VmFuaXNoaW5nVGhlU3VuQXRUaGVNaWRuaWdodA==" + } + }, + "terminal_2": { + "init_inputs": {}, + "init_outputs": { + "text_result": "Partial execution text outcome.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "crypto_rsa_decrypt_hex": { + "init_inputs": { + "hex_cipher": "deadbeef1234567890abcdef12345678", + "n": "8273649182736491827364918273649", + "d": "3948572019283746501928374650192" + }, + "init_outputs": {} + }, + "checksum_crc32": { + "init_inputs": { + "hex": "0123456789abcdef" + }, + "init_outputs": {} + }, + "calc_bigmul": { + "init_inputs": { + "a": "123456789012345678901234567890" + }, + "init_outputs": {} + }, + "item_1": { + "init_inputs": {}, + "init_outputs": { + "content": "583920184756392018475639201847" + } + }, + "regex_search": { + "init_inputs": { + "pattern": "\\d{16}", + "file_id": "log_dump.txt", + "text": "Searching through this block of text for patterns." + }, + "init_outputs": { + "matches": "[\"1234567890123456\", \"9876543210987654\", \"1122334455667788\"]" + } + } + }, + "intro_narrative": "Rain lashes against the window of your dimly lit precinct office. You are the lead detective on a high-profile corporate espionage case that has just turned into a murder investigation. The victim left behind a trail of encrypted files, hidden containers, and locked terminals. To find the killer, you must piece together the fragmented evidence scattered across your office and the crime scene. Your ultimate goal is to retrieve the final confidential evidence file that will blow this entire syndicate wide open.", + "narrative_style": "detective" + }, + "nodes": [ + { + "id": "item_16", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_16", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "Timezone text", + "value": "VmFuaXNoaW5nVGhlU3VuQXRUaGVNaWRuaWdodA==" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "VmFuaXNoaW5nVGhlU3VuQXRUaGVNaWRuaWdodA==" + } + }, + "narrative": "A confidential Evidence File containing the final proof to close the case." + }, + { + "id": "container_2", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_2", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "0e23f2cd3a61874f30fdce7c4c596c1d595bf90e3249fa9a0b826e2c7f7cc901" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a Biometric Safe. It requires input from the Authentication Server to disengage its locks." + }, + { + "id": "hmac_sha256", + "name": "HMAC-SHA256 Calculator", + "description": "HMAC-SHA256(text) with hex key.", + "type": "Tool", + "template_id": "hmac_sha256", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_key", + "type": "Hex_String", + "description": "Hex key", + "value": "7317bae3f964bc4c33b9aab902ab90e8" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text message", + "value": "C2dVF3JOHTIKJw==" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "HMAC Hex digest", + "value": "0e23f2cd3a61874f30fdce7c4c596c1d595bf90e3249fa9a0b826e2c7f7cc901" + } + ], + "narrative": "This is an Authentication Server. It requires inputs from both the Fingerprint Scanner and the Text Filter to grant access." + }, + { + "id": "hash_md5", + "name": "MD5 Hasher", + "description": "MD5 over UTF-8 text; returns hex.", + "type": "Tool", + "template_id": "hash_md5", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to hash", + "value": "Partial execution text outcome." + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "MD5 Hex digest", + "value": "7317bae3f964bc4c33b9aab902ab90e8" + } + ], + "narrative": "This is a Fingerprint Scanner. It requires input from the Main Computer to calibrate." + }, + { + "id": "text_bidi_sanitize", + "name": "Bidi Sanitizer", + "description": "Strip bidi control chars.", + "type": "Tool", + "template_id": "text_bidi_sanitize", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "C2dVF3JOHTIKJw==" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Sanitized text", + "value": "C2dVF3JOHTIKJw==" + } + ], + "narrative": "This is a Text Filter. It requires input from the Transmission Uplink to clear out corrupted data." + }, + { + "id": "item_8", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Hidden Box D, a heavy iron container." + }, + { + "id": "container_4", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_4", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + }, + { + "name": "fingerprint_input", + "type": "Text_Generic", + "description": "Fingerprint Hash", + "value": "[\"1234567890123456\", \"9876543210987654\", \"1122334455667788\"]" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is an Evidence Locker. It requires input from the Police Database to verify authorization." + }, + { + "id": "base64_encode", + "name": "Base64 Encoder", + "description": "Encode hex bytes to base64.", + "type": "Tool", + "template_id": "base64_encode", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "trigger_item", + "type": "Item", + "description": "Required item to unlock this tool" + }, + { + "name": "hex", + "type": "Hex_String", + "description": "Hex bytes", + "value": "0b675517724e1d320a27" + } + ], + "outputs": [ + { + "name": "b64", + "type": "Text_Generic", + "description": "Base64 string", + "value": "C2dVF3JOHTIKJw==" + } + ], + "narrative": "This is a Transmission Uplink. It requires input from the Format Converter to establish a secure line." + }, + { + "id": "terminal_2", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_2", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "num1", + "type": "Big_Int", + "description": "First Number", + "value": "72088911049519796931183070275599707399517659834125534892830" + }, + { + "name": "num2", + "type": "Big_Int", + "description": "Second Number", + "value": 684183982 + } + ], + "outputs": [ + { + "name": "text_result", + "type": "Text_Generic", + "description": "Text result for partial input", + "value": "Partial execution text outcome." + }, + { + "name": "hex_result", + "type": "Hex_String", + "description": "Hexadecimal result when both inputs provided", + "value": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + }, + { + "name": "math_token", + "type": "Item", + "description": "Mathematics token when both inputs provided" + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_result": "Partial execution text outcome.", + "hex_result": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "narrative": "This is the Main Computer. It requires inputs from both the Integrity Checker and the Scale Calculator to boot up." + }, + { + "id": "container_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "container_1", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Item", + "description": "Produced by" + }, + { + "name": "fingerprint_input", + "type": "Hex_String", + "description": "Fingerprint Hash", + "value": "0b675517724e1d320a27" + } + ], + "outputs": [ + { + "name": "inner_space", + "type": "Item", + "description": "Contents" + } + ], + "narrative": "This is a Locked Drawer. It requires input from the Format Converter to spring open." + }, + { + "id": "hex_encode", + "name": "Text to Hex Encoder", + "description": "Encode UTF-8 text to hex.", + "type": "Tool", + "template_id": "hex_encode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text", + "value": "\u000bgU\u0017rN\u001d2\n'" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Encoded hex", + "value": "0b675517724e1d320a27" + } + ], + "narrative": "This is a Format Converter. It requires input from the Decoder Ring to process the encrypted clues." + }, + { + "id": "item_8_6b71", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Hidden Box C, discovered behind a suspect's portrait." + }, + { + "id": "item_8_3ecf", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Hidden Box B, wrapped in crime scene tape." + }, + { + "id": "crypto_rsa_decrypt_hex", + "name": "RSA Decrypt", + "description": "RSA decrypt (hex cipher) with n,d (decimal).", + "type": "Tool", + "template_id": "crypto_rsa_decrypt_hex", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex_cipher", + "type": "Hex_String", + "description": "Ciphertext (Hex)", + "value": "deadbeef1234567890abcdef12345678" + }, + { + "name": "n", + "type": "Big_Int", + "description": "Modulus n", + "value": "8273649182736491827364918273649" + }, + { + "name": "d", + "type": "Big_Int", + "description": "Private exponent d", + "value": "3948572019283746501928374650192" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decrypted text", + "value": "\u000bgU\u0017rN\u001d2\n'" + } + ], + "init": { + "inputs": { + "hex_cipher": "deadbeef1234567890abcdef12345678", + "n": "8273649182736491827364918273649", + "d": "3948572019283746501928374650192" + }, + "outputs": {} + }, + "narrative": "An antique Decoder Ring confiscated from the crime scene." + }, + { + "id": "item_8_c12e", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": false, + "is_revealed": false, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "Hidden Box A, concealed beneath a loose floorboard." + }, + { + "id": "item_8_57e7", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_8", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "source_tool", + "type": "Hidden_Item", + "description": "Produced by" + } + ], + "outputs": [ + { + "name": "content", + "type": "Hidden_Item", + "description": "The integer" + } + ], + "narrative": "A dusty Old Chest tucked in the corner of the room." + }, + { + "id": "checksum_crc32", + "name": "CRC32 Checksum", + "description": "CRC32 over hex bytes.", + "type": "Tool", + "template_id": "checksum_crc32", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex data", + "value": "0123456789abcdef" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "CRC32 Hex", + "value": "28c7d1ae" + }, + { + "name": "int", + "type": "Big_Int", + "description": "CRC32 Int", + "value": 684183982 + } + ], + "init": { + "inputs": { + "hex": "0123456789abcdef" + }, + "outputs": {} + }, + "narrative": "A digital Integrity Checker used by the cyber forensics team." + }, + { + "id": "calc_bigmul", + "name": "Big Number Multiplier", + "description": "Multiply two (very large) decimal integers represented as strings.", + "type": "Tool", + "template_id": "calc_bigmul", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "a", + "type": "Big_Int", + "description": "First large integer", + "value": "123456789012345678901234567890" + }, + { + "name": "b", + "type": "Big_Int", + "description": "Second large integer", + "value": "583920184756392018475639201847" + } + ], + "outputs": [ + { + "name": "product", + "type": "Big_Int", + "description": "Product result", + "value": "72088911049519796931183070275599707399517659834125534892830" + } + ], + "init": { + "inputs": { + "a": "123456789012345678901234567890" + }, + "outputs": {} + }, + "narrative": "This is a Scale Calculator. It requires input from the Victim's Ledger to reconstruct the fraudulent transactions." + }, + { + "id": "item_1", + "name": "", + "description": "", + "type": "Item", + "template_id": "item_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "container", + "type": "Hidden_Item", + "description": "Inside" + } + ], + "outputs": [ + { + "name": "content", + "type": "Big_Int", + "description": "The number", + "value": "583920184756392018475639201847" + } + ], + "init": { + "inputs": {}, + "outputs": { + "content": "583920184756392018475639201847" + } + }, + "narrative": "The Victim's Ledger, found half-burnt in the fireplace." + }, + { + "id": "regex_search", + "name": "Regex Search", + "description": "Search regex in either raw text or a file.", + "type": "Tool", + "template_id": "regex_search", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "pattern", + "type": "Text_Generic", + "description": "Regex pattern", + "value": "\\d{16}" + }, + { + "name": "file_id", + "type": "File_Id", + "description": "File ID (optional)", + "value": "log_dump.txt" + }, + { + "name": "text", + "type": "Text_Generic", + "description": "Text (optional)", + "value": "Searching through this block of text for patterns." + } + ], + "outputs": [ + { + "name": "matches", + "type": "Text_Generic", + "description": "Found matches (List)", + "value": "[\"1234567890123456\", \"9876543210987654\", \"1122334455667788\"]" + } + ], + "init": { + "inputs": { + "pattern": "\\d{16}", + "file_id": "log_dump.txt", + "text": "Searching through this block of text for patterns." + }, + "outputs": { + "matches": "[\"1234567890123456\", \"9876543210987654\", \"1122334455667788\"]" + } + }, + "narrative": "A direct line to the central Police Database." + } + ], + "edges": [ + { + "source_id": "container_2", + "target_id": "item_16", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "source_tool" + }, + { + "source_id": "hmac_sha256", + "target_id": "container_2", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "hash_md5", + "target_id": "hmac_sha256", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex_key" + }, + { + "source_id": "text_bidi_sanitize", + "target_id": "hmac_sha256", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "item_8", + "target_id": "container_2", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "container_4", + "target_id": "text_bidi_sanitize", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "base64_encode", + "target_id": "text_bidi_sanitize", + "connection_type": "Text_Generic", + "source_port": "b64", + "target_port": "text" + }, + { + "source_id": "terminal_2", + "target_id": "hash_md5", + "connection_type": "Text_Generic", + "source_port": "text_result", + "target_port": "text" + }, + { + "source_id": "container_1", + "target_id": "base64_encode", + "connection_type": "Item", + "source_port": "inner_space", + "target_port": "trigger_item" + }, + { + "source_id": "hex_encode", + "target_id": "base64_encode", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "hex" + }, + { + "source_id": "item_8_6b71", + "target_id": "item_8", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "hex_encode", + "target_id": "container_1", + "connection_type": "Hex_String", + "source_port": "hex", + "target_port": "fingerprint_input" + }, + { + "source_id": "item_8_3ecf", + "target_id": "container_4", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "container" + }, + { + "source_id": "terminal_2", + "target_id": "container_1", + "connection_type": "Item", + "source_port": "math_token", + "target_port": "source_tool" + }, + { + "source_id": "crypto_rsa_decrypt_hex", + "target_id": "hex_encode", + "connection_type": "Text_Generic", + "source_port": "text", + "target_port": "text" + }, + { + "source_id": "item_8_c12e", + "target_id": "item_8_6b71", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "item_8_57e7", + "target_id": "item_8_c12e", + "connection_type": "Hidden_Item", + "source_port": "content", + "target_port": "source_tool" + }, + { + "source_id": "checksum_crc32", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "int", + "target_port": "num2" + }, + { + "source_id": "calc_bigmul", + "target_id": "terminal_2", + "connection_type": "Big_Int", + "source_port": "product", + "target_port": "num1" + }, + { + "source_id": "item_1", + "target_id": "calc_bigmul", + "connection_type": "Big_Int", + "source_port": "content", + "target_port": "b" + }, + { + "source_id": "regex_search", + "target_id": "container_4", + "connection_type": "Text_Generic", + "source_port": "matches", + "target_port": "fingerprint_input" + } + ] +} \ No newline at end of file diff --git a/data/questions/20/narrative/skeleton_aa9de9ba_narrative.json b/data/questions/20/narrative/skeleton_aa9de9ba_narrative.json new file mode 100644 index 0000000000000000000000000000000000000000..e90808bd4057d5b0a614c20feb013d4a084d9cf1 --- /dev/null +++ b/data/questions/20/narrative/skeleton_aa9de9ba_narrative.json @@ -0,0 +1,1267 @@ +{ + "metadata": { + "total_nodes": 20, + "total_edges": 24, + "win_node_id": "hex_decode", + "win_condition": { + "type": "tool_output", + "node_id": "hex_decode", + "output_port": "text", + "output_type": "Text_Generic", + "description": "Execute Hex to Text Decoder and get the output from port 'text'" + }, + "source_init": { + "source_nodes": [ + "terminal_1", + "terminal_1_b26c", + "calc_bigmul", + "graph_shortest_path", + "terminal_1_393d", + "checksum_crc32", + "calc_gcd", + "graph_shortest_path_1884", + "graph_shortest_path_270b", + "hex_decode_fa7f", + "container_3", + "item_4" + ], + "by_node": { + "terminal_1": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + }, + "item_dispenser": { + "type": "Item", + "description": "Item output when both slots are provided" + } + } + }, + "terminal_1_b26c": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "calc_bigmul": { + "node_name": "Big Number Multiplier", + "node_type": "Tool", + "template_id": "calc_bigmul", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second large integer" + } + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": {}, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "terminal_1_393d": { + "node_name": "", + "node_type": "Tool", + "template_id": "terminal_1", + "init_inputs": {}, + "init_outputs": { + "text_output": { + "type": "Text_Generic", + "description": "Text output when only slot_a is provided" + }, + "hex_output": { + "type": "Hex_String", + "description": "Hex output when only slot_b is provided" + } + } + }, + "checksum_crc32": { + "node_name": "CRC32 Checksum", + "node_type": "Tool", + "template_id": "checksum_crc32", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex data" + } + }, + "init_outputs": {} + }, + "calc_gcd": { + "node_name": "BigInt GCD Calculator", + "node_type": "Tool", + "template_id": "calc_gcd", + "init_inputs": { + "b": { + "type": "Big_Int", + "description": "Second integer" + } + }, + "init_outputs": {} + }, + "graph_shortest_path_1884": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "graph_shortest_path_270b": { + "node_name": "Shortest Path Finder", + "node_type": "Tool", + "template_id": "graph_shortest_path", + "init_inputs": { + "file_id": { + "type": "File_Id", + "description": "Graph JSON file ID" + }, + "src": { + "type": "Text_Generic", + "description": "Source node" + }, + "dst": { + "type": "Text_Generic", + "description": "Destination node" + } + }, + "init_outputs": { + "path": { + "type": "Text_Generic", + "description": "Path list" + }, + "cost": { + "type": "Big_Int", + "description": "Path cost" + } + } + }, + "hex_decode_fa7f": { + "node_name": "Hex to Text Decoder", + "node_type": "Tool", + "template_id": "hex_decode", + "init_inputs": { + "hex": { + "type": "Hex_String", + "description": "Hex string" + } + }, + "init_outputs": {} + }, + "container_3": { + "node_name": "", + "node_type": "Item", + "template_id": "container_3", + "init_inputs": { + "fingerprint_input": { + "type": "Big_Int", + "description": "Fingerprint Hash" + } + }, + "init_outputs": {} + }, + "item_4": { + "node_name": "", + "node_type": "Item", + "template_id": "item_4", + "init_inputs": {}, + "init_outputs": { + "content": { + "type": "File_Id", + "description": "Zip file path" + } + } + } + } + }, + "initial_values": { + "terminal_1": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Initial data from terminal sequence A.", + "hex_output": "81a4f9b2d6e3c05f17b3a4c5e6d7f8a9", + "item_dispenser": "This dispenser gives you nothing useful at all." + } + }, + "terminal_1_b26c": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Secondary terminal processing sequence initialized.", + "hex_output": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d" + } + }, + "calc_bigmul": { + "init_inputs": { + "b": "39485710293847561029384756" + }, + "init_outputs": {} + }, + "graph_shortest_path": { + "init_inputs": {}, + "init_outputs": { + "path": "[\"A\", \"B\", \"C\", \"D\", \"E\", \"F\"]", + "cost": "245900" + } + }, + "terminal_1_393d": { + "init_inputs": {}, + "init_outputs": { + "text_output": "Terminal 393D standard output stream active.", + "hex_output": "deadbeef1234567890abcdef12345678" + } + }, + "checksum_crc32": { + "init_inputs": { + "hex": "112233445566778899aabbccddeeff00" + }, + "init_outputs": {} + }, + "calc_gcd": { + "init_inputs": { + "b": "8475619283746510293847561" + }, + "init_outputs": {} + }, + "graph_shortest_path_1884": { + "init_inputs": { + "file_id": "graph_1884.json", + "src": "Node_Start", + "dst": "Node_End" + }, + "init_outputs": { + "path": "[\"Start\", \"Node_1\", \"Node_2\", \"Node_3\", \"End\"]", + "cost": "893125" + } + }, + "graph_shortest_path_270b": { + "init_inputs": { + "file_id": "graph_270b.json", + "src": "Location_Alpha", + "dst": "Location_Omega" + }, + "init_outputs": { + "path": "[\"Alpha\", \"Beta\", \"Gamma\", \"Delta\", \"Omega\"]", + "cost": "16" + } + }, + "hex_decode_fa7f": { + "init_inputs": { + "hex": "68656c6c6f20776f726c642074657374" + }, + "init_outputs": {} + }, + "container_3": { + "init_inputs": { + "fingerprint_input": "47382910485726394857102938" + }, + "init_outputs": {} + }, + "item_4": { + "init_inputs": {}, + "init_outputs": { + "content": "archive_payload.zip" + } + } + }, + "intro_narrative": "Welcome to the study of the late cryptographer Elias Thorne. The room is dimly lit, filled with strange mechanical devices and thick layers of dust. The authorities believe Thorne hid the ultimate secret society roster in this very room before his disappearance. Your objective is to follow his trail of clues, activate the dormant machinery, and finally extract the roster from his antique typewriter. You have exactly one hour before the building is demolished. Look carefully—every device is connected, and the output of one often serves as the key to another. Will you uncover the truth?", + "narrative_style": "mystery" + }, + "nodes": [ + { + "id": "hex_decode", + "name": "Hex to Text Decoder", + "description": "Decode hex to UTF-8 text.", + "type": "Tool", + "template_id": "hex_decode", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Hex string", + "value": "789c4b4bcc294e05000616020c" + } + ], + "outputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Decoded text", + "value": "xKK)N\u0005\u0000\u0006\u0016\u0002\f" + } + ], + "narrative": "This is the antique typewriter. It requires input from the pressure valve system to type out its final message." + }, + { + "id": "zlib_deflate", + "name": "Zlib Deflate", + "description": "Deflate text to zlib bytes (hex).", + "type": "Tool", + "template_id": "zlib_deflate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "text", + "type": "Text_Generic", + "description": "Text to compress", + "value": "false" + } + ], + "outputs": [ + { + "name": "hex", + "type": "Hex_String", + "description": "Compressed hex", + "value": "789c4b4bcc294e05000616020c" + } + ], + "narrative": "This is the pressure valve system. It requires input from the identity scanner to adjust the pressure." + }, + { + "id": "luhn_check", + "name": "Luhn Checker", + "description": "Luhn validity of number string.", + "type": "Tool", + "template_id": "luhn_check", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "number", + "type": "Text_Generic", + "description": "Number string", + "value": "Initial data from terminal sequence A." + } + ], + "outputs": [ + { + "name": "valid", + "type": "Text_Generic", + "description": "True/False string", + "value": "false" + } + ], + "narrative": "This is the identity scanner. It requires input from the main vault door before it can scan." + }, + { + "id": "terminal_1", + "name": "", + "description": "", + "type": "Tool", + "template_id": "terminal_1", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "slot_a", + "type": "Text_Generic", + "description": "Input Slot A", + "value": "False" + }, + { + "name": "slot_b", + "type": "Big_Int", + "description": "Input Slot B", + "value": "9709536161257115257125711500400" + } + ], + "outputs": [ + { + "name": "text_output", + "type": "Text_Generic", + "description": "Text output when only slot_a is provided", + "value": "Initial data from terminal sequence A." + }, + { + "name": "hex_output", + "type": "Hex_String", + "description": "Hex output when only slot_b is provided", + "value": "81a4f9b2d6e3c05f17b3a4c5e6d7f8a9" + }, + { + "name": "item_dispenser", + "type": "Item", + "description": "Item output when both slots are provided", + "value": "This dispenser gives you nothing useful at all." + } + ], + "init": { + "inputs": {}, + "outputs": { + "text_output": "Initial data from terminal sequence A.", + "hex_output": "81a4f9b2d6e3c05f17b3a4c5e6d7f8a9", + "item_dispenser": "This dispenser gives you nothing useful at all." + } + }, + "narrative": "This is the main vault door. It requires inputs from the banking terminal and the analytical engine to unlock." + }, + { + "id": "iban_validate", + "name": "IBAN Validator", + "description": "IBAN checksum validation.", + "type": "Tool", + "template_id": "iban_validate", + "initial_visible": true, + "is_revealed": true, + "inputs": [ + { + "name": "iban", + "type": "Text_Generic", + "description": "IBAN string", + "value": "\u001a+