Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/land/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Run it from a fresh clone of the repository, checked out at `sha`.
| `repo` | `owner/name` |
| `sha` | the pinned 40-hex commit; the checkout's `HEAD` must equal it and be clean |
| `baseBranch` | optional; must agree with `land.config.json` |
| `mergeMode` | hosted request mode (`shadow`, `approval`, or `auto`); must agree with the pinned `mergePolicy.mode` on the first stage and the persisted config on every resume, including terminal or already-advanced replays. A mismatch returns `needs_human` before review, agent or push work; it never changes the config. Local runs may omit it |
| `sessionId` | goes into the `Relay-Session:` trailer |
| `intentFile` | absolute or `$HOME/…`, outside the checkout; given to context review and the fix agent only |
| `stateDir` | absolute or `$HOME/…`, outside the checkout, persisted between stage runs; every byte the run writes |
Expand Down
88 changes: 88 additions & 0 deletions examples/land/evidence/hosted-mode/baseline.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
TAP version 13
# Subtest: hosted crossed modes refuse before review, agent or push work
not ok 1 - hosted crossed modes refuse before review, agent or push work
---
duration_ms: 4.035458
type: 'test'
location: '/Volumes/T7/Projects/AgentWorkforce/worktrees/flows/flows-land-mode-contract-20261103/examples/land/tests/flow.test.ts:702:1'
failureType: 'testCodeFailure'
error: |-
Expected values to be strictly equal:
+ actual - expected

+ 'success'
- 'needs_human'

code: 'ERR_ASSERTION'
name: 'AssertionError'
expected: 'needs_human'
actual: 'success'
operator: 'strictEqual'
stack: |-
TestContext.<anonymous> (file:///Volumes/T7/Projects/AgentWorkforce/worktrees/flows/flows-land-mode-contract-20261103/examples/land/tests/flow.test.ts:706:12)
async Test.run (node:internal/test_runner/test:1054:7)
async startSubtestAfterBootstrap (node:internal/test_runner/harness:296:3)
...
# Subtest: hosted matching modes preserve real auto pushes and shadow no-push behavior
ok 2 - hosted matching modes preserve real auto pushes and shadow no-push behavior
---
duration_ms: 6.947084
type: 'test'
...
# Subtest: hosted mode mismatch refuses an already-advanced stage without rewriting state
not ok 3 - hosted mode mismatch refuses an already-advanced stage without rewriting state
---
duration_ms: 0.358
type: 'test'
location: '/Volumes/T7/Projects/AgentWorkforce/worktrees/flows/flows-land-mode-contract-20261103/examples/land/tests/flow.test.ts:725:1'
failureType: 'testCodeFailure'
error: |-
Expected values to be strictly equal:
+ actual - expected

+ 'success'
- 'needs_human'

code: 'ERR_ASSERTION'
name: 'AssertionError'
expected: 'needs_human'
actual: 'success'
operator: 'strictEqual'
stack: |-
TestContext.<anonymous> (file:///Volumes/T7/Projects/AgentWorkforce/worktrees/flows/flows-land-mode-contract-20261103/examples/land/tests/flow.test.ts:731:10)
async Test.run (node:internal/test_runner/test:1054:7)
async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
...
# Subtest: hosted mode mismatch cannot replay a terminal shadow result as an auto landing
not ok 4 - hosted mode mismatch cannot replay a terminal shadow result as an auto landing
---
duration_ms: 0.511875
type: 'test'
location: '/Volumes/T7/Projects/AgentWorkforce/worktrees/flows/flows-land-mode-contract-20261103/examples/land/tests/flow.test.ts:737:1'
failureType: 'testCodeFailure'
error: |-
Expected values to be strictly equal:
+ actual - expected

+ 'success'
- 'needs_human'

code: 'ERR_ASSERTION'
name: 'AssertionError'
expected: 'needs_human'
actual: 'success'
operator: 'strictEqual'
stack: |-
TestContext.<anonymous> (file:///Volumes/T7/Projects/AgentWorkforce/worktrees/flows/flows-land-mode-contract-20261103/examples/land/tests/flow.test.ts:742:10)
async Test.run (node:internal/test_runner/test:1054:7)
async Test.processPendingSubtests (node:internal/test_runner/test:744:7)
...
1..4
# tests 4
# suites 0
# pass 1
# fail 3
# cancelled 0
# skipped 0
# todo 0
# duration_ms 135.386916
Loading
Loading