@mytechtoday/augment-extensions 3.2.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +25 -16
- package/README.md +215 -17
- package/augment-extensions/coding-standards/java/CHANGELOG.md +12 -0
- package/augment-extensions/coding-standards/java/README.md +54 -0
- package/augment-extensions/coding-standards/java/examples/SearchRequest.java +13 -0
- package/augment-extensions/coding-standards/java/metadata.json +36 -0
- package/augment-extensions/coding-standards/java/module.json +35 -0
- package/augment-extensions/coding-standards/java/rules/language-and-api-design.md +45 -0
- package/augment-extensions/coding-standards/java/rules/reliability-and-concurrency.md +43 -0
- package/augment-extensions/coding-standards/java/rules/testing-tooling-and-security.md +39 -0
- package/augment-extensions/coding-standards/spring/CHANGELOG.md +12 -0
- package/augment-extensions/coding-standards/spring/README.md +61 -0
- package/augment-extensions/coding-standards/spring/examples/OrderController.java +40 -0
- package/augment-extensions/coding-standards/spring/metadata.json +39 -0
- package/augment-extensions/coding-standards/spring/module.json +38 -0
- package/augment-extensions/coding-standards/spring/rules/beans-configuration-and-boot.md +39 -0
- package/augment-extensions/coding-standards/spring/rules/data-testing-and-transactions.md +36 -0
- package/augment-extensions/coding-standards/spring/rules/production-operations.md +40 -0
- package/augment-extensions/coding-standards/spring/rules/web-apis-and-security.md +43 -0
- package/augment-extensions/visual-design/metadata.json +1 -1
- package/augment-extensions/visual-design/module.json +2 -2
- package/augment-extensions/workflows/agent-engineering/README.md +67 -0
- package/augment-extensions/workflows/agent-engineering/examples/contracts.cjs +89 -0
- package/augment-extensions/workflows/agent-engineering/examples/demo.cjs +17 -0
- package/augment-extensions/workflows/agent-engineering/examples/evaluation-cases.json +7 -0
- package/augment-extensions/workflows/agent-engineering/examples/graphs.cjs +149 -0
- package/augment-extensions/workflows/agent-engineering/examples/loop.cjs +125 -0
- package/augment-extensions/workflows/agent-engineering/examples/recovery.cjs +51 -0
- package/augment-extensions/workflows/agent-engineering/examples/stub.cjs +11 -0
- package/augment-extensions/workflows/agent-engineering/examples/verify.cjs +21 -0
- package/augment-extensions/workflows/agent-engineering/module.json +24 -0
- package/augment-extensions/workflows/agent-engineering/rules/01-adoption.md +30 -0
- package/augment-extensions/workflows/agent-engineering/rules/02-agents.md +34 -0
- package/augment-extensions/workflows/agent-engineering/rules/03-contracts.md +34 -0
- package/augment-extensions/workflows/agent-engineering/rules/04-loops.md +39 -0
- package/augment-extensions/workflows/agent-engineering/rules/05-graphs.md +39 -0
- package/augment-extensions/workflows/agent-engineering/rules/06-improvement.md +38 -0
- package/augment-extensions/workflows/agent-engineering/schemas/contracts.schema.json +1 -0
- package/augment-extensions/workflows/agent-engineering/scripts/validate.cjs +32 -0
- package/augment-extensions/workflows/agent-engineering/sources.md +12 -0
- package/augment-extensions/workflows/agent-engineering/templates/agent.json +40 -0
- package/augment-extensions/workflows/agent-engineering/templates/check-tool.json +94 -0
- package/augment-extensions/workflows/agent-engineering/templates/evidence.json +29 -0
- package/augment-extensions/workflows/agent-engineering/templates/invocation.json +40 -0
- package/augment-extensions/workflows/agent-engineering/templates/node.json +27 -0
- package/augment-extensions/workflows/agent-engineering/templates/state.json +27 -0
- package/augment-extensions/workflows/agent-engineering/templates/task.json +40 -0
- package/augment-extensions/workflows/agent-engineering/templates/tool.json +52 -0
- package/augment-extensions/workflows/cross-platform/README.md +120 -0
- package/augment-extensions/workflows/cross-platform/examples/end-to-end-session.md +196 -0
- package/augment-extensions/workflows/cross-platform/module.json +91 -0
- package/augment-extensions/workflows/cross-platform/rules/drift-resolution.md +126 -0
- package/augment-extensions/workflows/cross-platform/rules/export-guide.md +139 -0
- package/augment-extensions/workflows/cross-platform/rules/mcp-snippet-inlining.md +99 -0
- package/augment-extensions/workflows/cross-platform/rules/mirror-guide.md +139 -0
- package/augment-extensions/workflows/cross-platform/rules/windows-fallback.md +111 -0
- package/augment-extensions/workflows/decision-layer/README.md +172 -0
- package/augment-extensions/workflows/decision-layer/examples/call-inventory.json +6 -0
- package/augment-extensions/workflows/decision-layer/examples/config.json +9 -0
- package/augment-extensions/workflows/decision-layer/examples/decision.json +13 -0
- package/augment-extensions/workflows/decision-layer/examples/labeled-cases.json +410 -0
- package/augment-extensions/workflows/decision-layer/examples/source.txt +3 -0
- package/augment-extensions/workflows/decision-layer/examples/task.json +8 -0
- package/augment-extensions/workflows/decision-layer/installation/augx-judgments/SKILL.md +14 -0
- package/augment-extensions/workflows/decision-layer/installation/package-lock.json +27 -0
- package/augment-extensions/workflows/decision-layer/installation/package.json +7 -0
- package/augment-extensions/workflows/decision-layer/installation/sources.json +18 -0
- package/augment-extensions/workflows/decision-layer/module.json +24 -0
- package/augment-extensions/workflows/decision-layer/rules/00-index.md +5 -0
- package/augment-extensions/workflows/decision-layer/rules/01-responsibilities.md +15 -0
- package/augment-extensions/workflows/decision-layer/rules/02-operation.md +15 -0
- package/augment-extensions/workflows/decision-layer/runtime/automatic.cjs +80 -0
- package/augment-extensions/workflows/decision-layer/runtime/chat-install.cjs +149 -0
- package/augment-extensions/workflows/decision-layer/runtime/chat-server.cjs +71 -0
- package/augment-extensions/workflows/decision-layer/runtime/cli.cjs +70 -0
- package/augment-extensions/workflows/decision-layer/runtime/common.cjs +85 -0
- package/augment-extensions/workflows/decision-layer/runtime/contracts.d.ts +21 -0
- package/augment-extensions/workflows/decision-layer/runtime/decisions.cjs +198 -0
- package/augment-extensions/workflows/decision-layer/runtime/evaluate.cjs +61 -0
- package/augment-extensions/workflows/decision-layer/runtime/install.cjs +199 -0
- package/augment-extensions/workflows/decision-layer/runtime/integrations.cjs +64 -0
- package/augment-extensions/workflows/decision-layer/runtime/runner.cjs +201 -0
- package/augment-extensions/workflows/decision-layer/runtime/worker-child.cjs +15 -0
- package/augment-extensions/workflows/decision-layer/runtime/workers.cjs +15 -0
- package/augment-extensions/workflows/decision-layer/schemas/automatic-input.schema.json +40 -0
- package/augment-extensions/workflows/decision-layer/schemas/config.schema.json +39 -0
- package/augment-extensions/workflows/decision-layer/scripts/validate.cjs +16 -0
- package/augment-extensions/workflows/decision-layer/sources.md +34 -0
- package/cli/MODULES.md +804 -302
- package/cli/dist/__test_file-tracking.d.ts +2 -0
- package/cli/dist/__test_file-tracking.d.ts.map +1 -0
- package/cli/dist/__test_file-tracking.js +4 -0
- package/cli/dist/__test_file-tracking.js.map +1 -0
- package/cli/dist/analysis/ast-parser.d.ts.map +1 -1
- package/cli/dist/analysis/ast-parser.js +25 -9
- package/cli/dist/analysis/ast-parser.js.map +1 -1
- package/cli/dist/cli.js +43 -9
- package/cli/dist/cli.js.map +1 -1
- package/cli/dist/commands/context.d.ts +8 -0
- package/cli/dist/commands/context.d.ts.map +1 -0
- package/cli/dist/commands/context.js +115 -0
- package/cli/dist/commands/context.js.map +1 -0
- package/cli/dist/commands/decision.d.ts +4 -0
- package/cli/dist/commands/decision.d.ts.map +1 -0
- package/cli/dist/commands/decision.js +34 -0
- package/cli/dist/commands/decision.js.map +1 -0
- package/cli/dist/commands/gui-decision.d.ts +6 -0
- package/cli/dist/commands/gui-decision.d.ts.map +1 -0
- package/cli/dist/commands/gui-decision.js +210 -0
- package/cli/dist/commands/gui-decision.js.map +1 -0
- package/cli/dist/commands/gui-module-manager.d.ts +14 -0
- package/cli/dist/commands/gui-module-manager.d.ts.map +1 -0
- package/cli/dist/commands/gui-module-manager.js +328 -0
- package/cli/dist/commands/gui-module-manager.js.map +1 -0
- package/cli/dist/commands/gui.d.ts +3 -9
- package/cli/dist/commands/gui.d.ts.map +1 -1
- package/cli/dist/commands/gui.js +7 -293
- package/cli/dist/commands/gui.js.map +1 -1
- package/cli/dist/commands/link.d.ts +2 -0
- package/cli/dist/commands/link.d.ts.map +1 -1
- package/cli/dist/commands/link.js +82 -84
- package/cli/dist/commands/link.js.map +1 -1
- package/cli/dist/commands/search.js +1 -11
- package/cli/dist/commands/search.js.map +1 -1
- package/cli/dist/commands/show.d.ts.map +1 -1
- package/cli/dist/commands/show.js +5 -18
- package/cli/dist/commands/show.js.map +1 -1
- package/cli/dist/commands/skill.d.ts.map +1 -1
- package/cli/dist/commands/skill.js +3 -3
- package/cli/dist/commands/skill.js.map +1 -1
- package/cli/dist/commands/unlink.d.ts +2 -0
- package/cli/dist/commands/unlink.d.ts.map +1 -1
- package/cli/dist/commands/unlink.js +51 -45
- package/cli/dist/commands/unlink.js.map +1 -1
- package/cli/dist/commands/update.js +14 -7
- package/cli/dist/commands/update.js.map +1 -1
- package/cli/dist/core/compatibility-checker.d.ts.map +1 -1
- package/cli/dist/core/compatibility-checker.js +5 -2
- package/cli/dist/core/compatibility-checker.js.map +1 -1
- package/cli/dist/lib/context-hosts.d.ts +16 -0
- package/cli/dist/lib/context-hosts.d.ts.map +1 -0
- package/cli/dist/lib/context-hosts.js +395 -0
- package/cli/dist/lib/context-hosts.js.map +1 -0
- package/cli/dist/lib/context-refresh.d.ts +60 -0
- package/cli/dist/lib/context-refresh.d.ts.map +1 -0
- package/cli/dist/lib/context-refresh.js +630 -0
- package/cli/dist/lib/context-refresh.js.map +1 -0
- package/cli/dist/lib/module-resolver.d.ts.map +1 -1
- package/cli/dist/lib/module-resolver.js +2 -2
- package/cli/dist/lib/module-resolver.js.map +1 -1
- package/cli/dist/types/gui.d.ts +4 -0
- package/cli/dist/types/gui.d.ts.map +1 -1
- package/cli/dist/utils/coordination-queries.js +2 -2
- package/cli/dist/utils/coordination-queries.js.map +1 -1
- package/cli/dist/utils/decision-runner.d.ts +20 -0
- package/cli/dist/utils/decision-runner.d.ts.map +1 -0
- package/cli/dist/utils/decision-runner.js +114 -0
- package/cli/dist/utils/decision-runner.js.map +1 -0
- package/cli/dist/utils/extensions-config.d.ts.map +1 -1
- package/cli/dist/utils/extensions-config.js +3 -1
- package/cli/dist/utils/extensions-config.js.map +1 -1
- package/cli/dist/utils/extractCommandHelp.d.ts +2 -2
- package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
- package/cli/dist/utils/extractCommandHelp.js +54 -24
- package/cli/dist/utils/extractCommandHelp.js.map +1 -1
- package/cli/dist/utils/file-tracking.js +5 -5
- package/cli/dist/utils/file-tracking.js.map +1 -1
- package/cli/dist/utils/glob-match.d.ts +6 -0
- package/cli/dist/utils/glob-match.d.ts.map +1 -0
- package/cli/dist/utils/glob-match.js +8 -0
- package/cli/dist/utils/glob-match.js.map +1 -0
- package/cli/dist/utils/gui-helpers.d.ts.map +1 -1
- package/cli/dist/utils/gui-helpers.js +7 -3
- package/cli/dist/utils/gui-helpers.js.map +1 -1
- package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
- package/cli/dist/utils/mcp-integration.js +5 -7
- package/cli/dist/utils/mcp-integration.js.map +1 -1
- package/cli/dist/utils/module-system.d.ts +14 -0
- package/cli/dist/utils/module-system.d.ts.map +1 -1
- package/cli/dist/utils/module-system.js +39 -13
- package/cli/dist/utils/module-system.js.map +1 -1
- package/cli/dist/utils/modules-catalog.d.ts.map +1 -1
- package/cli/dist/utils/modules-catalog.js +5 -0
- package/cli/dist/utils/modules-catalog.js.map +1 -1
- package/cli/dist/utils/process.d.ts +14 -0
- package/cli/dist/utils/process.d.ts.map +1 -0
- package/cli/dist/utils/process.js +57 -0
- package/cli/dist/utils/process.js.map +1 -0
- package/cli/dist/utils/version.d.ts +2 -0
- package/cli/dist/utils/version.d.ts.map +1 -0
- package/cli/dist/utils/version.js +8 -0
- package/cli/dist/utils/version.js.map +1 -0
- package/cli/dist/utils/vscode-editor.d.ts.map +1 -1
- package/cli/dist/utils/vscode-editor.js +14 -8
- package/cli/dist/utils/vscode-editor.js.map +1 -1
- package/modules.md +85 -6
- package/package.json +36 -16
- package/scripts/check-wsl-augx.sh +63 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Bounded Execution and Recovery
|
|
2
|
+
|
|
3
|
+
## Work Cycle
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
validate -> reserve shared allocation -> attempt -> independent check
|
|
7
|
+
check passed -> bind evidence -> verified success
|
|
8
|
+
check failed -> classify -> targeted feedback -> changed attempt
|
|
9
|
+
allocation used | stalled | cancelled | denied | unrecoverable -> receipt and handoff
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
- Set finite attempts, wall time, per-call deadline, stall threshold, child count, and measurable resource caps before execution. Example defaults: five attempts, five seconds, 750 ms per subprocess, twelve calls, two dry rounds, one worker. Reserve before dispatch, check remaining resources, and kill outstanding subprocess work on cancellation or timeout.
|
|
13
|
+
- A hard cap applies across children, retries, compaction, and restart. Never reset counters when changing agents or contexts. Downtime counts against a wall deadline. Provider adapters must track requests, input/output tokens, and monetary usage including failed attempts. Report caps that are advisory or cannot be enforced; unknown usage is not zero.
|
|
14
|
+
- Progress must measure distance to acceptance or new evidence. The fixture measures correctly positioned values. Keep best observed progress so oscillating candidates cannot reset stall detection indefinitely.
|
|
15
|
+
- Persist accepted and rejected approaches, normalized failure fingerprints, prior evidence, decisions, and next action. In discovery, deduplicate rejected findings too and terminate after the configured number of rounds with no new evidence.
|
|
16
|
+
|
|
17
|
+
## Failure Routes
|
|
18
|
+
|
|
19
|
+
| Class | Next action | Retry condition |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| Invalid arguments | Repair typed arguments within current authority | The invalid field changes |
|
|
22
|
+
| Transient fault | Bounded backoff and retry | The transient condition clears; counters remain shared |
|
|
23
|
+
| Missing context | Retrieve a named source or replan | Required context becomes available |
|
|
24
|
+
| Behavioral defect | Repair only the failing work unit | Specific expected/actual feedback guides a different candidate |
|
|
25
|
+
| Denied authority | Stop and hand off locally | New authority requires an explicit authorized contract |
|
|
26
|
+
| Repeated or unrecoverable failure | Stop or escalate | A reviewed change addresses the cause |
|
|
27
|
+
|
|
28
|
+
The reference directly executes transient, behavioral, denied, unrecoverable, cancellation, timeout, exhaustion, and stall paths. Invalid arguments fail preflight; missing context is a documented replan route, with no fabricated retrieval adapter.
|
|
29
|
+
|
|
30
|
+
Feedback contains the failed condition, location, expected result, actual result, failure class, and permitted repair scope. For example: expected ordered values a/b/c, actual c/a/a, candidate.json only. Do not rerun an unchanged defect without a relevant change. Retain valid sibling artifacts and recheck integrations affected by the repair.
|
|
31
|
+
|
|
32
|
+
## Durable Ownership and Receipts
|
|
33
|
+
|
|
34
|
+
1. Keep facts, decisions, progress, and proposed lessons separately. Facts include source identity and freshness; assumptions are labelled. The reference has explicit facts, decisions, accepted/rejected progress, and trace fields; lessons remain proposals for a separate review.
|
|
35
|
+
2. A single controller writes versioned atomic checkpoints and holds an exclusive lock. Resume checks schema, checksum, contract, policy, revision, candidate digest, and shared accounting. Preserve corrupt state instead of guessing repairs or refunding resources.
|
|
36
|
+
3. Emit structured run/node/attempt events, transitions, contract/artifact identities, check outcomes, failure classes, retry reasons, approval status, elapsed time, calls, and terminal outcome. Do not persist private reasoning or sensitive payloads.
|
|
37
|
+
4. Every executed terminal path produces a receipt: changed artifacts, checks actually verified, unverified behavior, remaining risk, and next owner/action. Non-success also writes to the configured local handoff destination. Preflight/ownership/corruption errors fail closed for operator inspection and do not overwrite untrusted state to manufacture a receipt.
|
|
38
|
+
|
|
39
|
+
A timer is a trigger, not recovery. Introduce scheduling only after verified execution, duplicate-trigger handling, ownership, and recovery are established and separately authorized.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Graphs, Checkpoints, and Effects
|
|
2
|
+
|
|
3
|
+
## Four Shapes
|
|
4
|
+
|
|
5
|
+
```mermaid
|
|
6
|
+
flowchart LR
|
|
7
|
+
A[Read] -->|raw values| B[Normalize]
|
|
8
|
+
B -->|normalized values| C[Check]
|
|
9
|
+
R[Router] -->|selected values: left| L[Short path]
|
|
10
|
+
R -->|selected values: right| H[Review path]
|
|
11
|
+
S[Source] -->|source values| X[Unique]
|
|
12
|
+
S -->|source values| Y[Sorted]
|
|
13
|
+
X -->|left artifact| J[All-required join]
|
|
14
|
+
Y -->|right artifact| J
|
|
15
|
+
P[Repair] -->|invalid candidate, allocation remains| P
|
|
16
|
+
P -->|valid checked values| T[Terminal]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- Every edge names its artifact and condition. Keep real data, resource, write-ownership, and policy dependencies. Remove accidental ordering only after checking shared resource and ownership conflicts.
|
|
20
|
+
- Validate unique node IDs, schemas, required inputs, allowed transitions, reachable terminals, finite total steps and visits, and explicit join dependencies. A schema match is an edge-level check; semantic acceptance can require a separate verifier.
|
|
21
|
+
- Route from structured state in code. If a model proposes a route, compare it with the node's declared transitions before dispatch. Never execute arbitrary generated workflow code without validating the workflow and its permissions.
|
|
22
|
+
|
|
23
|
+
The runnable graph examples show a chain, both router paths, a fan-out, and a bounded cycle with named payloads. They demonstrate orchestration contracts using deterministic code. The loop example separately demonstrates independent behavioral verification. Graph fixture success means selected transitions and schemas passed; it does not establish real task or provider quality.
|
|
24
|
+
|
|
25
|
+
## Join and Failure Policy
|
|
26
|
+
|
|
27
|
+
Choose all branches, quorum, first valid result, or all settled results explicitly before execution. Define the threshold and cancellation of unused work. The reference supports only all-required joins: every dependency and its typed artifact must arrive. Missing outputs, a timeout, invalid output, cancellation, or a failed required branch prevents success. Partial outputs remain available for inspection and cannot enter a successful downstream join. Quorum and first-valid semantics require separate reviewed implementations.
|
|
28
|
+
|
|
29
|
+
Repair only a failed unit; preserve verified sibling outputs and invalidate downstream evidence. Real schedulers should model ordering edges separately from resource/write ownership locks. This reference schedules sequentially and keeps a single controller writer, avoiding shared-write races without claiming parallel scheduling.
|
|
30
|
+
|
|
31
|
+
## Resume and Effects
|
|
32
|
+
|
|
33
|
+
1. Persist graph version, contract and handler identity, revision, queue, outputs and digests, visits, steps, deadline, and trace. Resume only when schemas, artifact digests, contract, revision, and executor policy remain compatible. Contract versions must change when acceptance or graph semantics change.
|
|
34
|
+
2. Use atomic writes and one owner. Recover corrupt/incomplete checkpoints by preserving them, inspecting the last trustworthy artifact and evidence, and starting a reviewed run. Do not silently skip nodes or turn partial joins into success. Locks survive crashes and require explicit owner reconciliation.
|
|
35
|
+
3. Reserve allocation before a node runs. A crash may replay an unfinished node; do not refund the reservation. Code nodes must be pure or idempotent. External actions need service idempotency keys or explicit reconciliation for a crash after the effect but before its completion record.
|
|
36
|
+
4. Place required approval before the unapproved effect and bind it to the exact reviewed artifact. Changed artifacts invalidate approval. Do not claim exactly-once execution from a local completion log.
|
|
37
|
+
5. Prefer versioned stable graphs for recurring work. A generated one-off graph must pass schema, dependency, permission, resource, and effect checks before execution.
|
|
38
|
+
|
|
39
|
+
The local effect fixture writes one digest-bound local artifact per idempotency key, then a separate receipt. A duplicate key with different content requires reconciliation. The root must have one owner. This illustrates the crash window without authorizing an external effect.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Controlled Improvement and Evaluation
|
|
2
|
+
|
|
3
|
+
## Improve the Harness Separately
|
|
4
|
+
|
|
5
|
+
1. Group repeated failures by normalized fingerprint, failed criterion, location, and relevant tool/context version. Preserve both accepted and rejected attempts. Separate observations from proposed explanations.
|
|
6
|
+
2. Propose one small harness change addressing an observed cause. Prefer a schema, gateway check, architecture constraint, or sensor over additional prose. Operational workers cannot edit their policy, verifier, acceptance criteria, budget, evaluation cases, or scoring.
|
|
7
|
+
3. Use the repository's proposal, review, and task process. Review the actual diff and its rollback before adoption. Do not let the worker being evaluated authorize its own harness change.
|
|
8
|
+
4. Replay representative saved successes and failures plus held-out regressions. Keep evaluation cases and scoring inaccessible to the optimizer. Reject any change that introduces false success or regresses previously accepted behavior.
|
|
9
|
+
5. Adopt only after review, record new harness/contract versions, and invalidate incompatible cached evidence. Keep failed proposals as evidence rather than repeatedly rediscovering them.
|
|
10
|
+
|
|
11
|
+
```javascript
|
|
12
|
+
const result = evaluateChange(baselineCheck, proposedCheck);
|
|
13
|
+
// eligibleForReview is replay evidence, not authorization to adopt.
|
|
14
|
+
// An always-green proposedCheck must fail saved defective cases.
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The local replay compares deterministic check behavior on protected fixture cases. It does not estimate model effectiveness. The negative cases are intentionally known to the maintainer and are not a production held-out benchmark.
|
|
18
|
+
|
|
19
|
+
## Measure Accepted Work
|
|
20
|
+
|
|
21
|
+
| Measure | Definition |
|
|
22
|
+
|---|---|
|
|
23
|
+
| Accepted tasks | Outputs satisfying independently recorded acceptance criteria |
|
|
24
|
+
| False success | Accepted outputs later shown to violate those criteria |
|
|
25
|
+
| Recovery | Initially failed tasks later accepted within the same allocation |
|
|
26
|
+
| Repeated failures | Recurrent normalized failures, including rejected approaches |
|
|
27
|
+
| Cost per accepted task | All run costs, including failures and review, divided by accepted tasks |
|
|
28
|
+
| Latency | Elapsed request-to-verified-outcome time, including retries and joins |
|
|
29
|
+
| Human effort | Review minutes, interventions, and unresolved handoffs |
|
|
30
|
+
|
|
31
|
+
If no task is accepted, cost per accepted task is undefined. Unknown token cost remains unknown. Label deterministic stub results, actual provider tests, and production observations separately. Compare single-agent and graph variants on equivalent cases, checks, budgets, host conditions, and accounting. Routing tests alone cannot support quality, speed, or cost claims.
|
|
32
|
+
|
|
33
|
+
## Ablation and Decay
|
|
34
|
+
|
|
35
|
+
- After model, tool, or task changes, name the failure each component prevents and measure whether it still occurs.
|
|
36
|
+
- Remove one optional router, context layer, evaluator, or workaround at a time in an isolated variant. Replay equivalent cases and compare correctness, false success, cost, latency, and human effort.
|
|
37
|
+
- Preserve security and approval safeguards until evidence and governing policy support removal. A lower measured overhead does not grant authority to remove a required control.
|
|
38
|
+
- Reject regressions, retain the baseline, and make rollback a small versioned revert. Keep evaluation and improvement separate from operational execution.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"http://json-schema.org/draft-07/schema#","definitions":{"budget":{"type":"object","additionalProperties":false,"properties":{"maxAttempts":{"type":"integer","minimum":1,"maximum":100000},"maxCalls":{"type":"integer","minimum":1,"maximum":100000},"wallMs":{"type":"integer","minimum":1,"maximum":100000},"callMs":{"type":"integer","minimum":1,"maximum":100000},"stallRounds":{"type":"integer","minimum":1,"maximum":100000},"maxWorkers":{"type":"integer","minimum":1,"maximum":100000}},"required":["maxAttempts","maxCalls","wallMs","callMs","stallRounds","maxWorkers"]},"task":{"type":"object","additionalProperties":false,"properties":{"version":{"const":1},"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"objective":{"type":"string","minLength":1,"maxLength":1000},"scope":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"exclusions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"readPaths":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"writePaths":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"preservedBehavior":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"acceptance":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"requiredChecks":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"risk":{"enum":["local-reversible"]},"budget":{"$ref":"#/definitions/budget"},"owner":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"approvals":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"revision":{"type":"string","minLength":1,"maxLength":1000},"handoff":{"const":"handoff.json"}},"required":["version","id","objective","scope","exclusions","readPaths","writePaths","preservedBehavior","acceptance","requiredChecks","risk","budget","owner","approvals","revision","handoff"]},"tool":{"type":"object","additionalProperties":false,"properties":{"version":{"const":1},"id":{"enum":["stub","check"]},"inputSchema":{"type":"object"},"outputSchema":{"type":"object"},"preconditions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"effects":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"allowedPaths":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"allowedDomains":{"type":"array","maxItems":0},"deadlineMs":{"type":"integer","minimum":1,"maximum":100000},"retries":{"type":"integer","minimum":0,"maximum":2},"idempotency":{"type":"string","minLength":1,"maxLength":1000},"failures":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"successEvidence":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64}},"required":["version","id","inputSchema","outputSchema","preconditions","effects","allowedPaths","allowedDomains","deadlineMs","retries","idempotency","failures","successEvidence"]},"node":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"responsibility":{"type":"string","minLength":1,"maxLength":1000},"executor":{"enum":["code","stub","verifier"]},"inputSchema":{"type":"object"},"outputSchema":{"type":"object"},"dependencies":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"acceptance":{"enum":["schema","all-required"]},"failureRoute":{"enum":["stop","handoff"]},"allocation":{"type":"object","additionalProperties":false,"properties":{"calls":{"type":"integer","minimum":1,"maximum":100000},"timeoutMs":{"type":"integer","minimum":1,"maximum":100000}},"required":["calls","timeoutMs"]}},"required":["id","responsibility","executor","inputSchema","outputSchema","dependencies","acceptance","failureRoute","allocation"]},"agent":{"type":"object","additionalProperties":false,"properties":{"version":{"const":1},"role":{"enum":["planner","implementer","verifier","aggregator"]},"purpose":{"type":"string","minLength":1,"maxLength":1000},"inputs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"outputs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"readPaths":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"writePaths":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"tools":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"permissionCeiling":{"const":"local-reversible"},"timeoutMs":{"type":"integer","minimum":1,"maximum":100000},"allocation":{"$ref":"#/definitions/budget"},"verificationResponsibility":{"type":"string","minLength":1,"maxLength":1000},"termination":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"escalation":{"const":"handoff.json"},"delegationDepth":{"const":0}},"required":["version","role","purpose","inputs","outputs","readPaths","writePaths","tools","permissionCeiling","timeoutMs","allocation","verificationResponsibility","termination","escalation","delegationDepth"]},"invocation":{"type":"object","additionalProperties":false,"properties":{"version":{"const":1},"task":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"role":{"enum":["planner","implementer","verifier","aggregator"]},"scope":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"dependencies":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"relevantFiles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"acceptanceEvidence":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"outputSchema":{"type":"object"},"owner":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"writePaths":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"tools":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"allocation":{"type":"object","additionalProperties":false,"properties":{"calls":{"type":"integer","minimum":1,"maximum":100000},"timeoutMs":{"type":"integer","minimum":1,"maximum":100000}},"required":["calls","timeoutMs"]},"permissionCeiling":{"const":"local-reversible"},"delegationDepth":{"const":0}},"required":["version","task","role","scope","dependencies","relevantFiles","acceptanceEvidence","outputSchema","owner","writePaths","tools","allocation","permissionCeiling","delegationDepth"]},"evidence":{"type":"object","additionalProperties":false,"properties":{"check":{"const":"sorted-unique"},"artifact":{"type":"string","pattern":"^[a-f0-9]{64}$"},"contract":{"type":"string","pattern":"^[a-f0-9]{64}$"},"policy":{"type":"string","pattern":"^[a-f0-9]{64}$"},"revision":{"type":"string","minLength":1,"maxLength":1000},"timestamp":{"type":"string","pattern":"^\\d{4}-\\d\\d-\\d\\dT"},"command":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":64},"exitCode":{"type":"integer","minimum":0,"maximum":255},"expected":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"actual":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":64},"passed":{"type":"boolean"},"scope":{"type":"string","minLength":1,"maxLength":1000},"limitations":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64}},"required":["check","artifact","contract","policy","revision","timestamp","command","exitCode","expected","actual","passed","scope","limitations"]},"feedback":{"type":"object","additionalProperties":false,"properties":{"fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"condition":{"type":"string","minLength":1,"maxLength":1000},"location":{"type":"string","minLength":1,"maxLength":1000},"expected":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"actual":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":64},"repairScope":{"const":"candidate.json"},"classification":{"enum":["behavioral","transient","invalid-arguments","missing-context","denied","unrecoverable"]}},"required":["fingerprint","condition","location","expected","actual","repairScope","classification"]},"trace":{"type":"object","additionalProperties":false,"properties":{"run":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"node":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"attempt":{"type":"integer","minimum":0,"maximum":100000},"event":{"type":"string","minLength":1,"maxLength":1000},"contract":{"type":"string","pattern":"^[a-f0-9]{64}$"},"artifact":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"elapsedMs":{"type":"integer","minimum":0,"maximum":100000},"calls":{"type":"integer","minimum":0,"maximum":100000},"classification":{"type":"string","minLength":1,"maxLength":1000},"retryReason":{"type":"string","minLength":1,"maxLength":1000},"approval":{"const":"no-external-effects"}},"required":["run","node","attempt","event","contract","artifact","elapsedMs","calls","classification","retryReason","approval"]},"state":{"type":"object","additionalProperties":false,"properties":{"version":{"const":1},"run":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"contract":{"type":"string","pattern":"^[a-f0-9]{64}$"},"policy":{"type":"string","pattern":"^[a-f0-9]{64}$"},"revision":{"type":"string","minLength":1,"maxLength":1000},"mode":{"enum":["repair","exhaust","stall","denied","error","transient","timeout"]},"startedAt":{"type":"integer","minimum":0},"deadline":{"type":"integer","minimum":0},"attempts":{"type":"integer","minimum":0,"maximum":100000},"calls":{"type":"integer","minimum":0,"maximum":100000},"dryRounds":{"type":"integer","minimum":0,"maximum":100000},"bestScore":{"type":"integer","minimum":0,"maximum":3},"status":{"enum":["running","success","exhausted","stalled","cancelled","denied","error"]},"nextAction":{"type":"string","minLength":1,"maxLength":1000},"artifact":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"facts":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"decisions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"accepted":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"rejected":{"type":"array","items":{"$ref":"#/definitions/feedback"},"maxItems":100},"evidence":{"type":"array","items":{"$ref":"#/definitions/evidence"},"maxItems":100},"trace":{"type":"array","items":{"$ref":"#/definitions/trace"},"maxItems":1000}},"required":["version","run","contract","policy","revision","mode","startedAt","deadline","attempts","calls","dryRounds","bestScore","status","nextAction","artifact","facts","decisions","accepted","rejected","evidence","trace"]},"edge":{"type":"object","additionalProperties":false,"properties":{"from":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"to":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"artifact":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"condition":{"enum":["always","valid","invalid","left","right"]}},"required":["from","to","artifact","condition"]},"graph":{"type":"object","additionalProperties":false,"properties":{"version":{"const":1},"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"entry":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"terminals":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"uniqueItems":true,"maxItems":64},"maxSteps":{"type":"integer","minimum":1,"maximum":50},"maxVisits":{"type":"integer","minimum":1,"maximum":5},"joinPolicy":{"const":"all-required"},"nodes":{"type":"array","minItems":1,"maxItems":20,"items":{"$ref":"#/definitions/node"}},"edges":{"type":"array","maxItems":40,"items":{"$ref":"#/definitions/edge"}}},"required":["version","id","entry","terminals","maxSteps","maxVisits","joinPolicy","nodes","edges"]},"graphState":{"type":"object","additionalProperties":false,"properties":{"version":{"const":1},"contract":{"type":"string","pattern":"^[a-f0-9]{64}$"},"revision":{"type":"string","minLength":1,"maxLength":1000},"startedAt":{"type":"integer","minimum":0},"deadline":{"type":"integer","minimum":0},"steps":{"type":"integer","minimum":0,"maximum":100000},"visits":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{"type":"integer","minimum":0,"maximum":100000}},"outputs":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{}},"digests":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"additionalProperties":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"pending":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"input":{"type":"object"}},"required":["id","input"]}},"status":{"enum":["running","success","error","cancelled","exhausted"]},"trace":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"properties":{"node":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"step":{"type":"integer","minimum":0,"maximum":100000},"contract":{"type":"string","pattern":"^[a-f0-9]{64}$"},"artifact":{"type":"string","pattern":"^[a-f0-9]{64}$"},"route":{"enum":["always","valid","invalid","left","right"]},"elapsedMs":{"type":"integer","minimum":0,"maximum":100000},"calls":{"type":"integer","minimum":0,"maximum":100000},"outcome":{"const":"schema-accepted"}},"required":["node","step","contract","artifact","route","elapsedMs","calls","outcome"]}},"reason":{"type":"string","minLength":1,"maxLength":1000}},"required":["version","contract","revision","startedAt","deadline","steps","visits","outputs","digests","pending","status","trace","reason"]}}}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const { validate } = require('../examples/contracts.cjs');
|
|
5
|
+
const root = path.resolve(__dirname, '..');
|
|
6
|
+
const manifestPath = path.join(root, 'module.json');
|
|
7
|
+
function files(dir) { return fs.readdirSync(dir, { withFileTypes: true }).flatMap(e => e.isDirectory() ? files(path.join(dir, e.name)) : [path.join(dir, e.name)]); }
|
|
8
|
+
// This matches calculateModuleCharacterCount in the maintained CLI: all decoded file contents.
|
|
9
|
+
const count = () => files(root).reduce((n, file) => n + fs.readFileSync(file, 'utf8').length, 0);
|
|
10
|
+
function main() {
|
|
11
|
+
let manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
|
|
12
|
+
if (process.argv.includes('--update-count')) {
|
|
13
|
+
for (let pass = 0; pass < 5 && manifest.augment.characterCount !== count(); pass++) {
|
|
14
|
+
manifest.augment.characterCount = count();
|
|
15
|
+
fs.writeFileSync(manifestPath, JSON.stringify(manifest, null, 2) + '\n');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
|
|
19
|
+
if (manifest.type !== 'workflows' || manifest.dependencies.length || manifest.augment.characterCount !== count()) throw new Error('Manifest or character count mismatch');
|
|
20
|
+
for (const name of ['agent', 'invocation', 'task', 'tool', 'node', 'evidence', 'state', 'check-tool']) validate(name === 'check-tool' ? 'tool' : name, JSON.parse(fs.readFileSync(path.join(root, 'templates', name + '.json'), 'utf8')));
|
|
21
|
+
for (const file of files(root)) {
|
|
22
|
+
const body = fs.readFileSync(file, 'utf8');
|
|
23
|
+
if (body.includes(String.fromCharCode(0x2014))) throw new Error('Prohibited punctuation');
|
|
24
|
+
if (file.endsWith('.md')) for (const match of body.matchAll(/\]\(([^)]+)\)/g)) {
|
|
25
|
+
if (!/^[a-z]+:|^#/i.test(match[1]) && !fs.existsSync(path.resolve(path.dirname(file), match[1].split('#')[0]))) throw new Error('Broken local link: ' + match[1]);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const { exampleGraph } = require('../examples/graphs.cjs');
|
|
29
|
+
for (const shape of ['chain', 'router', 'fan-out', 'cycle']) exampleGraph(shape);
|
|
30
|
+
process.stdout.write(JSON.stringify({ module: manifest.name, characters: count(), templates: 8, graphShapes: 4 }) + '\n');
|
|
31
|
+
}
|
|
32
|
+
try { main(); } catch (error) { process.stderr.write(error.message + '\n'); process.exitCode = 1; }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Source Review
|
|
2
|
+
|
|
3
|
+
Reviewed 2026-11-26. Direct requests to all four original X posts returned HTTP 403. FXTwitter's public API returned article prose and embedded Markdown examples for each post. This is third-party reproduction, not independent verification of authorship details, benchmarks, anecdotes, pricing, or product claims. No article code was copied into the reference implementation.
|
|
4
|
+
|
|
5
|
+
| Design input | Alternate retrieval | Topics adopted as recommendations here |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| [HoodieFade_: Loops & Graphs](https://x.com/HoodieFade_/status/2117959235690524883) | [FXTwitter reproduction](https://api.fxtwitter.com/HoodieFade_/status/2117959235690524883) | Rejectable checks, deduplication of rejected findings, named edge payloads, repair only the failed unit |
|
|
8
|
+
| [0xwhrrari: Harness, Loop and Graph](https://x.com/0xwhrrari/status/2118327478250840140) | [FXTwitter reproduction](https://api.fxtwitter.com/0xwhrrari/status/2118327478250840140) | Nested responsibilities, loop levels, protected acceptance criteria, durable state, harness decay |
|
|
9
|
+
| [iiiichigo_chan: Harness, Loops, Graphs](https://x.com/iiiichigo_chan/status/2118397992239571196) | [FXTwitter reproduction](https://api.fxtwitter.com/iiiichigo_chan/status/2118397992239571196) | Adoption in stages, code-owned routing, independent review contexts, improvement and removal by evaluation |
|
|
10
|
+
| [LunarResearcher: Harness Engineering](https://x.com/LunarResearcher/status/2096570562625655088) | [FXTwitter reproduction](https://api.fxtwitter.com/LunarResearcher/status/2096570562625655088) | Task and tool contracts, context maps, observable verification, local receipts, failure classification |
|
|
11
|
+
|
|
12
|
+
These concepts are design inputs. Their implementation here is an original local demonstration. Numerical performance claims and vendor-specific configuration/capability claims are intentionally omitted. For a future vendor adapter, check the vendor's current official documentation, record the checked version/date, and test its actual permission, cancellation, and usage-accounting behavior. An article's embedded command never authorizes executing it.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"role": "implementer",
|
|
4
|
+
"purpose": "Produce one candidate inside the work packet",
|
|
5
|
+
"inputs": [
|
|
6
|
+
"Validated task",
|
|
7
|
+
"Feedback"
|
|
8
|
+
],
|
|
9
|
+
"outputs": [
|
|
10
|
+
"Candidate artifact"
|
|
11
|
+
],
|
|
12
|
+
"readPaths": [
|
|
13
|
+
"candidate.json"
|
|
14
|
+
],
|
|
15
|
+
"writePaths": [
|
|
16
|
+
"candidate.json"
|
|
17
|
+
],
|
|
18
|
+
"tools": [
|
|
19
|
+
"stub"
|
|
20
|
+
],
|
|
21
|
+
"permissionCeiling": "local-reversible",
|
|
22
|
+
"timeoutMs": 750,
|
|
23
|
+
"allocation": {
|
|
24
|
+
"maxAttempts": 5,
|
|
25
|
+
"maxCalls": 12,
|
|
26
|
+
"wallMs": 5000,
|
|
27
|
+
"callMs": 750,
|
|
28
|
+
"stallRounds": 2,
|
|
29
|
+
"maxWorkers": 1
|
|
30
|
+
},
|
|
31
|
+
"verificationResponsibility": "Controller invokes protected independent checker",
|
|
32
|
+
"termination": [
|
|
33
|
+
"Verified acceptance",
|
|
34
|
+
"Allocation exhausted",
|
|
35
|
+
"Cancellation",
|
|
36
|
+
"Denied authority"
|
|
37
|
+
],
|
|
38
|
+
"escalation": "handoff.json",
|
|
39
|
+
"delegationDepth": 0
|
|
40
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"id": "check",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"path": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"minLength": 1,
|
|
11
|
+
"maxLength": 1000
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"required": [
|
|
15
|
+
"path"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"outputSchema": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"properties": {
|
|
22
|
+
"passed": {
|
|
23
|
+
"type": "boolean"
|
|
24
|
+
},
|
|
25
|
+
"score": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 3
|
|
29
|
+
},
|
|
30
|
+
"expected": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 1000
|
|
36
|
+
},
|
|
37
|
+
"uniqueItems": true,
|
|
38
|
+
"maxItems": 64
|
|
39
|
+
},
|
|
40
|
+
"actual": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1,
|
|
45
|
+
"maxLength": 1000
|
|
46
|
+
},
|
|
47
|
+
"maxItems": 64
|
|
48
|
+
},
|
|
49
|
+
"condition": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"minLength": 1,
|
|
52
|
+
"maxLength": 1000
|
|
53
|
+
},
|
|
54
|
+
"location": {
|
|
55
|
+
"const": "candidate.json"
|
|
56
|
+
},
|
|
57
|
+
"artifact": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"required": [
|
|
63
|
+
"passed",
|
|
64
|
+
"score",
|
|
65
|
+
"expected",
|
|
66
|
+
"actual",
|
|
67
|
+
"condition",
|
|
68
|
+
"location",
|
|
69
|
+
"artifact"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"preconditions": [
|
|
73
|
+
"Contract validated",
|
|
74
|
+
"Remaining shared allocation"
|
|
75
|
+
],
|
|
76
|
+
"effects": [
|
|
77
|
+
"Read candidate and return protected verdict"
|
|
78
|
+
],
|
|
79
|
+
"allowedPaths": [
|
|
80
|
+
"candidate.json"
|
|
81
|
+
],
|
|
82
|
+
"allowedDomains": [],
|
|
83
|
+
"deadlineMs": 750,
|
|
84
|
+
"retries": 0,
|
|
85
|
+
"idempotency": "Pure stub; retries consume shared calls",
|
|
86
|
+
"failures": [
|
|
87
|
+
"transient",
|
|
88
|
+
"denied",
|
|
89
|
+
"unrecoverable"
|
|
90
|
+
],
|
|
91
|
+
"successEvidence": [
|
|
92
|
+
"Typed candidate followed by independent check"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"check": "sorted-unique",
|
|
3
|
+
"artifact": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
4
|
+
"contract": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
5
|
+
"policy": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
6
|
+
"revision": "fixture-v1",
|
|
7
|
+
"timestamp": "2026-11-26T00:00:00.000Z",
|
|
8
|
+
"command": [
|
|
9
|
+
"node",
|
|
10
|
+
"verify.cjs",
|
|
11
|
+
"candidate.json"
|
|
12
|
+
],
|
|
13
|
+
"exitCode": 0,
|
|
14
|
+
"expected": [
|
|
15
|
+
"a",
|
|
16
|
+
"b",
|
|
17
|
+
"c"
|
|
18
|
+
],
|
|
19
|
+
"actual": [
|
|
20
|
+
"a",
|
|
21
|
+
"b",
|
|
22
|
+
"c"
|
|
23
|
+
],
|
|
24
|
+
"passed": true,
|
|
25
|
+
"scope": "Local deterministic fixture only",
|
|
26
|
+
"limitations": [
|
|
27
|
+
"No provider or production evidence"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"task": "local-demo",
|
|
4
|
+
"role": "implementer",
|
|
5
|
+
"scope": [
|
|
6
|
+
"Produce candidate only"
|
|
7
|
+
],
|
|
8
|
+
"dependencies": [],
|
|
9
|
+
"relevantFiles": [
|
|
10
|
+
"candidate.json"
|
|
11
|
+
],
|
|
12
|
+
"acceptanceEvidence": [
|
|
13
|
+
"sorted-unique check"
|
|
14
|
+
],
|
|
15
|
+
"outputSchema": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"a",
|
|
21
|
+
"b",
|
|
22
|
+
"c"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"maxItems": 8
|
|
26
|
+
},
|
|
27
|
+
"owner": "worker-one",
|
|
28
|
+
"writePaths": [
|
|
29
|
+
"candidate.json"
|
|
30
|
+
],
|
|
31
|
+
"tools": [
|
|
32
|
+
"stub"
|
|
33
|
+
],
|
|
34
|
+
"allocation": {
|
|
35
|
+
"calls": 2,
|
|
36
|
+
"timeoutMs": 750
|
|
37
|
+
},
|
|
38
|
+
"permissionCeiling": "local-reversible",
|
|
39
|
+
"delegationDepth": 0
|
|
40
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "normalize",
|
|
3
|
+
"responsibility": "Normalize one fixture",
|
|
4
|
+
"executor": "code",
|
|
5
|
+
"inputSchema": {
|
|
6
|
+
"type": "object"
|
|
7
|
+
},
|
|
8
|
+
"outputSchema": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"a",
|
|
14
|
+
"b",
|
|
15
|
+
"c"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"maxItems": 8
|
|
19
|
+
},
|
|
20
|
+
"dependencies": [],
|
|
21
|
+
"acceptance": "schema",
|
|
22
|
+
"failureRoute": "handoff",
|
|
23
|
+
"allocation": {
|
|
24
|
+
"calls": 1,
|
|
25
|
+
"timeoutMs": 750
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"run": "local-demo",
|
|
4
|
+
"contract": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
5
|
+
"policy": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
6
|
+
"revision": "fixture-v1",
|
|
7
|
+
"mode": "repair",
|
|
8
|
+
"startedAt": 0,
|
|
9
|
+
"deadline": 5000,
|
|
10
|
+
"attempts": 0,
|
|
11
|
+
"calls": 0,
|
|
12
|
+
"dryRounds": 0,
|
|
13
|
+
"bestScore": 0,
|
|
14
|
+
"status": "running",
|
|
15
|
+
"nextAction": "dispatch",
|
|
16
|
+
"artifact": null,
|
|
17
|
+
"facts": [
|
|
18
|
+
"Fixture source is protected"
|
|
19
|
+
],
|
|
20
|
+
"decisions": [
|
|
21
|
+
"Single controller writer"
|
|
22
|
+
],
|
|
23
|
+
"accepted": [],
|
|
24
|
+
"rejected": [],
|
|
25
|
+
"evidence": [],
|
|
26
|
+
"trace": []
|
|
27
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"id": "local-demo",
|
|
4
|
+
"objective": "Produce sorted unique fixture values",
|
|
5
|
+
"scope": [
|
|
6
|
+
"candidate.json"
|
|
7
|
+
],
|
|
8
|
+
"exclusions": [
|
|
9
|
+
"External effects",
|
|
10
|
+
"Guardrail changes"
|
|
11
|
+
],
|
|
12
|
+
"readPaths": [
|
|
13
|
+
"candidate.json"
|
|
14
|
+
],
|
|
15
|
+
"writePaths": [
|
|
16
|
+
"candidate.json"
|
|
17
|
+
],
|
|
18
|
+
"preservedBehavior": [
|
|
19
|
+
"Fixture source remains unchanged"
|
|
20
|
+
],
|
|
21
|
+
"acceptance": [
|
|
22
|
+
"Exact expected ordered values"
|
|
23
|
+
],
|
|
24
|
+
"requiredChecks": [
|
|
25
|
+
"sorted-unique"
|
|
26
|
+
],
|
|
27
|
+
"risk": "local-reversible",
|
|
28
|
+
"budget": {
|
|
29
|
+
"maxAttempts": 5,
|
|
30
|
+
"maxCalls": 12,
|
|
31
|
+
"wallMs": 5000,
|
|
32
|
+
"callMs": 750,
|
|
33
|
+
"stallRounds": 2,
|
|
34
|
+
"maxWorkers": 1
|
|
35
|
+
},
|
|
36
|
+
"owner": "controller",
|
|
37
|
+
"approvals": [],
|
|
38
|
+
"revision": "fixture-v1",
|
|
39
|
+
"handoff": "handoff.json"
|
|
40
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"id": "stub",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"attempt": {
|
|
9
|
+
"type": "integer",
|
|
10
|
+
"minimum": 1,
|
|
11
|
+
"maximum": 100000
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"required": [
|
|
15
|
+
"attempt"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"outputSchema": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": [
|
|
23
|
+
"a",
|
|
24
|
+
"b",
|
|
25
|
+
"c"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"maxItems": 8
|
|
29
|
+
},
|
|
30
|
+
"preconditions": [
|
|
31
|
+
"Contract validated",
|
|
32
|
+
"Remaining shared allocation"
|
|
33
|
+
],
|
|
34
|
+
"effects": [
|
|
35
|
+
"Returns a candidate; controller owns writes"
|
|
36
|
+
],
|
|
37
|
+
"allowedPaths": [
|
|
38
|
+
"candidate.json"
|
|
39
|
+
],
|
|
40
|
+
"allowedDomains": [],
|
|
41
|
+
"deadlineMs": 750,
|
|
42
|
+
"retries": 1,
|
|
43
|
+
"idempotency": "Pure stub; retries consume shared calls",
|
|
44
|
+
"failures": [
|
|
45
|
+
"transient",
|
|
46
|
+
"denied",
|
|
47
|
+
"unrecoverable"
|
|
48
|
+
],
|
|
49
|
+
"successEvidence": [
|
|
50
|
+
"Typed candidate followed by independent check"
|
|
51
|
+
]
|
|
52
|
+
}
|