@appchy/jarvis 0.1.105 → 0.1.106
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/dist/bin.js +1 -1
- package/harness/harness/check.py +11 -0
- package/harness/test_work.py +20 -0
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -10260,7 +10260,7 @@ import { createRequire as createRequire2 } from "module";
|
|
|
10260
10260
|
var _require = createRequire2(import.meta.url);
|
|
10261
10261
|
var VERSION2 = _require("../package.json").version ?? "0.0.0";
|
|
10262
10262
|
var IS_DEV = String(_require("../package.json").name ?? "").endsWith("-dev");
|
|
10263
|
-
var SHA = "
|
|
10263
|
+
var SHA = "c471483";
|
|
10264
10264
|
var BUILT = "2026-09-11";
|
|
10265
10265
|
var BUILD = SHA ?? "source";
|
|
10266
10266
|
var BUILD_LABEL = `${SHA ? `${VERSION2} (${SHA}${BUILT ? ` ${BUILT}` : ""})` : `${VERSION2} (source)`}${IS_DEV ? " \u2014 development build" : ""}`;
|
package/harness/harness/check.py
CHANGED
|
@@ -80,9 +80,20 @@ def checked(root: Path, task, session: str) -> bool:
|
|
|
80
80
|
A session id we never got is treated as checked. The alternative is refusing
|
|
81
81
|
every completion that arrives without one — a plain terminal, a script, another
|
|
82
82
|
agent — over a record none of them could ever have written.
|
|
83
|
+
|
|
84
|
+
So is `tier: 0`, which the board already defines as "reversible and local: a
|
|
85
|
+
typo, a comment, a test name". A command standing between somebody and a typo
|
|
86
|
+
fix is friction on the work least likely to be misled by a stale brief, and
|
|
87
|
+
friction on trivia is how a check earns its reputation for being in the way.
|
|
83
88
|
"""
|
|
84
89
|
if not session:
|
|
85
90
|
return True
|
|
91
|
+
from .autonomy import tier_of
|
|
92
|
+
try:
|
|
93
|
+
if tier_of(task) == 0:
|
|
94
|
+
return True
|
|
95
|
+
except (AttributeError, TypeError, ValueError):
|
|
96
|
+
pass # a task too old or too odd to have a tier is checked like any other
|
|
86
97
|
return _marker(root, task.name, session).exists()
|
|
87
98
|
|
|
88
99
|
|
package/harness/test_work.py
CHANGED
|
@@ -7756,6 +7756,26 @@ def test_a_sibling_repos_path_is_not_this_checkouts_to_judge_however_it_is_spell
|
|
|
7756
7756
|
assert [f[2] for f in drift(repo, ["work/brief.md"])] == ["src/mine.ts"]
|
|
7757
7757
|
|
|
7758
7758
|
|
|
7759
|
+
def test_a_tier_zero_item_is_not_asked_to_have_looked():
|
|
7760
|
+
# The board already calls tier 0 "reversible and local: a typo, a comment, a
|
|
7761
|
+
# test name". A command between somebody and a typo fix is friction on the work
|
|
7762
|
+
# least likely to be misled by a stale brief.
|
|
7763
|
+
import harness.check as check, harness.model as model
|
|
7764
|
+
with tempfile.TemporaryDirectory() as tmp:
|
|
7765
|
+
repo = _git_repo(tmp, push=False)
|
|
7766
|
+
root = repo / "work"
|
|
7767
|
+
v = root / "versions" / "26-cut"
|
|
7768
|
+
t_ = v / "an-epic" / "in-progress" / "trivial"
|
|
7769
|
+
t_.mkdir(parents=True)
|
|
7770
|
+
(v / "version.md").write_text(
|
|
7771
|
+
"---\ncreated: 2026-09-01\norder: 26\noutcome: a user can do it\n---\n\n# A cut\n")
|
|
7772
|
+
(v / "an-epic" / "epic.md").write_text(
|
|
7773
|
+
"---\ntype: epic\nowner: quality\n---\n\n# An epic\n")
|
|
7774
|
+
(t_ / "task.md").write_text("---\npriority: P2\ntier: 0\n---\n\n# Trivial\n")
|
|
7775
|
+
|
|
7776
|
+
assert check.checked(root, model.locate(root, "trivial"), "some-session")
|
|
7777
|
+
|
|
7778
|
+
|
|
7759
7779
|
if __name__ == "__main__":
|
|
7760
7780
|
tests = [v for k, v in sorted(globals().items())
|
|
7761
7781
|
if k.startswith("test_") and callable(v)]
|