npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@civaapple/qi-coordinator

v0.5.1

Published

Evidence-gated depth-1 Qi delegation under narrowed capability leases

Downloads

228

Readme

@civaapple/qi-coordinator

Explicit, evidence-gated delegation to isolated child Sessions under narrowed capability leases.

Purpose

The Coordinator creates a child Session and optional workspace branch for a bounded contract, delegates only a subset of parent authority, and structurally checks returned deliverables and evidence references. runDelegatedTurn executes a depth-1 child TurnLoop under that contract and returns only Artifact refs plus a short summary to the parent — never the child transcript.

Non-goals

  • Multi-Agent is not the default execution mode.
  • Delegation does not share mutable Session state or widen authority.
  • A child summary is not accepted as evidence by itself.
  • Recursive Subagents (depth > 1) are rejected.

Core model

A DelegationContract defines task, evidence requirements, child scope, and a hard resource envelope (contextTokens, maxSteps, wallTimeMs). Authorization requires a durable Control Receipt with delegationRight. DelegationHandle identifies the isolated Session and branch. Submission is checked against the contract before it can re-enter the parent flow. MultiAgentBaselineGate separately requires paired evaluation evidence before enabling multi-Agent by default.

Behavioral invariants

  • Child leases are an intersection with parent authority.
  • Child work has separate Session identity and isolated context compilation from allowlisted contextRefs.
  • Return is attributable and gated by deliverable schema, required references, and evidence-kind counts; semantic or behavioral validity remains the Eval/integration layer's responsibility.
  • Running delegations are settlement boundaries: recovery cancels them before parking the parent Run.
  • Multi-Agent remains off unless paired target evaluations show measured advantage.

Failure semantics

Scope widening, missing evidence, invalid child identity, workspace failure, wall-time timeout, and baseline rejection remain explicit. A failed child does not corrupt or silently complete the parent. Orphaned child work is not automatically retried.

Install and minimal use

npm install @civaapple/qi-coordinator
import { MultiAgentBaselineGate } from "@civaapple/qi-coordinator";

const gate = new MultiAgentBaselineGate(3);
console.log(gate.decision("eval_coding").enabledByDefault); // false until paired evidence exists.

Public API

Coordinator, runDelegatedTurn, contextBlocksFromRefs, delegation contract/handle/submission types, workspace branch port, and MultiAgentBaselineGate.

Change guide

Any new sharing mechanism must preserve identity, authority monotonicity, evidence provenance, and parent control. Add a single-Agent comparison before widening use of coordination.

Verification

tests/coordinator.test.mjs covers isolated delegation, lease narrowing, receipt authorization, recovery cancel, evidence return, and baseline gating.

Further reading