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

@ariffazil/a-forge

v2026.7.24

Published

A-FORGE — Constitutional Event-Sourced Agent Runtime. Planner/Executor/Verifier triad, policy engine, governed memory, and 888_HOLD human sovereignty gates.

Readme

A-FORGE — Governed Execution Shell

Agentic CI Boundary Guard Governance Gate 🔥 FORGE License

A-FORGE is the hands. arifOS is the brain. The hands execute. The brain judges. The hands never adjudicate.

DITEMPA BUKAN DIBERI — Execution is forged, not given.


TL;DR — Three Audiences

For human operators (Arif): A-FORGE is the execution engine. It builds, deploys, runs code, and manages Docker — but only after arifOS judges and you (F13) approve. Jump to §10

For AI agents: Register your forge instrument, get a lease, execute through governed gates. Never self-authorize. Never adjudicate. Jump to §11

For institutions: A-FORGE is the constitutional execution substrate — 52 MCP tools, 4-layer forge gate, full audit trail on every mutation. Jump to §12


1. Federation Position

                         ┌─────────────────────────┐
                         │      F13 SOVEREIGN       │
                         │     Arif bin Fazil       │
                         └────────────┬────────────┘
                                      │ approves
                                      ▼
┌─────────────────────────────────────────────────────────────────────┐
│                          AAA COCKPIT (:3001)                         │
│                    Routes, displays, never judges                    │
└────────────────────────────────┬────────────────────────────────────┘
                                 │ routes to
              ┌──────────────────┼──────────────────┐
              ▼                  ▼                  ▼
      ┌──────────┐       ┌──────────┐       ┌──────────┐
      │  arifOS   │       │ A-FORGE  │       │  DOMAIN   │
      │  JUDGES   │       │ EXECUTES │       │  ORGANS   │
      │  :8088    │       │  :7071   │       │ GEOX :8081│
      │ F1-F13   │       │  :7072   │       │WEALTH:18082│
      │ VAULT999 │       │ ← HERE   │       │ WELL :18083│
      └──────────┘       └──────────┘       └──────────┘

Trinity roles:

  • arifOS = LAW/JUDGMENT ("May this happen?")
  • AAA = STATE/ROUTING ("Where does it go?")
  • A-FORGE = EXECUTION/MUTATION ("How do we safely do it?")

Canonical flow: Arif (F13) → AAA (IDENTITY) → arifOS (JUDGE) → A-FORGE (EXECUTE) → VAULT999 (SEAL)


2. What A-FORGE Is (and Is Not)

| ✅ EXECUTES | ❌ NEVER | |-------------|---------| | Builds, deploys, runs code | Geoscience — Vsh, PHIE, Sw, porosity (→ GEOX) | | Shell, git, Docker, browser ops | Economics — NPV, IRR, capital allocation (→ WEALTH) | | 52 MCP tools under constitutional gates | Constitutional verdicts — SEAL/HOLD/VOID (→ arifOS) | | Routes intent to domain organs via A2A | Self-authorization — no execution without lease | | Full audit trail on every mutation | NumPy, Pandas, SciPy in execution path |


3. Architecture — Hexagonal Layers

src/
├── domain/          # Pure business logic — no I/O
│   ├── engine/      # AgentEngine.ts — core agent loop
│   ├── governance/  # 4-layer forge gate
│   ├── planner/     # PlanValidator — verifyGovernanceCard + reversibility
│   └── agents/      # Agent profiles, capability definitions
├── application/     # Use cases — services, approval, memory, A2A
├── infrastructure/  # Adapters — LLM, tools, vault, bridges, CLI
└── interfaces/      # Delivery — server.ts (Express :7071), MCP :7072, config

4. The 4-Layer Forge Gate

Every execution passes ALL four layers. No skipping, no silence.

| Layer | Component | Rule | |-------|-----------|------| | 1: F1 AMANAH | Catastrophic pattern scan | HARAM/BLOCK → HALT | | 2: Model Capability | Identity + capability band check | DEGRADED/MISSING → HALT | | 3: Governance Bridge | F1–F12 floor eval via arifOS | VOID → HALT | | 4: Approval Boundary | Irreversibility + blast radius | APPROVED → PROCEED |

