Projects as configuration entries (M1.4, D8)
CI / checks (push) Skipped
CI / checks (pull_request) Failing after 5m7s

- Config: `projects: {name: entry}` with repo, base_branch, workspace,
  build_host, push credential, labels (defaults added to every issue),
  secrets by ${VAR} reference with visibility (commands | harness), and
  egress (recorded, not enforced). Every problem in every entry is
  reported at once; an inline secret, a bad visibility, a repeated repo or
  a non-slug name is an error.
- The old loop runs exactly one project (only_project) and refuses more.
- The new loop is per project: each its own clone, workspace (with its
  commands-visible secrets, redacted on return), push credential and
  milestones; intake polls every project's repository; items are scoped
  to their project for every run, publish and PR watch. Issues are named
  project#14 when there is more than one project, and a bare #14 that
  matches two is asked about. Switching projects parks the one worked on
  last (all others after a boot).
- A restatement that ends in a question is sent back to the driver, not
  posted: the e2e driver kept asking "Is this the right interpretation?",
  which a plain yes can't answer.

Tests: config entries and errors, two-project assembly, two-project loop
tests (intake, own workspaces and repos, #14 in both, do-next, label
defaults, parking across projects), the property walk over two projects
with a new own_repository_only property (an item using the first
project's repo fails 15 of 16 seeds), and the restatement check.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPQ14L3LikyefCMFBqEbKE
This commit is contained in:
dongarandClaude Opus 5.5 committed 2026-10-06 01:12:57 +00:00
1 parent 4ecff19933
commit 064d9bf554
17 files changed
+1139 -315

No files matched your search

+29
View File
@@ -280,3 +280,32 @@ def _msg(text: str, thread: str) -> Any:
from nisse_dev.transport import InboundMessage
return InboundMessage(DON, text, thread=thread)
def test_a_restatement_that_asks_is_sent_back(tmp_path: Path) -> None:
"""A restatement is agreed to as it stands; one ending in a question
(models add "Is this right?") never goes up."""
h = Harness(
tmp_path,
ScriptedModel(
[call("restate", text="I'll add count_words. Is this right?")],
[call("restate", text="I'll add count_words to text.py, with tests.")],
),
FakeGitea(issue()),
)
h.agent.intake()
loop = loop_of(h.item())
assert (loop.wait, loop.rev) == (GO_AHEAD, 1)
posted = [p for p in h.posted() if p.startswith("rev-")]
assert posted == [
(
"rev-1: I'll add count_words to text.py, with tests.\n\n"
"Say go to start, or reply with changes."
)
]
results = [
e.event.result
for e in h.store.transcript(h.item().id, "driver").read()
if hasattr(e.event, "result")
]
assert any("a restatement asks no questions" in r for r in results)