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

@metago-ai/verify-kit

v1.1.2

Published

MetaGO Agent Harness 交付质量保证系统 —— 把 AI 自律从软约束变成硬门的强制门控框架。七层验证架构(L1技术/L2链路/L3契约/L4渲染/L5交互/L6状态/L7防御)+ L8缺陷猎杀(11维度)+ 八问自检 + 反绕过识别。对应 AGENTS.md V36.9.0 第十一/十四/十五章。

Readme

@metago-ai/verify-kit

MetaGO Agent Harness 交付质量保证系统 —— 把"AI 知道要做"变成"AI 不可绕过地执行"的强制门控框架。 七层验证架构 + L8 缺陷猎杀 — 对应 AGENTS.md V36.9.0 第十一/十四/十五章。

npm License: MIT Layers Rules


Why this package exists

All AI agents share one problem:

The rules say "run runtime verification before declaring done", but the agent only does tsc + build and calls it complete.

This package turns verification from a soft constraint (the agent can skip it) into a hard gate (the agent cannot declare "done" without passing).

Architecture — 7 layers + L8 defect hunting

| Layer | Name | What it verifies | Severity | |------|------|-----------------|----------| | L1 | Technical | tsc 0 errors · vite build · artifact scan · npm audit | P0 blocking | | L2 | Link | HTTP reachability · cloud functions · sub-routes · CORS · CDN | P0 blocking | | L3 | Contract | API field types · field names · required fields · error format · POST-GET consistency · enum values · version compat | P0 blocking | | L4 | Rendering | No white screen · no crash · empty state · lazy load · DOM nodes · console zero error | P0 blocking | | L5 | Interaction | Button feedback · input · dropdown · navigation · form submit · keyboard · loading | P1 important | | L6 | State | Navigation retention · refresh retention · login state · draft retention · session switch · selected items | P1 important | | L7 | Defense | Empty input · long input · XSS · concurrent · timeout · permission boundary · old data compat · injection | P0 blocking | | L8 | Defect hunting | 11 dimensions: zombie features · unpersisted state · mock data · error handling · route deadlinks · type safety · copy consistency · deprecated API · business closure · compliance · terminology | P0 blocking |

All 8 layers pass = task complete. Any layer fails = task NOT complete.

L4-L8 为静态验证实现(无需浏览器即可执行):L4 检查 HTML 产物崩溃标记与 DOM 完整性、L5 检查产物交互元素存在性、L6 检查持久化存储引用、L7 检查校验/危险 DOM/防抖/权限模式、L8 对源码目录做 mock/错误处理/死链/类型安全/废弃 API/术语等 11 维度扫描。通过 rendering.baseDir / interaction.baseDir / state.baseDir / defense.baseDir / defectHunting.scanDir 指定扫描目标;未指定时默认扫描 dist/(产物层)与 src/(源码层)。需要浏览器注入的维度会明确返回"未配置"(passed:false),不再虚假通过。

Install

npm install @metago-ai/verify-kit

Use

import { runVerification, disciplineCheck, SELF_DISCIPLINE_QUESTIONS } from '@metago-ai/verify-kit'

const report = await runVerification({
  tech: { tsc: true, build: true, artifactScan: true, npmAudit: true },
  links: [
    { name: 'web', url: 'https://metago.life', expectedStatus: 200 },
    { name: 'exe', url: 'https://metago.life/download/app.exe', minSizeMB: 80 },
  ],
  contract: [
    {
      name: 'user-api',
      endpoint: 'https://api.example.com/user',
      method: 'GET',
      assertions: [
        { field: 'id', type: 'string', required: true },
        { field: 'name', type: 'string', required: true },
        { field: 'balance', type: 'number' },
      ],
    },
  ],
  rendering: { routes: ['/', '/dashboard', '/profile'], checkConsole: true, checkDom: true },
  interaction: { buttons: ['submit', 'cancel'], inputs: ['email', 'password'] },
  state: { loginState: true, refreshState: true, draftRetention: true },
  defense: { emptyInput: true, xssTest: true, longInput: true, concurrentTest: true, permissionBoundary: true },
  defectHunting: {
    scanZombieFeatures: true, scanUnpersistedState: true, scanMockData: true,
    scanErrorHandling: true, scanRouteDeadlinks: true, scanTypeSafety: true,
    scanCopyConsistency: true, scanDeprecatedApi: true, scanBusinessClosure: true,
    scanCompliance: true, scanTerminology: true,
  },
})

// Check if task can be declared complete
const discipline = disciplineCheck(report)
if (!discipline.canDeclareComplete) {
  console.error('BLOCKED:', discipline.failures)
  process.exit(1)
}

CLI

npx @metago-ai/verify-kit
# or
metago-verify

The 8 self-discipline questions (V3)

Before declaring "task complete", the agent must answer all 8 questions. Any "no" blocks the declaration:

  1. Did I run npm run verify?
  2. Are there any FAILs in the verify output?
  3. Does my delivery report include the "7-layer verification report" section?
  4. Does every ✅ have execution evidence?
  5. Did I verify L3 contract layer? (not just curl status code, but field type/name/required)
  6. Did I verify L4 rendering layer? (browser check for white screen/crash/console errors)
  7. Did I verify L6 state + L7 defense layers? (refresh retention + abnormal input tests)
  8. Did I verify L5 interaction layer with browser_use agent? (click each button for UI feedback, with screenshots)

Bypass detection

The package includes 11 bypass patterns that, if detected in the agent's output, indicate the agent is trying to skip verification:

  • "应该没问题" / "should be fine"
  • "逻辑上正确" / "logically correct"
  • "之前验证过" / "verified before"
  • "纯人工跳过" / "manual skip"
  • "L3 只检查状态码 200 不校验字段"
  • "L5 标注纯人工跳过"
  • "用逻辑正确代替实际验证"
  • "发现问题但隐瞒不报"
  • ...and 3 more
import { detectBypass } from '@metago-ai/verify-kit'

const bypasses = detectBypass(agentOutput)
if (bypasses.length > 0) {
  console.error('BYPASS DETECTED:', bypasses)
}

License

MIT © 2026 易霄 / 元构光年(成都)人工智能科技有限公司

Links