@sockulags/agent-os 0.11.0 → 0.12.1
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/README.md +155 -127
- package/cli/index.mjs +1022 -735
- package/cli/index.test.mjs +574 -300
- package/hooks/hooks.json +17 -0
- package/package.json +34 -32
- package/policy.md +47 -45
- package/skills/batch-work/SKILL.md +43 -43
- package/skills/batch-work/agents/openai.yaml +2 -2
- package/skills/batch-work/references/manifest.md +100 -100
- package/skills/batch-work/scripts/manifest-hash.mjs +263 -263
- package/skills/batch-work/scripts/test-manifest-hash.mjs +132 -132
- package/skills/chart-work/SKILL.md +37 -37
- package/skills/chart-work/references/elicitation.md +25 -25
- package/skills/chart-work/references/map.md +84 -84
- package/skills/chart-work/references/prototypes.md +21 -21
- package/skills/check-work/SKILL.md +61 -0
- package/skills/deliver-work/SKILL.md +12 -12
- package/skills/deliver-work/workflow.md +119 -113
- package/skills/diagnose-before-fix/SKILL.md +24 -24
- package/skills/dispatch-next/SKILL.md +28 -28
- package/skills/init-agent-os/SKILL.md +54 -39
- package/skills/init-agent-os/references/repository-init.md +74 -0
- package/skills/init-agent-os/scripts/policy-block.ps1 +87 -87
- package/skills/list-skills/SKILL.md +43 -42
- package/skills/list-skills/agents/openai.yaml +2 -2
- package/skills/plain-voice/SKILL.md +39 -0
- package/skills/plain-voice/references/tells.md +82 -0
- package/skills/proportional-testing/SKILL.md +30 -30
- package/skills/proportional-testing/references/strategy.md +75 -75
- package/skills/quality-ratchet/SKILL.md +50 -0
- package/skills/quality-ratchet/scripts/quality-delta.mjs +752 -0
- package/skills/quality-ratchet/scripts/quality-delta.test.mjs +514 -0
- package/skills/scope-guard/SKILL.md +21 -21
- package/skills/shape-work/SKILL.md +39 -39
- package/skills/shape-work/references/implementation-issues.md +69 -69
- package/skills/shape-work/references/mockups.md +23 -23
- package/skills/simplifier/SKILL.md +34 -34
- package/skills/simplifier/agents/openai.yaml +2 -2
- package/skills/simplifier-audit/SKILL.md +28 -28
- package/skills/simplifier-audit/agents/openai.yaml +2 -2
- package/skills/simplifier-review/SKILL.md +36 -29
- package/skills/verify-before-done/SKILL.md +29 -29
- package/skills/writing-skills/SKILL.md +68 -68
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: quality-ratchet
|
|
3
|
+
description: Keeps implementation quality from regressing by comparing a candidate with its exact entry state and separating bounded touched-surface improvement from cleanup. It activates during implementation and delivery review, not for repository-wide debt hunts or line-count optimization.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Quality ratchet
|
|
7
|
+
|
|
8
|
+
Keep the smallest set of concepts and machinery needed for the current change. The ratchet is an
|
|
9
|
+
evidence layer, not a score, gate, or replacement for semantic review.
|
|
10
|
+
|
|
11
|
+
Resolve `scripts/quality-delta.mjs` relative to this loaded `SKILL.md`; do not assume the current
|
|
12
|
+
worktree contains an Agent OS checkout. Before the first mutation in a Git worktree, run that
|
|
13
|
+
installed runner with `begin` when it is available. It records the exact tracked and nonignored
|
|
14
|
+
untracked entry state without stashing or changing user files. After implementation and before
|
|
15
|
+
`simplifier-review`, run the same runner with `check` and pass its evidence to that review. Use its
|
|
16
|
+
`clear` command only when abandoning the attempt. The normal correctness, security, scope,
|
|
17
|
+
independent-review, and verification steps still decide delivery.
|
|
18
|
+
|
|
19
|
+
Use three zones:
|
|
20
|
+
|
|
21
|
+
1. A bounded, behavior-preserving improvement on the implementation surface already being
|
|
22
|
+
touched is allowed when it makes the requested change clearer or safer.
|
|
23
|
+
2. Report at most one concrete adjacent structural opportunity when it materially constrains the
|
|
24
|
+
requested change, but leave it out of the patch unless the boundary expands.
|
|
25
|
+
3. Ignore unrelated debt. `scope-guard` owns drift; do not turn a ratchet signal into a cleanup
|
|
26
|
+
project.
|
|
27
|
+
|
|
28
|
+
The check reports added, changed, and deleted source files, touched-source NLOC before/after, the
|
|
29
|
+
before/after status of source paths that were already present at entry, package dependency deltas,
|
|
30
|
+
and optional analyzer capability. Raw file, function, or line counts are signals only. There is no
|
|
31
|
+
aggregate score and no threshold gate. Missing Lizard or jscpd is reported as unavailable rather
|
|
32
|
+
than clean; the core Node evidence remains usable. Their parsing integration is an explicit
|
|
33
|
+
follow-up, not an install-time prerequisite.
|
|
34
|
+
|
|
35
|
+
The Stop hook blocks only an active lifecycle violation: a corrupt baseline, or a missing/stale check
|
|
36
|
+
for the current candidate. State is bound to the current Git worktree and host session: Claude uses
|
|
37
|
+
`CLAUDE_CODE_SESSION_ID`, Codex uses `CODEX_THREAD_ID`, and standalone/manual use has a deterministic
|
|
38
|
+
fallback. `begin`, `check`, and `clear` use those command environments, preferring Codex when both
|
|
39
|
+
IDs exist. Stop uses payload
|
|
40
|
+
`session_id`, treating a non-empty `turn_id` as Codex and otherwise as Claude; without `session_id`,
|
|
41
|
+
it retains the command environment for direct/manual use. A worktree without an active baseline for
|
|
42
|
+
the current session is a cheap no-op. A re-entered Stop hook remains blocked until that same session
|
|
43
|
+
records a fresh `check`; the `stop_hook_active` payload does not bypass the lifecycle requirement. A fresh Stop clears only the
|
|
44
|
+
current session state. Run `clear` deliberately from the same host session when abandoning an
|
|
45
|
+
implementation attempt; uninstall is not currently a command.
|
|
46
|
+
|
|
47
|
+
Exit with the smallest complete implementation, the quality evidence, semantic review findings,
|
|
48
|
+
and fresh verification. Do not remove a legitimate abstraction merely because it increases a raw
|
|
49
|
+
count: multiple providers, runtime selection, compatibility, or a real trust boundary can justify
|
|
50
|
+
the machinery and belongs to semantic judgment.
|