[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C9XBA54DN7039JEEH5NQW1":3,"skill-same:01M7C9XBA54DN7039JEEH5NQW1":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":14,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":53},"01M7C9XBA54DN7039JEEH5NQW1","escalate-arch-runtime",null,"Only on explicit human request, run consent-gated Python introspection to recover routes or models missed by static extraction.","bionic-coding\u002Fcrux","bionic-coding","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F301040008?v=4","01M7C9T2NA1V1V0EF1M552HRB3","Bionic Coding","01M7C9T2P72H1AQV5T5PTBFNHN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fescalate-arch-runtime\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: escalate-arch-runtime\ndescription: \"Only on explicit human request, run consent-gated Python introspection to recover routes or models missed by static extraction.\"\ndisable-model-invocation: true\nmetadata:\n  tags: \"arch, runtime, introspection, escalation, security\"\n  bundles: \"crux-docs\"\n  risk_level: \"high\"\n  requires_access: \"write-tree\"\n  triggers: \"escalate the arch runtime | run the runtime arch introspection | recover the routes by running my app | introspect my FastAPI\u002FFlask\u002FDjango app for arch\"\n  routing_note: \"Human-invoked only. An optional fidelity upgrade a human may choose, never the remedy any crux surface points a reader at. Runs a Python target's import-time code in a subprocess-isolated child behind the two-factor `CRUX_ARCH_ALLOW_RUNTIME=1` consent gate; writes an advisory into `\u003Cdocs_dir>\u002Finbox\u002F`, never into `arch\u002F`.\"\n---\n\n# Escalate Arch Runtime\n\nRecover the two arch surfaces static extraction is blind to — a framework's\nroute table and its ORM model schema — for **Python** targets, by running the\ntarget's **import-time** code in a confined subprocess. This is the highest-risk\ncapability in the project; every guarantee below is load-bearing.[^adr]\n\n## Scope — an optional fidelity upgrade, never a pointed-to remedy\n\nThis skill is an optional fidelity upgrade a human may choose, never the\nremedy any crux surface points a reader at.[^clause-11] `derive-arch` never\nnames this skill, offers it, or points a reader here — a stubbed verdict, or\nan exit-2 `ParserUnavailable` with no verdict at all, is a recorded fact, not\nan invitation to escalate. Invocation starts only from a human's own explicit\nrequest, named in the frontmatter `description` above.\n\n## When this runs — the two-factor consent gate\n\nExecution runs only under two independent, non-model-mediated factors:\n\n- **Factor (a):** the standing capability flag `CRUX_ARCH_ALLOW_RUNTIME=1`, set\n  out-of-band by a human, off by default, never auto-detected. The executor\n  reads it directly and enforces a fail-closed floor: it requires a TTY and\n  refuses under any CI marker (`CI`, `CONTINUOUS_INTEGRATION`, `GITHUB_ACTIONS`,\n  `GITLAB_CI`, `BUILDKITE`, `CIRCLECI`, `JENKINS_URL`, `TF_BUILD`), so it\n  hard-fails in CI even with the flag set.\n- **Factor (b):** a per-execution permission event — the harness permission\n  prompt on the executing tool call, or the human's own shell invocation. It is\n  enforced OUTSIDE the executor and is NEVER self-attested; no config value,\n  environment variable, or repo file substitutes for it.\n\nThe TTY check is a floor, not proof of consent. The guarantee that consent is\nnever model-mediated rests on three structural facts: this skill is human-\ninvoked only, is excluded from run-execution autonomy, and must not be\nallowlisted for auto-approval.\n\n## Invocation — one of two mutually exclusive grammars\n\nThe human names the target explicitly. The harness never auto-detects the\nframework.\n\nRun under the TARGET's interpreter (the one that can import the app's\ndependencies) via `--python`:\n\n```\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcrux\u002Farch\u002Fruntime\u002F__main__.py\" \\\n    --app \u003Cmodule>:\u003Cattr> \\\n    --python .venv\u002Fbin\u002Fpython --repo-root . --docs-dir bionic\n```\n\n- **FastAPI \u002F Flask:** `--app module:attr`, where `attr` is an app *instance*\n  (introspected directly — FastAPI `app.routes`, Flask `app.url_map`) or a\n  zero-argument application *factory* such as `create_app` (called with zero\n  args, then introspected). A factory that requires arguments yields an honest\n  no-capture, never a guess.\n- **Django:** `--settings module.path` and NO `--app`. The harness sets\n  `DJANGO_SETTINGS_MODULE`, injects a dummy DB backend, runs `django.setup()`,\n  walks `ROOT_URLCONF` (depth cap 50 + cycle guard), and reads\n  `apps.get_models()`. Django routes carry `method: null`.\n\nA module-level `app.run()` \u002F `uvicorn.run(app)` with no `__main__` guard blocks\non import; the harness cannot prevent that, so such a target yields no capture —\nkilled by the timeout — and never a hang.\n\n## Confinement (stdlib-only; Linux + macOS)\n\nPer-control, kernel-enforced where the platform provides the primitive and\nbest-effort where it does not:\n\n- **Temp-clone working tree** — the target's own package is copied into a scratch\n  tempdir (capped at 256 MiB, refused above), the child's cwd and `sys.path`\n  rooted there. This reroutes writes; it is not a filesystem boundary. A\n  same-UID absolute-path or native write to the real tree, the venv, or\n  `~\u002F.crux` is a stated residual an OS-level sandbox closes.\n- **Fresh strict env allowlist** — the child environment is built fresh, never\n  `os.environ.copy()`. Only `PATH`, `LANG`, `LC_*`, `HOME` (redirected to\n  scratch), and `DJANGO_SETTINGS_MODULE` survive, so no ambient secret reaches\n  the child.\n- **Network cut** — Linux enters `os.unshare(CLONE_NEWUSER | CLONE_NEWNET)`\n  (CPython 3.12+; fail-closes to no-capture when unavailable). macOS is\n  best-effort Python-level socket neutralization plus the audithook; a native\n  path can still open a socket there (stated residual).\n- **Resource caps + process-group lifecycle** — `RLIMIT_CPU` 30 s, `RLIMIT_AS`\n  2 GiB (Linux), `RLIMIT_NPROC` 64, `RLIMIT_NOFILE` 256 (soft == hard). The\n  parent waits with a wall-clock timeout (default 60 s, clamped 5–300), then\n  `killpg` SIGTERM → 5 s grace → SIGKILL. A `setsid` escapee MAY outlive the run\n  (stated residual).\n- **Audit deny-list** — `socket.*`, `subprocess.*`, `os.system`, `os.exec*`,\n  `os.fork`\u002F`forkpty`\u002F`posix_spawn`, and write-mode `open` outside scratch.\n\nEvery failure mode is a no-capture refusal, never a hang.\n\n## The capture is untrusted advisory data\n\nThe child writes a closed-schema JSON document to a dedicated descriptor. The\nparent drains it under a 4 MiB pre-parse byte cap and a deadline, then parses it\nwith `json.loads` ONLY, validates against a strict schema that rejects unknown\nkeys, applies count\u002Flength caps, and re-escapes every value through `derive`'s\n`_cell`. A forged capture is bounded to garbage advisory output a human reviews\nbefore filing; it never reaches the spine.\n\n## Where results land — outside `arch\u002F`\n\nThe advisory is written to `\u003Cdocs-dir>\u002Finbox\u002F`, marked `runtime_sourced: true`,\nwith provenance, no in-body clock, and no absolute paths. A human files it as a\nresearch synthesis page or a session brief. An optional OpenAPI-shaped fold-back\ncandidate is also written to `inbox\u002F`; a human may review and commit it into the\ntarget repo, where the deterministic extractor consumes it on the next normal\n`derive`. Nothing non-deterministic ever lands under `arch\u002F` or touches the\nspine hash.\n\n## Test surface\n\nThe harness tests run against the cycle-authored FastAPI, Flask, and Django\nfixture apps under `crux\u002Fscripts\u002Ftests\u002Ffixtures\u002Fruntime_*`, plus plain-Python\nhostile fixtures — never an arbitrary external application.\n\n[^adr]: The runtime-execution decision — the Python import-only runtime arch introspection executor, its confinement contract control-by-control, and its stated residuals — recorded in the target tree's ADRs.\n[^clause-11]: The script-driven arch extraction decision, the clause retiring `derive-arch`'s chat-only escalation offer and narrowing this skill's scope to a human-chosen fidelity upgrade — recorded in the target tree's ADRs.\n","# Escalate Arch Runtime\n\nRecover the two arch surfaces static extraction is blind to — a framework's\nroute table and its ORM model schema — for **Python** targets, by running the\ntarget's **import-time** code in a confined subprocess. This is the highest-risk\ncapability in the project; every guarantee below is load-bearing.[^adr]\n\n## Scope — an optional fidelity upgrade, never a pointed-to remedy\n\nThis skill is an optional fidelity upgrade a human may choose, never the\nremedy any crux surface points a reader at.[^clause-11] `derive-arch` never\nnames this skill, offers it, or points a reader here — a stubbed verdict, or\nan exit-2 `ParserUnavailable` with no verdict at all, is a recorded fact, not\nan invitation to escalate. Invocation starts only from a human's own explicit\nrequest, named in the frontmatter `description` above.\n\n## When this runs — the two-factor consent gate\n\nExecution runs only under two independent, non-model-mediated factors:\n\n- **Factor (a):** the standing capability flag `CRUX_ARCH_ALLOW_RUNTIME=1`, set\n  out-of-band by a human, off by default, never auto-detected. The executor\n  reads it directly and enforces a fail-closed floor: it requires a TTY and\n  refuses under any CI marker (`CI`, `CONTINUOUS_INTEGRATION`, `GITHUB_ACTIONS`,\n  `GITLAB_CI`, `BUILDKITE`, `CIRCLECI`, `JENKINS_URL`, `TF_BUILD`), so it\n  hard-fails in CI even with the flag set.\n- **Factor (b):** a per-execution permission event — the harness permission\n  prompt on the executing tool call, or the human's own shell invocation. It is\n  enforced OUTSIDE the executor and is NEVER self-attested; no config value,\n  environment variable, or repo file substitutes for it.\n\nThe TTY check is a floor, not proof of consent. The guarantee that consent is\nnever model-mediated rests on three structural facts: this skill is human-\ninvoked only, is excluded from run-execution autonomy, and must not be\nallowlisted for auto-approval.\n\n## Invocation — one of two mutually exclusive grammars\n\nThe human names the target explicitly. The harness never auto-detects the\nframework.\n\nRun under the TARGET's interpreter (the one that can import the app's\ndependencies) via `--python`:\n\n```\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcrux\u002Farch\u002Fruntime\u002F__main__.py\" \\\n    --app \u003Cmodule>:\u003Cattr> \\\n    --python .venv\u002Fbin\u002Fpython --repo-root . --docs-dir bionic\n```\n\n- **FastAPI \u002F Flask:** `--app module:attr`, where `attr` is an app *instance*\n  (introspected directly — FastAPI `app.routes`, Flask `app.url_map`) or a\n  zero-argument application *factory* such as `create_app` (called with zero\n  args, then introspected). A factory that requires arguments yields an honest\n  no-capture, never a guess.\n- **Django:** `--settings module.path` and NO `--app`. The harness sets\n  `DJANGO_SETTINGS_MODULE`, injects a dummy DB backend, runs `django.setup()`,\n  walks `ROOT_URLCONF` (depth cap 50 + cycle guard), and reads\n  `apps.get_models()`. Django routes carry `method: null`.\n\nA module-level `app.run()` \u002F `uvicorn.run(app)` with no `__main__` guard blocks\non import; the harness cannot prevent that, so such a target yields no capture —\nkilled by the timeout — and never a hang.\n\n## Confinement (stdlib-only; Linux + macOS)\n\nPer-control, kernel-enforced where the platform provides the primitive and\nbest-effort where it does not:\n\n- **Temp-clone working tree** — the target's own package is copied into a scratch\n  tempdir (capped at 256 MiB, refused above), the child's cwd and `sys.path`\n  rooted there. This reroutes writes; it is not a filesystem boundary. A\n  same-UID absolute-path or native write to the real tree, the venv, or\n  `~\u002F.crux` is a stated residual an OS-level sandbox closes.\n- **Fresh strict env allowlist** — the child environment is built fresh, never\n  `os.environ.copy()`. Only `PATH`, `LANG`, `LC_*`, `HOME` (redirected to\n  scratch), and `DJANGO_SETTINGS_MODULE` survive, so no ambient secret reaches\n  the child.\n- **Network cut** — Linux enters `os.unshare(CLONE_NEWUSER | CLONE_NEWNET)`\n  (CPython 3.12+; fail-closes to no-capture when unavailable). macOS is\n  best-effort Python-level socket neutralization plus the audithook; a native\n  path can still open a socket there (stated residual).\n- **Resource caps + process-group lifecycle** — `RLIMIT_CPU` 30 s, `RLIMIT_AS`\n  2 GiB (Linux), `RLIMIT_NPROC` 64, `RLIMIT_NOFILE` 256 (soft == hard). The\n  parent waits with a wall-clock timeout (default 60 s, clamped 5–300), then\n  `killpg` SIGTERM → 5 s grace → SIGKILL. A `setsid` escapee MAY outlive the run\n  (stated residual).\n- **Audit deny-list** — `socket.*`, `subprocess.*`, `os.system`, `os.exec*`,\n  `os.fork`\u002F`forkpty`\u002F`posix_spawn`, and write-mode `open` outside scratch.\n\nEvery failure mode is a no-capture refusal, never a hang.\n\n## The capture is untrusted advisory data\n\nThe child writes a closed-schema JSON document to a dedicated descriptor. The\nparent drains it under a 4 MiB pre-parse byte cap and a deadline, then parses it\nwith `json.loads` ONLY, validates against a strict schema that rejects unknown\nkeys, applies count\u002Flength caps, and re-escapes every value through `derive`'s\n`_cell`. A forged capture is bounded to garbage advisory output a human reviews\nbefore filing; it never reaches the spine.\n\n## Where results land — outside `arch\u002F`\n\nThe advisory is written to `\u003Cdocs-dir>\u002Finbox\u002F`, marked `runtime_sourced: true`,\nwith provenance, no in-body clock, and no absolute paths. A human files it as a\nresearch synthesis page or a session brief. An optional OpenAPI-shaped fold-back\ncandidate is also written to `inbox\u002F`; a human may review and commit it into the\ntarget repo, where the deterministic extractor consumes it on the next normal\n`derive`. Nothing non-deterministic ever lands under `arch\u002F` or touches the\nspine hash.\n\n## Test surface\n\nThe harness tests run against the cycle-authored FastAPI, Flask, and Django\nfixture apps under `crux\u002Fscripts\u002Ftests\u002Ffixtures\u002Fruntime_*`, plus plain-Python\nhostile fixtures — never an arbitrary external application.\n\n[^adr]: The runtime-execution decision — the Python import-only runtime arch introspection executor, its confinement contract control-by-control, and its stated residuals — recorded in the target tree's ADRs.\n[^clause-11]: The script-driven arch extraction decision, the clause retiring `derive-arch`'s chat-only escalation offer and narrowing this skill's scope to a human-chosen fidelity upgrade — recorded in the target tree's ADRs.\n",{"name":5,"metadata":24,"description":7,"disable-model-invocation":31},{"tags":25,"bundles":26,"triggers":27,"risk_level":28,"routing_note":29,"requires_access":30},"arch, runtime, introspection, escalation, security","crux-docs","escalate the arch runtime | run the runtime arch introspection | recover the routes by running my app | introspect my FastAPI\u002FFlask\u002FDjango app for arch","high","Human-invoked only. An optional fidelity upgrade a human may choose, never the remedy any crux surface points a reader at. Runs a Python target's import-time code in a subprocess-isolated child behind the two-factor `CRUX_ARCH_ALLOW_RUNTIME=1` consent gate; writes an advisory into `\u003Cdocs_dir>\u002Finbox\u002F`, never into `arch\u002F`.","write-tree",true,"main","dd4f16e7ac12ff940790660ec897677284ae4b6d","crux\u002Fskills\u002Fescalate-arch-runtime","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux","https:\u002F\u002Fbionic-coding.com\u002Fcrux\u002F","https:\u002F\u002Fgithub.com\u002Fbionic-coding","https:\u002F\u002Fbionic-coding.com","Durable intent, disposable code.","2026-11-12 09:36:33",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":31},[43,46,49],{"tool":44,"command":45},"npx","npx skills add bionic-coding\u002Fcrux --skill escalate-arch-runtime",{"tool":47,"command":48},"bunx","bunx skills add bionic-coding\u002Fcrux --skill escalate-arch-runtime",{"tool":50,"command":51},"pnpm","pnpm dlx skills add bionic-coding\u002Fcrux --skill escalate-arch-runtime","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fescalate-arch-runtime\u002FSKILL.md",[],[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CA5PH4JT2V5WBTA5ZPJNS8","whiteboarding","Explore an idea through docs-informed dialogue before committing to a design. Capture the exploration for later filing as a brief.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fwhiteboarding\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CA5GZPSVNJJZYQMF0JT3EH","verify-code-docs","Check generated code documentation against source and report drift without regenerating it.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fverify-code-docs\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CA5A4HA73VF91N8VY6SDBN","transition-observation","Apply a human disposition to an observation's lifecycle state without changing its claim or body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-observation\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CA53X1ESGWKTPCEQ55JWEZ","transition-invariant","Ratify, reject, or retire an invariant on human direction. Update lifecycle metadata without changing the invariant's body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-invariant\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CA4Y2VC25NFZE0XJZ47VSX","transition-decision","Apply a human ratify, reject, or defer verdict to a recovered decision candidate; ratification creates a Proposed ADR or observation.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-decision\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7CA4QD9RFDC379VD9DNK90D","transition-brief","Publish or abandon a draft brief, updating lifecycle metadata and indexes without changing its body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-brief\u002FSKILL.md",[],[]]