[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CP4WWRG4TJAHNA45X7QRSH":3,"skill-same:01M7CP4WWRG4TJAHNA45X7QRSH":57},{"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":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":39,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":6,"updatedAt":42,"install":43,"resources":56},"01M7CP4WWRG4TJAHNA45X7QRSH","scion-sdk-development",null,"Develop, test, and release a change in scion-sdk: the connector control and transport layer every MCP connector builds on. Use when adding or changing a connector manifest, a typed port implementation, a source adapter, an artifact kind, a transport, a sink, or anything under scion_sdk\u002F, and when running or releasing this repository's gates.","Knuckles-Team\u002Fscion-sdk","Knuckles-Team","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F119072828?v=4","01M7CP4R36J2MNHGEWCJ8G7BXT","Knuckles Team","01M7CP4R3V4NC82YVMFF0CCV30",2,"MIT","https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fscion-sdk\u002Fblob\u002Fmain\u002Fscion_sdk\u002Fskills\u002Fscion-sdk-development\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: scion-sdk-development\ndomain: development\nskill_type: skill\ndescription: >-\n  Develop, test, and release a change in scion-sdk: the connector\n  control and transport layer every MCP connector builds on. Use when adding\n  or changing a connector manifest, a typed port implementation, a source\n  adapter, an artifact kind, a transport, a sink, or anything under\n  scion_sdk\u002F, and when running or releasing this repository's gates.\nlicense: MIT\ntags: [scion-sdk, development, connectors, mcp, manifest, gates]\nmetadata:\n  version: '0.1.0'\n---\n\n# scion-sdk development\n\n`scion-sdk` is the connector control and transport layer: secure\nFastMCP server construction, connector manifests and content publication,\ntyped extension ports, discovery\u002Fcertification, and governed HTTP\u002FTLS\u002F\ncredential handling. It does not own vendor API implementations, durable graph\nstorage, ontology reasoning, agents, or workflow orchestration — those belong\nto the owning connector, `medulla`, and the agent control plane.\n`meristem` is not a dependency of this package; keep dependency\ndirection enforceable by the `phase-direction` gate.\n\n## Step 0: route the feature\n\nRoute the feature before any code.\n\n1. Read the [ecosystem boundaries standard](https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fpipelines\u002Fblob\u002Fmain\u002Freference\u002Fecosystem-boundaries.md).\n2. Split the feature into parts with its routing procedure.\n3. If a part is not owned by scion-sdk, stop work on that part. Write its row in the owner's `specs\u002F`, then link it by ID.\n4. Continue here only with the parts that scion-sdk owns.\n\n## Spec-driven flow\n\nRun this before any code. Full table and gates: the Spec-driven development section of `AGENTS.md` and the [spec standard](https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fpipelines\u002Fblob\u002Fmain\u002Freference\u002Fspec-standard.md).\n\n1. Read `.specify\u002Fmemory\u002Fconstitution.md`; create it from `.specify\u002Ftemplates\u002Fconstitution-template.md` if absent (`speckit-constitution`).\n2. Specify the feature: `speckit-specify` gathers the inputs and writes `specs\u002F\u003Cstable-id>\u002Fspec.md` and `requirements.md`.\n3. Clarify: resolve every `[NEEDS CLARIFICATION: ...]` marker (`speckit-clarify`).\n4. Plan: `plan.md` from `.specify\u002Ftemplates\u002Fplan-template.md`, including Build contract, Production caller chain and Cross-repo seams (`speckit-plan`).\n5. Tasks: `tasks.md` lines `- [ ] T001 [P] [US1] \u003CROW-ID> ...` (`speckit-tasks`).\n6. Analyze: fix the gaps and fill `checklists\u002Frequirements.md` (`speckit-analyze`).\n7. Implement and land with the delivery contract in this skill (`speckit-implement`); release through pipelines `releases\u002F*.yml` bundles.\n\nNever write code for a row that is not SPECIFIED. Feature directories use the stable spec ID, never a numbered prefix. The state is computed from rows, `Spec:` trailers and test bindings; never write `status.json` or a `Status:` line.\n\n## Rapid delivery: the 5-minute contract\n\nSpecs are already designed. The work is implementation, delivered in very small, continuously landed slices.\n\n**Extend first (anti-sprawl)**\n- Before any code change, find the spec row that owns the behavior: `git grep -n \"\u003Cterm>\" -- specs`. Cite its ID in the commit `Spec:` trailer.\n- Before any new spec text, extend the owning spec: a child row (`R012.4`), a new rollup at the end of that spec, or a dated entry in the `plan.md` section \"Amendments\". Create a new spec only for a capability that no spec owns, and record the search in \"Why a new spec\".\n- Audits, reviews, gap analyses and carry-overs never get a spec directory. Their findings land in the spec that owns the row; a finding against another repository lands in that repository's spec.\n- Before any new function, module, planner, selector or store, search for the existing one and reuse it. A second implementation of an owned capability is a defect, not a delivery.\n- The rules are in `specs\u002FREADME.md`. The `spec-standard` gate enforces the names, file set, title and index.\n\n**Time and size**\n- One agent delivers one PR in 5 minutes or less. No agent or sub-agent runs longer than 5 minutes; an orchestrator dispatches the next slice to a fresh agent.\n- Self-timer (hard): run `date +%s > \u002Ftmp\u002Fagent-start-$$` as your FIRST command, and before every later step check elapsed with `echo $(( $(date +%s) - $(cat \u002Ftmp\u002Fagent-start-*) ))`. At 300 s, stop starting new work. At 480 s, commit what passes, push it, open the PR, report and STOP. Never exceed 600 s. Never wait on CI or background jobs; use `git commit --no-verify` and `git push --no-verify` after running pre-commit on the changed files yourself.\n- CI turns around in 5 minutes or less. PR CI runs the fast subset: lint, type check, the spec check, and only the tests and crates the diff touches. Pushes to main run the full suite.\n- CI timer (hard): every PR-path job carries `timeout-minutes: ${{ github.event_name == 'pull_request' && 10 || 60 }}`, so a PR gate is killed at 10 minutes and a slow gate shows up as a failure instead of a silent queue.\n- Never spawn sub-agents from a delivery agent.\n\n**Investigation budget**\n- At most 2 minutes and about 10 tool calls of reading before the first edit, and at most about 25 tool calls per PR.\n- If the change is not clear by then, ship the `.1` slice (typed model plus refusal test) or skip the row with a one-line note. Do not write deferral essays.\n- Trust the orchestrator's evidence and ID list; do not re-verify it.\n\n**Sizing (deterministic)**\n- Split a requirement when its size score is above 6, it names more than 2 code roots, or it is cross-repo. Children are `\u003CID>.\u003Cn>`, producer first.\n- Net-new work is sliced, never skipped: `.1` typed model plus validation and refusal tests, `.2` the one entry point that uses it, `.3`+ each further behavior.\n- Cross-repo moves split into one child per repo: the destination copies the behavior first, then the source switches importers and deletes.\n\n**Specs update themselves (land VERIFIED, not just LANDED)**\n- Every commit that delivers a requirement ends with the trailer `Spec: \u003CID>[, \u003CID>...]`. A commit that touches code without delivering one says `Spec: none (ci|deps|refactor|fix-forward)`.\n- Every delivered ID gets at least one test bound to it in the same PR. Python: `@pytest.mark.spec(\"\u003CID>\")`. Rust\u002FTypeScript: a `\u002F\u002F spec: \u003CID>` line directly above the test.\n- Never write `status.json`; the state is computed (`pipelines-hook spec-status`). Never write placeholder SHAs. If the work is only part of a requirement, decompose it into `\u003CID>.\u003Cn>` children first and deliver whole children.\n- Write the marker with the literal ID, never a variable. Put `Spec:` and `Co-Authored-By:` on consecutive lines in the last paragraph of the commit message, or `Spec:` is not read as a trailer.\n- Status is computed at read time and never committed; `pipelines-hook spec-status --write` writes an ignored local copy.\n- The generator applies the rules. Run `pipelines-hook spec-status` to see each row's state.\n\n**Delivered means the row's acceptance is met**\n- Never delete or stub out behaviour whose replacement is not wired. Never make a caller \"fail closed\" in place of repointing it. Never substitute a scope, weaken an assertion or add an allowlist entry to pass a gate.\n- If the replacement lives in another repository, do not deliver: record the blocker in the row, name the missing capability, and stop. The orchestrator adds the row in the owning repository.\n- Never re-add a path that another requirement retired; report the conflict.\n- Valid outcomes are DELIVERED (with a bound test), SPLIT, BLOCKED and GAP (a \"landed\" row that is not really delivered). A half-delivery is not an outcome.\n\n**Where progress shows**\n- The repository's spec-delivery page computes each state at read time from rows, `Spec:` trailers and test bindings. SPECIFIED is written, LANDED is on main, VERIFIED is on main with a bound test.\n\n**Before every push**\n- Work in a real `git worktree add` from `origin\u002Fmain`. Never edit a shared checkout, never `git stash`, never `git add -A`, never force-push.\n- Run the repo's own pre-commit on the changed files: `uvx --from pre-commit==4.6.0 pre-commit run --files $(git diff --name-only origin\u002Fmain...HEAD)`. Fix every failure. No `noqa`, `type: ignore`, skip, xfail or whitelist entries to pass a gate.\n- Run the targeted tests only, never a full suite. Run the type checker on every changed file, and keep each function at cyclomatic complexity 10 or less.\n\n**Landing**\n- Every PR lands within minutes of going green; no PR sits idle. Mechanical conflicts (generated files, Markdown) are resolved automatically by the merge-train tool. Real conflicts are additive in most cases and are resolved, not deferred.\n- Many open PRs land together as a merge train: one integration branch and one CI run.\n- Full CI on main catches what the fast subset missed; regressions are fixed forward immediately.\n- Landing in this repo: `gh pr merge --auto --merge` when the PR opens. The required checks are the fast PR subset. If the PR goes DIRTY, merge `origin\u002Fmain` into it and push.\n\n**Report**: at most 8 lines: PR URL, requirement IDs, test result, and any `ID:\u003Cmain sha>` proof for rows already on main.\n\n## Bulk delivery\n\nHigh-rate delivery follows the [bulk delivery standard](https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fpipelines\u002Fblob\u002Fmain\u002Freference\u002Fbulk-delivery.md).\n\n- Four separate stages, run by different workers: writing, batched validation, fixing red results only, and automatic merge on green.\n- Writers implement one served-method slice of at most 8 rows, push the branch, and never build, test or wait on CI. They format only and run both hook stages.\n- Validation workers build branches in batches and record green as a commit status on the exact head SHA.\n- A writer never makes an open design choice. It records the question; the decision is written into the owning spec row first, then the row is implemented.\n- Only rows implemented completely, with their bound test, go in the `Spec:` trailer. Remainders are re-queued.\n\n## What the SDK provides\n\n- **Manifest model** (`scion_sdk\u002Fmanifest\u002F`): the connector manifest\n  schema, sync presets, tool-schema fingerprints, and loaders (`model.py`,\n  `loader.py`, `presets.py`, `tool_schema.py`, `live_contract.py`).\n- **Typed ports** (`scion_sdk\u002Fports\u002F`): one protocol per extension\n  boundary — `source_adapter` (extracts records from a source stream),\n  `artifact_kind` (lists\u002Fvalidates\u002Fmaps one kind of MCP-served content,\n  including the `skill` kind in `scion_sdk\u002Fartifacts\u002Fskills.py`),\n  `transport` (opens sessions), `sink` (durably accepts batches and content\n  packs), `writeback` (applies a Medulla-owned change set through an authorized\n  source transport), and `repair_proposals`.\n- **Reference adapters** (`scion_sdk\u002Fadapters\u002F`): the shipped\n  `scion_sdk.source_adapters` entry point (`mcp_tool`) and the event\n  feed adapter.\n- **Discovery and activation** (`scion_sdk\u002Fdiscovery.py`): a\n  connector extension self-registers as a Python entry point in one of four\n  groups — `scion_sdk.source_adapters`, `.artifact_kinds`,\n  `.transports`, `.sinks` — declared under `[project.entry-points.*]` in its\n  own `pyproject.toml`. `discover_extensions(group)` lists what is installed;\n  `load_extension(group, name, policy=...)` loads it only when an\n  `ActivationPolicy` (e.g. `CertifiedExtensions`) authorizes the exact\n  `(group, name, distribution, version)` tuple — there is no permissive\n  default. `connector-certify` (`scion_sdk.certify.cli:main`) is the\n  separate console script that checks a running connector's declared sync tools\n  against their live definitions.\n- **Public surface contract** (`pyproject.toml`\n  `[tool.scion_sdk.wiring] public_modules`): the declared roots for\n  this repository's own wiring gate. A module is reachable when it is in that\n  list, is the target of a `[project.entry-points]` value, or is imported\n  (directly or transitively) from a reachable module; every public name must\n  also be exercised by a test under `tests\u002F`.\n\n## How to build a connector with it\n\n1. Declare each ingestible source with `source_meta(...)` on its read tool\n   (`scion_sdk.ingest.live_declaration`); the server serves them at\n   `connector:\u002F\u002Fresources`.\n2. Implement the typed port(s) the connector needs (`SourceAdapter`,\n   `ArtifactKind`, `Transport`, `Sink`, `WriteBackPort`, ...) from\n   `scion_sdk\u002Fports\u002F`.\n3. Register each implementation as an entry point in the connector's own\n   `pyproject.toml`, under the matching `scion_sdk.*` group, so\n   `discover_extensions` finds it and an `ActivationPolicy` can certify it.\n4. Prove conformance with the reusable suites in\n   `scion_sdk\u002Ftesting\u002F`: `source_adapters` (capability descriptor,\n   pagination, checkpoint resume, idempotent re-run, malformed-input\n   rejection, provenance completeness), `artifact_kinds` (listing, validation,\n   deterministic digests, record mapping, malformed-entry rejection), and\n   `writeback` (dry-run, optimistic conflict, authorization, idempotency,\n   uncertain-outcome reconciliation) — assert with\n   `scion_sdk.testing.results.assert_conformant`.\n5. Run `connector-certify -- COMMAND [ARG ...]` against the connector's own MCP\n   server to confirm its declared sync tools are valid before it is certified\n   for activation.\n\n## How to test it\n\n`AGENTS.md` \"Setup\" and \"Commands\" are the source of truth; read them first.\nIn short:\n\n1. Bootstrap once: `scripts\u002Fbootstrap.sh` (idempotent; add `--scanners` for\n   the pinned native cccc, KISS, dupehound and jscpd scanners, which need\n   cargo and npm). A Claude Code cloud session runs it through\n   `.claude\u002Fhooks\u002Fsession-start.sh`.\n2. Tests: `uv run --frozen python -m pytest -q`.\n3. Gates: `uvx --from pre-commit==4.6.0 pre-commit run --config\n   .config\u002Fpre-commit.yaml --all-files`, then the same command with\n   `--hook-stage pre-push` (tests, wheel build, secret history) and with\n   `--hook-stage manual` (native scanners, privacy, fleet gates).\n\nThe wiring gates run inside the pre-commit stage as `check-orphan-modules` and\n`check-public-api-tested` (`uv run --frozen python scripts\u002Fcheck_wiring.py\norphans|public-api`); the maintainer-only fleet gates `dependency-readiness`\nand `phase-direction` (`bash scripts\u002Frun_fleet_gate.sh \u003Cgate>`) run at the\nmanual stage and print `SKIPPED (\u003Cgate>): \u003Creason>` outside the fleet\nworkspace layout. While editing a public documentation surface, also run:\n\n```bash\npre-commit try-repo ..\u002Fpipelines public-surface --all-files\n```\n\nA hook whose prerequisite is missing prints `SKIPPED (\u003Cgate>): \u003Creason>` and\nexits 0 locally; with `CI` set it exits 2 (`CANNOT RUN`). Never bypass, baseline,\nor suppress a failing gate — fix its cause.\n\n## How to release it\n\nHosted CI is `.github\u002Fworkflows\u002Frelease.yml`: `gates` (the whole\n`.config\u002Fpre-commit.yaml` suite, pre-commit then pre-push stage) must pass\nbefore `build` (a byte-identical wheel built twice) runs; the pinned\ncccc\u002FKISS\u002Fdupehound\u002Fjscpd scanners report weekly in `advisory.yml`; `publish-pypi` runs only on a\n`v*` tag push, after `uv lock --check`.\n\nThis repository is a shared multi-worktree checkout:\n\n- Create a real worktree before changing files —\n  `git worktree add \u003Cpath> -b \u003Cbranch> main` — never harness-managed worktree\n  isolation (`EnterWorktree`), which can alter shared Git configuration for\n  every linked checkout.\n- Never use `git stash`; its stack is shared by all worktrees.\n- Never stage with `git add -A` or `git add .`; stage an explicit path\n  allowlist, then inspect `git diff --cached`.\n- Do not overwrite another lane's branch, generated files, lockfile, or\n  uncommitted changes.\n- **Do not use `--no-verify`.** Commit, push, tag, publish, and deploy are\n  distinct operations and each needs its own completed gates and authority.\n- Work on a topic branch, push it, and open a pull request against `main`\n  (draft until gates pass); `gates` and `build` must be green before merge.\n","# scion-sdk development\n\n`scion-sdk` is the connector control and transport layer: secure\nFastMCP server construction, connector manifests and content publication,\ntyped extension ports, discovery\u002Fcertification, and governed HTTP\u002FTLS\u002F\ncredential handling. It does not own vendor API implementations, durable graph\nstorage, ontology reasoning, agents, or workflow orchestration — those belong\nto the owning connector, `medulla`, and the agent control plane.\n`meristem` is not a dependency of this package; keep dependency\ndirection enforceable by the `phase-direction` gate.\n\n## Step 0: route the feature\n\nRoute the feature before any code.\n\n1. Read the [ecosystem boundaries standard](https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fpipelines\u002Fblob\u002Fmain\u002Freference\u002Fecosystem-boundaries.md).\n2. Split the feature into parts with its routing procedure.\n3. If a part is not owned by scion-sdk, stop work on that part. Write its row in the owner's `specs\u002F`, then link it by ID.\n4. Continue here only with the parts that scion-sdk owns.\n\n## Spec-driven flow\n\nRun this before any code. Full table and gates: the Spec-driven development section of `AGENTS.md` and the [spec standard](https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fpipelines\u002Fblob\u002Fmain\u002Freference\u002Fspec-standard.md).\n\n1. Read `.specify\u002Fmemory\u002Fconstitution.md`; create it from `.specify\u002Ftemplates\u002Fconstitution-template.md` if absent (`speckit-constitution`).\n2. Specify the feature: `speckit-specify` gathers the inputs and writes `specs\u002F\u003Cstable-id>\u002Fspec.md` and `requirements.md`.\n3. Clarify: resolve every `[NEEDS CLARIFICATION: ...]` marker (`speckit-clarify`).\n4. Plan: `plan.md` from `.specify\u002Ftemplates\u002Fplan-template.md`, including Build contract, Production caller chain and Cross-repo seams (`speckit-plan`).\n5. Tasks: `tasks.md` lines `- [ ] T001 [P] [US1] \u003CROW-ID> ...` (`speckit-tasks`).\n6. Analyze: fix the gaps and fill `checklists\u002Frequirements.md` (`speckit-analyze`).\n7. Implement and land with the delivery contract in this skill (`speckit-implement`); release through pipelines `releases\u002F*.yml` bundles.\n\nNever write code for a row that is not SPECIFIED. Feature directories use the stable spec ID, never a numbered prefix. The state is computed from rows, `Spec:` trailers and test bindings; never write `status.json` or a `Status:` line.\n\n## Rapid delivery: the 5-minute contract\n\nSpecs are already designed. The work is implementation, delivered in very small, continuously landed slices.\n\n**Extend first (anti-sprawl)**\n- Before any code change, find the spec row that owns the behavior: `git grep -n \"\u003Cterm>\" -- specs`. Cite its ID in the commit `Spec:` trailer.\n- Before any new spec text, extend the owning spec: a child row (`R012.4`), a new rollup at the end of that spec, or a dated entry in the `plan.md` section \"Amendments\". Create a new spec only for a capability that no spec owns, and record the search in \"Why a new spec\".\n- Audits, reviews, gap analyses and carry-overs never get a spec directory. Their findings land in the spec that owns the row; a finding against another repository lands in that repository's spec.\n- Before any new function, module, planner, selector or store, search for the existing one and reuse it. A second implementation of an owned capability is a defect, not a delivery.\n- The rules are in `specs\u002FREADME.md`. The `spec-standard` gate enforces the names, file set, title and index.\n\n**Time and size**\n- One agent delivers one PR in 5 minutes or less. No agent or sub-agent runs longer than 5 minutes; an orchestrator dispatches the next slice to a fresh agent.\n- Self-timer (hard): run `date +%s > \u002Ftmp\u002Fagent-start-$$` as your FIRST command, and before every later step check elapsed with `echo $(( $(date +%s) - $(cat \u002Ftmp\u002Fagent-start-*) ))`. At 300 s, stop starting new work. At 480 s, commit what passes, push it, open the PR, report and STOP. Never exceed 600 s. Never wait on CI or background jobs; use `git commit --no-verify` and `git push --no-verify` after running pre-commit on the changed files yourself.\n- CI turns around in 5 minutes or less. PR CI runs the fast subset: lint, type check, the spec check, and only the tests and crates the diff touches. Pushes to main run the full suite.\n- CI timer (hard): every PR-path job carries `timeout-minutes: ${{ github.event_name == 'pull_request' && 10 || 60 }}`, so a PR gate is killed at 10 minutes and a slow gate shows up as a failure instead of a silent queue.\n- Never spawn sub-agents from a delivery agent.\n\n**Investigation budget**\n- At most 2 minutes and about 10 tool calls of reading before the first edit, and at most about 25 tool calls per PR.\n- If the change is not clear by then, ship the `.1` slice (typed model plus refusal test) or skip the row with a one-line note. Do not write deferral essays.\n- Trust the orchestrator's evidence and ID list; do not re-verify it.\n\n**Sizing (deterministic)**\n- Split a requirement when its size score is above 6, it names more than 2 code roots, or it is cross-repo. Children are `\u003CID>.\u003Cn>`, producer first.\n- Net-new work is sliced, never skipped: `.1` typed model plus validation and refusal tests, `.2` the one entry point that uses it, `.3`+ each further behavior.\n- Cross-repo moves split into one child per repo: the destination copies the behavior first, then the source switches importers and deletes.\n\n**Specs update themselves (land VERIFIED, not just LANDED)**\n- Every commit that delivers a requirement ends with the trailer `Spec: \u003CID>[, \u003CID>...]`. A commit that touches code without delivering one says `Spec: none (ci|deps|refactor|fix-forward)`.\n- Every delivered ID gets at least one test bound to it in the same PR. Python: `@pytest.mark.spec(\"\u003CID>\")`. Rust\u002FTypeScript: a `\u002F\u002F spec: \u003CID>` line directly above the test.\n- Never write `status.json`; the state is computed (`pipelines-hook spec-status`). Never write placeholder SHAs. If the work is only part of a requirement, decompose it into `\u003CID>.\u003Cn>` children first and deliver whole children.\n- Write the marker with the literal ID, never a variable. Put `Spec:` and `Co-Authored-By:` on consecutive lines in the last paragraph of the commit message, or `Spec:` is not read as a trailer.\n- Status is computed at read time and never committed; `pipelines-hook spec-status --write` writes an ignored local copy.\n- The generator applies the rules. Run `pipelines-hook spec-status` to see each row's state.\n\n**Delivered means the row's acceptance is met**\n- Never delete or stub out behaviour whose replacement is not wired. Never make a caller \"fail closed\" in place of repointing it. Never substitute a scope, weaken an assertion or add an allowlist entry to pass a gate.\n- If the replacement lives in another repository, do not deliver: record the blocker in the row, name the missing capability, and stop. The orchestrator adds the row in the owning repository.\n- Never re-add a path that another requirement retired; report the conflict.\n- Valid outcomes are DELIVERED (with a bound test), SPLIT, BLOCKED and GAP (a \"landed\" row that is not really delivered). A half-delivery is not an outcome.\n\n**Where progress shows**\n- The repository's spec-delivery page computes each state at read time from rows, `Spec:` trailers and test bindings. SPECIFIED is written, LANDED is on main, VERIFIED is on main with a bound test.\n\n**Before every push**\n- Work in a real `git worktree add` from `origin\u002Fmain`. Never edit a shared checkout, never `git stash`, never `git add -A`, never force-push.\n- Run the repo's own pre-commit on the changed files: `uvx --from pre-commit==4.6.0 pre-commit run --files $(git diff --name-only origin\u002Fmain...HEAD)`. Fix every failure. No `noqa`, `type: ignore`, skip, xfail or whitelist entries to pass a gate.\n- Run the targeted tests only, never a full suite. Run the type checker on every changed file, and keep each function at cyclomatic complexity 10 or less.\n\n**Landing**\n- Every PR lands within minutes of going green; no PR sits idle. Mechanical conflicts (generated files, Markdown) are resolved automatically by the merge-train tool. Real conflicts are additive in most cases and are resolved, not deferred.\n- Many open PRs land together as a merge train: one integration branch and one CI run.\n- Full CI on main catches what the fast subset missed; regressions are fixed forward immediately.\n- Landing in this repo: `gh pr merge --auto --merge` when the PR opens. The required checks are the fast PR subset. If the PR goes DIRTY, merge `origin\u002Fmain` into it and push.\n\n**Report**: at most 8 lines: PR URL, requirement IDs, test result, and any `ID:\u003Cmain sha>` proof for rows already on main.\n\n## Bulk delivery\n\nHigh-rate delivery follows the [bulk delivery standard](https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fpipelines\u002Fblob\u002Fmain\u002Freference\u002Fbulk-delivery.md).\n\n- Four separate stages, run by different workers: writing, batched validation, fixing red results only, and automatic merge on green.\n- Writers implement one served-method slice of at most 8 rows, push the branch, and never build, test or wait on CI. They format only and run both hook stages.\n- Validation workers build branches in batches and record green as a commit status on the exact head SHA.\n- A writer never makes an open design choice. It records the question; the decision is written into the owning spec row first, then the row is implemented.\n- Only rows implemented completely, with their bound test, go in the `Spec:` trailer. Remainders are re-queued.\n\n## What the SDK provides\n\n- **Manifest model** (`scion_sdk\u002Fmanifest\u002F`): the connector manifest\n  schema, sync presets, tool-schema fingerprints, and loaders (`model.py`,\n  `loader.py`, `presets.py`, `tool_schema.py`, `live_contract.py`).\n- **Typed ports** (`scion_sdk\u002Fports\u002F`): one protocol per extension\n  boundary — `source_adapter` (extracts records from a source stream),\n  `artifact_kind` (lists\u002Fvalidates\u002Fmaps one kind of MCP-served content,\n  including the `skill` kind in `scion_sdk\u002Fartifacts\u002Fskills.py`),\n  `transport` (opens sessions), `sink` (durably accepts batches and content\n  packs), `writeback` (applies a Medulla-owned change set through an authorized\n  source transport), and `repair_proposals`.\n- **Reference adapters** (`scion_sdk\u002Fadapters\u002F`): the shipped\n  `scion_sdk.source_adapters` entry point (`mcp_tool`) and the event\n  feed adapter.\n- **Discovery and activation** (`scion_sdk\u002Fdiscovery.py`): a\n  connector extension self-registers as a Python entry point in one of four\n  groups — `scion_sdk.source_adapters`, `.artifact_kinds`,\n  `.transports`, `.sinks` — declared under `[project.entry-points.*]` in its\n  own `pyproject.toml`. `discover_extensions(group)` lists what is installed;\n  `load_extension(group, name, policy=...)` loads it only when an\n  `ActivationPolicy` (e.g. `CertifiedExtensions`) authorizes the exact\n  `(group, name, distribution, version)` tuple — there is no permissive\n  default. `connector-certify` (`scion_sdk.certify.cli:main`) is the\n  separate console script that checks a running connector's declared sync tools\n  against their live definitions.\n- **Public surface contract** (`pyproject.toml`\n  `[tool.scion_sdk.wiring] public_modules`): the declared roots for\n  this repository's own wiring gate. A module is reachable when it is in that\n  list, is the target of a `[project.entry-points]` value, or is imported\n  (directly or transitively) from a reachable module; every public name must\n  also be exercised by a test under `tests\u002F`.\n\n## How to build a connector with it\n\n1. Declare each ingestible source with `source_meta(...)` on its read tool\n   (`scion_sdk.ingest.live_declaration`); the server serves them at\n   `connector:\u002F\u002Fresources`.\n2. Implement the typed port(s) the connector needs (`SourceAdapter`,\n   `ArtifactKind`, `Transport`, `Sink`, `WriteBackPort`, ...) from\n   `scion_sdk\u002Fports\u002F`.\n3. Register each implementation as an entry point in the connector's own\n   `pyproject.toml`, under the matching `scion_sdk.*` group, so\n   `discover_extensions` finds it and an `ActivationPolicy` can certify it.\n4. Prove conformance with the reusable suites in\n   `scion_sdk\u002Ftesting\u002F`: `source_adapters` (capability descriptor,\n   pagination, checkpoint resume, idempotent re-run, malformed-input\n   rejection, provenance completeness), `artifact_kinds` (listing, validation,\n   deterministic digests, record mapping, malformed-entry rejection), and\n   `writeback` (dry-run, optimistic conflict, authorization, idempotency,\n   uncertain-outcome reconciliation) — assert with\n   `scion_sdk.testing.results.assert_conformant`.\n5. Run `connector-certify -- COMMAND [ARG ...]` against the connector's own MCP\n   server to confirm its declared sync tools are valid before it is certified\n   for activation.\n\n## How to test it\n\n`AGENTS.md` \"Setup\" and \"Commands\" are the source of truth; read them first.\nIn short:\n\n1. Bootstrap once: `scripts\u002Fbootstrap.sh` (idempotent; add `--scanners` for\n   the pinned native cccc, KISS, dupehound and jscpd scanners, which need\n   cargo and npm). A Claude Code cloud session runs it through\n   `.claude\u002Fhooks\u002Fsession-start.sh`.\n2. Tests: `uv run --frozen python -m pytest -q`.\n3. Gates: `uvx --from pre-commit==4.6.0 pre-commit run --config\n   .config\u002Fpre-commit.yaml --all-files`, then the same command with\n   `--hook-stage pre-push` (tests, wheel build, secret history) and with\n   `--hook-stage manual` (native scanners, privacy, fleet gates).\n\nThe wiring gates run inside the pre-commit stage as `check-orphan-modules` and\n`check-public-api-tested` (`uv run --frozen python scripts\u002Fcheck_wiring.py\norphans|public-api`); the maintainer-only fleet gates `dependency-readiness`\nand `phase-direction` (`bash scripts\u002Frun_fleet_gate.sh \u003Cgate>`) run at the\nmanual stage and print `SKIPPED (\u003Cgate>): \u003Creason>` outside the fleet\nworkspace layout. While editing a public documentation surface, also run:\n\n```bash\npre-commit try-repo ..\u002Fpipelines public-surface --all-files\n```\n\nA hook whose prerequisite is missing prints `SKIPPED (\u003Cgate>): \u003Creason>` and\nexits 0 locally; with `CI` set it exits 2 (`CANNOT RUN`). Never bypass, baseline,\nor suppress a failing gate — fix its cause.\n\n## How to release it\n\nHosted CI is `.github\u002Fworkflows\u002Frelease.yml`: `gates` (the whole\n`.config\u002Fpre-commit.yaml` suite, pre-commit then pre-push stage) must pass\nbefore `build` (a byte-identical wheel built twice) runs; the pinned\ncccc\u002FKISS\u002Fdupehound\u002Fjscpd scanners report weekly in `advisory.yml`; `publish-pypi` runs only on a\n`v*` tag push, after `uv lock --check`.\n\nThis repository is a shared multi-worktree checkout:\n\n- Create a real worktree before changing files —\n  `git worktree add \u003Cpath> -b \u003Cbranch> main` — never harness-managed worktree\n  isolation (`EnterWorktree`), which can alter shared Git configuration for\n  every linked checkout.\n- Never use `git stash`; its stack is shared by all worktrees.\n- Never stage with `git add -A` or `git add .`; stage an explicit path\n  allowlist, then inspect `git diff --cached`.\n- Do not overwrite another lane's branch, generated files, lockfile, or\n  uncommitted changes.\n- **Do not use `--no-verify`.** Commit, push, tag, publish, and deploy are\n  distinct operations and each needs its own completed gates and authority.\n- Work on a topic branch, push it, and open a pull request against `main`\n  (draft until gates pass); `gates` and `build` must be green before merge.\n",{"name":5,"tags":24,"domain":26,"license":15,"metadata":31,"skill_type":33,"description":7},[25,26,27,28,29,30],"scion-sdk","development","connectors","mcp","manifest","gates",{"version":32},"0.1.0","skill","main","91f85325d4d510fd1d869e90d29eef2a10241ef3","scion_sdk\u002Fskills\u002Fscion-sdk-development",0,"https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fscion-sdk","https:\u002F\u002Fknuckles-team.github.io\u002Fscion-sdk\u002F","https:\u002F\u002Fgithub.com\u002FKnuckles-Team","https:\u002F\u002Fpypi.org\u002Fuser\u002FKnucklessg1\u002F","2026-11-13 08:52:12",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add Knuckles-Team\u002Fscion-sdk --skill scion-sdk-development",{"tool":49,"command":50},"bunx","bunx skills add Knuckles-Team\u002Fscion-sdk --skill scion-sdk-development",{"tool":52,"command":53},"pnpm","pnpm dlx skills add Knuckles-Team\u002Fscion-sdk --skill scion-sdk-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fscion-sdk\u002Fblob\u002Fmain\u002Fscion_sdk\u002Fskills\u002Fscion-sdk-development\u002FSKILL.md",true,[],[58,65,72],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7CP56SJNB50XVJ7TFZ7Z1PK","freshrss-feed-reader","Read FreshRSS streams through the freshrss-agent MCP server.","https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fscion-sdk\u002Fblob\u002Fmain\u002Ftests\u002Ffleet_packages\u002Ffreshrss-agent\u002Ffreshrss_agent\u002Fskills\u002Ffreshrss-feed-reader\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7CP53TS530QBJ3S562N7JWP","archivebox-snapshot-search","Browse archived snapshots through the archivebox-api MCP server.","https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fscion-sdk\u002Fblob\u002Fmain\u002Ftests\u002Ffleet_packages\u002Farchivebox-api\u002Farchivebox_api\u002Fskills\u002Farchivebox-snapshot-search\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7CP50VQ7JTFK7QH8TJXFT5T","demo-reader","Read the demo stream one page at a time through the demo-agent MCP server.","https:\u002F\u002Fgithub.com\u002FKnuckles-Team\u002Fscion-sdk\u002Fblob\u002Fmain\u002Ftests\u002Ffixture_package\u002Fskills\u002Fdemo-reader\u002FSKILL.md",[],[]]