The status page's walkthrough (M6.6b)
A new package, nisse-ui: a read-only page for studying how the agents work. For each work item it shows the steps (what people and the orchestrator said, and each run), each run's turns, and each turn's request read against the log it was made from: - each message beside the events it came from, tagged unchanged, labelled, narrated, shortened (by how much) or a compaction, with what fitting dropped; - what is new since the turn before, and where the request first differs (where prompt reuse had to stop), next to the server's count; - the reply with its reasoning, and the raw JSON. Runs going in circles are flagged by nisse_core.loop.circles (repeated near-identical replies, one correction given again and again, repeated apologies), a pure function M7.8 can reuse in Driver.run. In nisse-core: - render.py: message_indexes(), from the same code render() uses, so the page's matching can't drift from what was sent. - calls.py: the record notes when recording began; the reader gains calls_for(item) and call(id). - state/readonly.py: opens an agent's SQLite file without creating its -wal/-shm files (mode=ro alone does, once the writer has closed). The page reads only through read-only connections, escapes everything, and sends a Content Security Policy that allows no script. It listens on 127.0.0.1; until M6.6d puts it behind Authelia, reach it over an SSH tunnel. Jinja2 is its one new dependency, for autoescaping. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J5Utyfzw7gF7UhjRDEtjTk
This commit is contained in:
1 parent
c1f3d9dafb
commit
a8e2023183
31 files changed
+2550
-15
No files matched your search
+3
-2
@@ -1,5 +1,5 @@
|
||||
[tool.uv.workspace]
|
||||
members = ["nisse-core", "nisse-dev", "nisse-ops", "nisse-review"]
|
||||
members = ["nisse-core", "nisse-dev", "nisse-ops", "nisse-review", "nisse-ui"]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
@@ -14,6 +14,7 @@ testpaths = [
|
||||
"nisse-dev/tests",
|
||||
"nisse-ops/tests",
|
||||
"nisse-review/tests",
|
||||
"nisse-ui/tests",
|
||||
"tests",
|
||||
]
|
||||
# The seed is a test project's own code, pushed to each run's repository.
|
||||
@@ -33,4 +34,4 @@ extend-exclude = ["tests/integration/seed"] # a test project's own code
|
||||
extend-select = ["I"]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
known-first-party = ["nisse_core", "nisse_dev", "nisse_ops", "nisse_review"]
|
||||
known-first-party = ["nisse_core", "nisse_dev", "nisse_ops", "nisse_review", "nisse_ui"]
|
||||
Reference in new issue
Block a user