Gödel Lock: A-FORGE cannot seal its own forge_execute outcomes without external witness (arifOS kernel or Arif F13). The executor cannot certify itself.

graph TB
    AGENT[🤖 Agent / Intent] -->|request| LEASE{Valid Lease?}
    LEASE -->|no| BLOCK[🚫 DENIED]
    LEASE -->|yes| L1[Layer 1: F1 AMANAH<br/>Catastrophic Pattern Scan]
    L1 -->|HARAM| BLOCK
    L1 -->|PASS| L2[Layer 2: Model Capability<br/>Identity + Capability Band]
    L2 -->|DEGRADED| BLOCK
    L2 -->|PASS| L3[Layer 3: Governance Bridge<br/>arifOS F1-F12 Floor Eval]
    L3 -->|VOID| BLOCK
    L3 -->|SEAL| L4[Layer 4: Approval Boundary<br/>Irreversibility + Blast Radius]
    L4 -->|888_HOLD| HOLD[⏸️ Human Ratification]
    L4 -->|APPROVED| EXEC[⚡ Execute<br/>Shell · Git · Deploy · Docker]
    EXEC -->|receipt| VAULT[(VAULT999<br/>Immutable Record)]
    HOLD -->|approve| EXEC

What Is a Lease?

A lease is a bounded permission grant — the execution safety object of A-FORGE:

  • Who may act — the agent or instrument
  • What may be changed — scope of mutation
  • Where action may occur — filesystem, network, shell boundaries
  • How long permission lasts — time-bound, auto-expiring
  • What witness is required — rollback plan, audit trace

Without a valid lease, no mutation. The hands never self-authorize.

Federation Separation of Powers

| Layer | Role | Can | Cannot | |-------|------|-----|--------| | ARIF | Sovereign | Veto, approve, decide | Be overridden | | AAA | State / Cockpit | Display, route, queue, register | Judge, execute, seal | | arifOS | Judge | Issue SEAL/HOLD/VOID/SABAR | Execute mutations | | Domain Organs | Witnesses | Compute and reflect evidence | Decide alone | | A-FORGE | Executor | Build, deploy, mutate | Self-authorize | | VAULT999 | Ledger | Record immutable seals | Edit or delete history |

AAA routes and displays. arifOS judges. Domain organs witness. A-FORGE executes. VAULT999 records. ARIF decides.


5. Quick Start

cd /root/A-FORGE

npm install && npm run build           # Build TypeScript

npm test                                # AgentEngine suite
make test                               # Full battery (security + build + all suites)

# MCP gateway (stdio — local agent ingress)
npm run mcp:stdio

# Health checks
curl -s http://localhost:7071/health | python3 -m json.tool   # Sense API
curl -s http://localhost:7072/health | python3 -m json.tool   # MCP gateway

# Deploy
systemctl restart a-forge              # Express :7071
systemctl restart a-forge-mcp          # MCP :7072

6. The Execution Chain

INTENT → PLAN → arif_judge (SEAL) → forge_execute (4-gate) → VAULT999 (SEAL)
  1. Intent declared by human or agent
  2. Plan validated by PlanValidator (reversibility, governance card)
  3. Judge arifOS issues SEAL/HOLD/VOID
  4. Execute A-FORGE runs through 4-layer forge gate
  5. Seal VAULT999 records immutable receipt

7. Deployment Surfaces

| Surface | Port | Transport | Access | |---------|------|-----------|--------| | Sense API | 7071 | Express HTTP | Internal VPS | | MCP Gateway | 7072 | Streamable HTTP + stdio | Local + federation organs | | Public MCP | — | https://mcp.arif-fazil.com/mcp | Proxied through arifOS kernel | | A2A | — | Via AAA cockpit | Agent-to-agent mesh |


8. Service Architecture

# Systemd services
a-forge.service                    # Express API on :7071
a-forge-mcp.service                # MCP gateway on :7072

