本文へ移動
cccskills
無料GitHub で公開

agent-context-partitioner

Designs and audits deterministic, authority-filtered partitions of trust-typed context for already admitted bodies or abstract continuation slots. Use when causal context, obligations, disclosure boundaries, vector-space identity, capacity, and omission proofs must survive partitioning. NOT for spawning or admitting agents, choosing worker count, retrieving arbitrary knowledge, writing successor prompts, or granting tools, leases, identity, or effect authority.

インストール方法を見る

含まれるファイル(28)

  • SKILL.md8.8 KB
  • algorithms/context_pressure_estimator.py11.6 KB
  • algorithms/dag_partitioner.py14.7 KB
  • algorithms/INDEX.md1.1 KB
  • algorithms/memory_dump_schema.json8.3 KB
  • algorithms/online_k_selector.py14.1 KB
  • algorithms/partition_feasibility.py3.5 KB
  • algorithms/test_partition_feasibility.py1.5 KB
  • CHANGELOG.md1.4 KB
  • diagrams/01_feasibility-gate.md552 B
  • diagrams/02_cross-target-transfer.md401 B
  • examples/example_dag.json2.9 KB
  • examples/example_session_trace.jsonl3.6 KB
  • examples/INDEX.md521 B
  • examples/valid-proposal.json2.4 KB
  • references/context-ir-and-continuation.md1.2 KB
  • references/INDEX.md547 B
  • references/papers.md7.9 KB
  • references/partition-procedure.md3.5 KB
  • references/retrieval-space-identity.md658 B
  • schemas/context-partition-proposal-v2.schema.json6.5 KB
  • scripts/INDEX.md331 B
  • scripts/test-bundle.mjs3.4 KB
  • scripts/validate-context-partition.mjs10.3 KB
  • templates/INDEX.md413 B
  • templates/knowledge_dump_template.md1.9 KB
  • templates/pd_brief_me_template.md2.3 KB
  • tests/activation.md715 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Agent Context Partitioner

Partition only after authority, disclosure, causality, capability, and capacity are explicit. Optimization may choose among feasible assignments; it may never repair an infeasible one or create a new body.

Activate when

  • a sealed Context IR must be assigned across admitted bodies;
  • a continuation package needs abstract destination requirements without launching a successor;
  • open obligations and unresolved effects must be proven present;
  • vector-based cohesion must respect immutable embedding-space identity;
  • omissions, transfers, and capacity use need a machine-checkable proof.

Do not activate for

  • “spawn more agents,” worker-count selection, or capacity admission;
  • identity continuity, process resurrection, or credential transfer;
  • general RAG, clustering, prompt writing, or memory retrieval;
  • lifecycle fencing, effect reconciliation, capability minting, or lease creation;
  • estimating provider quota or subscription usage.

Modes

  • ACTIVE_SET_PARTITION targets exact admitted bodies supplied by another authority.
  • CONTINUATION_REQUIREMENTS targets abstract slots carrying required capabilities and capacity only. A slot has no process, provider session, credential, lease, or identity.

Outputs are FEASIBLE, INFEASIBLE, or UNKNOWN. Never emit READY, AUTHORIZED, ADMITTED, or SPAWN.

Hard order of operations

flowchart TD
  A[Sealed trust-typed Context IR] --> B[Verify source root and policy]
  B --> C[Filter targets by tenant, disclosure, audience, and current guidance]
  C --> D[Close causal parents, obligations, unresolved effects, and capabilities]
  D --> E[Check singleton and aggregate capacity]
  E -->|Any hard gap| F[INFEASIBLE or UNKNOWN with exact gap]
  E -->|Feasible set| G[Apply deterministic baseline objective]
  G --> H[Emit assignments, typed transfers, omissions, and coverage proof]
  H --> I[Validate proposal against original root]
  I --> J[PrepareContinuation input only]
  J -. separate lifecycle authority .-> K[AdmitSuccessor]
  1. Bind the root. Record source snapshot, content digest, policy digest, and complete item inventory.
  2. Separate guidance from evidence. Only current, audience-matching, revocation-checked guidance may enter a directive channel. Facts and history remain cited data.
  3. Filter before scoring. Tenant, harbor, repository, disclosure, retention, and capability rules define the feasible set.
  4. Close dependencies. Every causal parent, open obligation, unresolved effect, and non-droppable item is assigned, transferred through an authorized edge, or blocks the plan.
  5. Respect capacity. Oversized singleton items and aggregate target overflow are hard failures.
  6. Choose a deterministic candidate. The optional feasibility helper orders items topologically, then prefers a compatible target already holding causal parents, lower projected capacity use, and target ID. It is a greedy proposal aid, not an optimal partitioner; semantic cohesion remains disabled unless all compared items share one exact spaceId.
  7. Prove coverage. Every input item receives one inventory disposition: ASSIGNED, TRANSFERRED, OMITTED_ALLOWED, or BLOCKED.

