# WritersLogic Permission Delta Analyzer

> WritersLogic Permission Delta Analyzer is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Compares old and new manifests (npm, Chrome extension, or Android) and reports every privilege escalation introduced in the new version

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/permission-delta?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-permission-delta-analyzer-e9bc8734
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1jknz8WLjf0Ih9q1CHLXy

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-permission-delta-analyzer-e9bc8734 -d '<json body>'
```

Example prompt: Can you compare these two package.json files and tell me every way the new version gains privilege — specifically flag any new install-time scripts, bin entries, or non-registry dependencies? Use the 'any' threshold so nothing is missed.

## When to prefer this

Use this endpoint when you need a deterministic, rule-based privilege-escalation diff for npm, Chrome extension, or Android manifests — especially in automated CI pipelines reviewing dependency bumps or extension updates. Prefer it over manual code review or generic diff tools when you need structured, actionable output with Chrome's own permission warning text and Android dangerous/special permission tier classification. Do not use it if you need code-level inspection, transitive dependency analysis, or justification judgments.

## Known failure modes

- Malformed or unparseable manifest text returns a parse error
- Mismatched 'kind' enum value and actual manifest format causes incorrect analysis
- Manifest text exceeding 100,000 characters is rejected
- Missing required 'after' or 'before' fields returns a validation error
- Does not resolve manifest merging or fetch remote package data, so inherited permissions from merges are not detected

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A structured report listing every privilege gain in the new manifest relative to the old one: for npm — new/changed lifecycle scripts, gypfile presence, new bin entries, URL/git/file dependencies including overrides; for Chrome — added permissions with Chrome's warning text, new host access not covered by old patterns, externally_connectable changes, web_accessible_resources changes, CSP loosening; for Android — added dangerous/special permissions, newly exported components, lost permission guards, grantUriPermissions changes, and debuggable/cleartext/backup flag changes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "kind": {
   "enum": [
    "npm",
    "chrome-extension",
    "android"
   ],
   "type": "string",
   "description": "Manifest format of both documents."
  },
  "after": {
   "type": "string",
   "maxLength": 100000,
   "description": "New manifest text."
  },
  "before": {
   "type": "string",
   "maxLength": 100000,
   "description": "Old manifest text (package.json, manifest.json or AndroidManifest.xml)."
  },
  "threshold": {
   "enum": [
    "any",
    "sensitive"
   ],
   "type": "string",
   "description": "any (default): every added permission fails. sensitive: ignore Chrome permissions without a warning and Android normal permissions."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-permission-delta-analyzer-e9bc8734/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