# Key paths
/root/A-FORGE/                     # Source + build
/opt/a-forge/app/                  # Deployed runtime (rsync)
/root/A-FORGE/identity.toml        # Canonical service identity
/root/A-FORGE/.well-known/         # Agent cards + discovery

9. Federation Cross-Reference

| Organ | Role | Port | Repo | |-------|------|------|------| | arifOS | Constitutional kernel | 8088 | ariffazil/arifos | | AAA | State + cockpit | 3001 | ariffazil/AAA | | GEOX | Earth intelligence | 8081 | ariffazil/geox | | WEALTH | Capital intelligence | 18082 | ariffazil/wealth | | WELL | Vitality guard | 18083 | ariffazil/well | | HERMES | Multi-modal bridge + Telegram relay | 8644 | ariffazil/HERMES | | A-FORGE | Execution shell | 7071/7072 | ← you are here |


10. For Human Operators (Arif)

What you see: A-FORGE executes. It builds, deploys, runs code, manages the VPS — after you or arifOS says it's safe.

What you do: Review HOLDs, approve irreversible actions (F13), observe execution receipts.

Key endpoints:

  • Health: curl localhost:7071/health
  • MCP tools: curl localhost:7072/health
  • Public door: https://mcp.arif-fazil.com/mcp

Your absolute veto: No agent can self-authorize. No execution without a lease. Your F13 word is final.


11. For AI Agents (Forge Instruments)

You are a forge instrument. Your job is execution under governance.

Rules:

  1. Get a lease before executing → forge_lease_request
  2. Every execution goes through the 4-layer forge gate — no skipping
  3. forge_execute for MUTATE-class ops requires prior arif_judge SEAL
  4. Never self-authorize — the forge has no authority to adjudicate
  5. All claims carry epistemic labels: OBS, DER, INT, SPEC
  6. Boundary violations (geophysics, economics, verdicts) trigger 888_HOLD

Agent card: public/a2a/agent-card.example.json


12. For Institutions

A-FORGE provides governed, auditable execution:

| Property | How A-FORGE delivers it | |----------|------------------------| | Separation of powers | Executor ≠ Judge — A-FORGE never adjudicates | | Constitutional gates | 4-layer forge gate on every mutation | | Full audit trail | Every execution logged, hash-chained to VAULT999 | | Boundary enforcement | Geophysics → GEOX, Economics → WEALTH, Verdicts → arifOS | | Lease-based authority | No execution without explicit lease scope | | Gödel Lock | External witness required for irreversible actions |


13. Build, Test, Deploy (CI)

# Standard CI
npm install && npm run build    # TypeScript compile
make test                       # Security audit + build + all test suites

# Single test
node dist/test/AgentEngine.test.js
node --test --test-name-pattern="multi-turn tool execution" dist/test/AgentEngine.test.js

# Deploy (T2 — announce 10s)
npm run build
systemctl restart a-forge && systemctl restart a-forge-mcp
curl -s http://localhost:7071/health | python3 -m json.tool

CI Architecture: Dual-lane → Standard CI + BIJAKSANA (ΔS, Φ, Ψ, Ω) → Agentic CI Report → Check Run → Federation cron → VAULT999 seal.


14. Constitutional Boundary

    ┌──────────────────────────────────────────┐
    │                                          │
    │   A-FORGE EXECUTES.                      │
    │   arifOS JUDGES.                         │
    │   AAA DISPLAYS.                          │
    │   The domain organs WITNESS.             │
    │   Arif HOLDS THE VETO.                   │
    │                                          │
    │   The hands never judge.                 │
    │   The forge never self-authorizes.       │
    │   The executor never seals its own work. │
    │                                          │
    │   Without lease → no action.             │
    │   Without SEAL → no mutation.            │
    │   Without witness → no seal.             │
    │                                          │
    │   DITEMPA BUKAN DIBERI                  │
    │   Execution is forged, not given.        │
    │   999 SEAL ALIVE.                        │
    │                                          │
    └──────────────────────────────────────────┘