Context IR invariants

  • Only CURRENT_GUIDANCE with current envelope, audience, scope, verification, and revocation evidence may be directive.
  • Primary evidence, cited derivations, historical intent, and untrusted content remain data.
  • Open obligations, unresolved effects, lineage, and causal parents are non-droppable.
  • Summaries and compactions cannot become primary roots.
  • Missing authority, provenance, or revocation evidence yields UNKNOWN, never a permissive guess.
  • A tombstone may replace deleted content, but derived vectors and projections must identify the invalidated source revision.

Retrieval-space identity

A vector-bearing item binds model artifact/config, preprocessing, chunker, pooling, dimensions, normalization, metric, coordinate precision, quantization, redaction policy, modality, and derived spaceId. Provider name and transport are provenance, not compatibility.

  • Compare vectors only when spaceId is identical.
  • Equal dimensions are insufficient.
  • Mismatch disables the semantic objective; it does not authorize full-copy fallback.
  • Re-embedding creates a new item revision and separately receipted migration.

See references/retrieval-space-identity.md for the exact digest recipe.

Coverage and omission

Allowed omissions are limited to OUT_OF_SCOPE, RETENTION_REDACTED_WITH_TOMBSTONE, EXPIRED_DISPOSABLE, DUPLICATE_CONTENT_HASH, and SUPERSEDED_PROJECTION. DESTINATION_INCOMPATIBLE, UNKNOWN_SOURCE, and SIZE_EXCEEDED are blocking gaps.

Coverage proves completeness only relative to the supplied root and obligation set. It cannot prove the root discovered every relevant fact.

Prepare is not admit

The proposal may feed PrepareContinuation. It does not fence a predecessor, reconcile an effect, reserve capacity, mint a capability, select a process, consume a nonce, or create lineage. A lifecycle authority may later run AdmitSuccessor only after independent fence, effect, capacity, guidance, and context receipts.

Deterministic feasibility helper

algorithms/partition_feasibility.py answers a narrower question than the proposal validator: whether supplied items fit supplied, already-admitted targets under stated capacities, audiences, capabilities, and causal parents. It returns UNKNOWN for incomplete inventory evidence and INFEASIBLE for a known constraint gap. Its greedy choice is reproducible, but it does not prove global optimality, authorize a disclosure transfer, discover missing context, or create a successor. Load references/partition-procedure.md for the algorithm and its worked limitation.

The diagrams show the two non-negotiable boundaries: feasibility before choice and evidence for cross-target transfer.

Anti-patterns

Optimize, then filter

Wrong: cluster first and remove forbidden assignments later.

Right: authority and disclosure define the feasible graph before any score exists.

Same dimensions, same space

Wrong: compare two 768-dimensional vectors.

Right: require identical immutable spaceId.

K proposal means birth

Wrong: turn a capacity gap into “spawn another worker.”

Right: emit the exact missing capability or capacity with no lifecycle action.

Summary becomes source

Wrong: repartition yesterday's summary.

Right: regenerate from primary roots and use summaries only to test omissions.

Output and validation

node skills/agent-context-partitioner/scripts/validate-context-partition.mjs \
  skills/agent-context-partitioner/examples/valid-proposal.json
node skills/agent-context-partitioner/scripts/test-bundle.mjs

Static validity is not optimality, complete discovery, safe execution, or successor admission.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Use for insight, reframing, contradiction, impasse, and anomaly-driven problem solving when execution effort no longer helps. NOT for routine optimization, error correction, or well-specified tasks with known solution paths.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

Apply cognitive task analysis to expert work that depends on perceptual cues, branching judgment, and recurring monitoring loops. Use when decomposing expert capability into agent structure, simulation design, or validation interviews. NOT for ordinary step-by-step SOP capture or simple pipelines with no tacit cue layer.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月8日 更新

curiositech のスキルをすべて見る

このスキルの問題を報告する