@xingular/harness 1.4.0-unstable → 1.5.0-unstable
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/CHANGELOG.md +41 -1
- package/NOTICE.md +9 -7
- package/dist/cli.js +160 -456
- package/dist/sdk/prompt/compile.d.ts +4 -2
- package/dist/sdk/prompt/compile.js +10 -8
- package/dist/sdk/prompt/reporting.d.ts +2 -2
- package/dist/sdk/prompt/reporting.js +40 -250
- package/dist/sdk/prompt/standard.d.ts +4 -1
- package/dist/sdk/prompt/standard.js +6 -2
- package/dist/sdk/sessions/completionCheck.d.ts +4 -2
- package/dist/sdk/sessions/completionCheck.js +19 -1
- package/dist/sdk/sessions/contracts.js +2 -2
- package/dist/sdk/sessions/goalStop.d.ts +27 -0
- package/dist/sdk/sessions/goalStop.js +41 -0
- package/dist/sdk/sessions/runner.d.ts +0 -3
- package/dist/sdk/sessions/runner.js +16 -9
- package/dist/sdk/sessions/sessions.js +6 -36
- package/dist/sdk/sessions/workSlice.js +1 -1
- package/dist/sdk/terminal/piExtension.js +18 -31
- package/dist/sdk/terminal/terminals.js +1 -1
- package/dist/sdk/tools/askUser.js +1 -1
- package/dist/sdk/tools/todo.js +4 -3
- package/dist/terminal-opentui.js +108 -200
- package/dist/terminal-pi.js +262 -338
- package/docs/architecture/02-sessions-and-runs.md +13 -15
- package/docs/architecture/04-prompt.md +41 -35
- package/docs/architecture/07-tools-and-gate.md +2 -2
- package/docs/architecture/10-server-protocol.md +6 -5
- package/docs/architecture/11-terminal.md +7 -7
- package/docs/decisions/ADR-0008-flexible-reporting-guidance.md +2 -2
- package/docs/decisions/ADR-0069-stop-gate-and-finish.md +8 -2
- package/docs/decisions/ADR-0070-terminal-slice-continuation.md +4 -1
- package/docs/decisions/ADR-0072-codex-prompts-and-goal.md +3 -0
- package/docs/decisions/ADR-0073-large-reporting-prompt.md +6 -1
- package/docs/decisions/ADR-0074-report-content-not-report-blocks.md +90 -0
- package/docs/decisions/ADR-0075-no-todo-gate.md +84 -0
- package/docs/decisions/ADR-0076-codex-final-answer-verbatim.md +93 -0
- package/docs/releases/1.4.0-unstable.md +9 -2
- package/docs/releases/1.5.0-unstable.md +23 -0
- package/docs/study/STUDY-0004-turn-end-controls.md +7 -0
- package/docs/study/STUDY-0006-reporting-prompts.md +48 -10
- package/package.json +1 -1
- package/dist/sdk/sessions/stopGate.d.ts +0 -78
- package/dist/sdk/sessions/stopGate.js +0 -143
package/CHANGELOG.md
CHANGED
|
@@ -2,13 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
-
- **
|
|
5
|
+
- **Codex's final-answer guidance, adopted verbatim (ADR-0076).**
|
|
6
|
+
- The `reporting` section drops the four content questions, the by-hand check, the next-step
|
|
7
|
+
block, the evidence table, the anti-pattern table and one example. It now carries Codex's
|
|
8
|
+
final-answer and technical-communication text: self-contained, outcome first, what changed and
|
|
9
|
+
why, how it was tested, risks and limits, evidence summarized, tables for comparisons, length
|
|
10
|
+
by complexity, prose before lists. It is 3.7k characters (about 0.8k tokens), down from 9.2k.
|
|
11
|
+
- Identity names the model (`Launch.model`, when the host knows it) and adds Codex's
|
|
12
|
+
"collaborate until the intended goal is completely handled" sentence. A model switch after the
|
|
13
|
+
pack is compiled leaves the line naming the starting model.
|
|
14
|
+
- A new `personality` standard section carries Codex's personality paragraph; the unclear-scope
|
|
15
|
+
rule becomes Codex's wording with `ask_user` for the follow-up question.
|
|
16
|
+
- Codex's work rules join the tool guidance: `rg` first, no decorative command separators, shell
|
|
17
|
+
quoting, no reused `$HOME`, no long blocking sleeps, tests only where meaningful and broadening
|
|
18
|
+
them only when justified. Codex's skill and plugin principles join the Wiki guidance.
|
|
19
|
+
- **No todo gate; a reply ends when the model ends it (ADR-0075).**
|
|
20
|
+
- The `stop-gate` extension, its three-nudge cap and its displayed `xingular-stop-gate` messages
|
|
21
|
+
are removed. A reply the model ends settles `completed`; a stale todo item no longer marks it
|
|
22
|
+
interrupted, and no checkpoint is written for it.
|
|
23
|
+
- `STOP_GATE_GUIDANCE` becomes `WORK_SLICE_GUIDANCE`; `TODO_GUIDANCE` is relaxed and no longer
|
|
24
|
+
says a reply is sent back. `XINGULAR_STOP_GATE` is retired and ignored if set.
|
|
25
|
+
- A goal's stop (blocked, paused, at a limit) and the work-slice guard keep their codes and
|
|
26
|
+
checkpoints. The goal loop is the only layer that continues a reply.
|
|
27
|
+
- A login that blocks the work now names the exact command in the reply: reporting guidance,
|
|
28
|
+
autonomy, `ask_user` and the todo guidance carry the rule, with a publish-blocked example.
|
|
29
|
+
- **A large, content-block reporting prompt (ADR-0073); superseded by ADR-0074.**
|
|
6
30
|
- The `reporting` section in `src/prompt/reporting.ts` is about 15.8k characters: outcome first,
|
|
7
31
|
required what-changed / how-to-test / what-to-do-next blocks for a change, optional beyond,
|
|
8
32
|
departures, unverified and open-question blocks, five worked examples and an anti-pattern table.
|
|
9
33
|
- Headings are the model's choice; the three fixed headings from ADR-0068 are gone.
|
|
10
34
|
- `REPORTING_BUDGET` rises to 18,000, and the section is never cut.
|
|
11
35
|
- The peer study is `docs/study/STUDY-0006-reporting-prompts.md`.
|
|
36
|
+
- **Report content, not report blocks (ADR-0074).**
|
|
37
|
+
- The `reporting` section is about 8.9k characters (about 2.1k tokens, down from 3.7k), and
|
|
38
|
+
`REPORTING_BUDGET` falls to 12,000. The section is still last in the stable prefix and never cut.
|
|
39
|
+
- The four required blocks are gone. A reply answers what happened, what changed or was decided,
|
|
40
|
+
what only a person can check and what they do next, in any words and any order.
|
|
41
|
+
- Checks the agent already ran are one line of evidence each — command and result — and are never
|
|
42
|
+
steps for the person. A by-hand check covers only what the agent could not do: a screen, a
|
|
43
|
+
sign-in, a document's tone, a diff or PR, a publish, a deploy; it is left out when nothing needs
|
|
44
|
+
a person, with no "nothing to check" line.
|
|
45
|
+
- "Nothing needed" and "Nothing needed next" are banned. A finished reply with nothing left ends
|
|
46
|
+
on its last real point.
|
|
47
|
+
- Headings are free: no required name and no preferred set. Cross-domain examples and a
|
|
48
|
+
shape-by-work table replace the four-heading vocabulary.
|
|
49
|
+
- Three worked examples replace the five; the observed failure — a person's "how to test" filled
|
|
50
|
+
with commands the agent ran — is an anti-pattern row.
|
|
51
|
+
- The stable prefix changes, so existing sessions miss the provider cache once after the upgrade.
|
|
12
52
|
- **Skill installation guidance and package skill layouts.**
|
|
13
53
|
- The release-owned `plugin-authoring` skill now says where a skill is installed (a project's
|
|
14
54
|
`.pi/skills` and `.agents/skills`, the user's `~/.agents/skills`, the shared state folder), to
|
package/NOTICE.md
CHANGED
|
@@ -61,9 +61,9 @@ SOFTWARE.
|
|
|
61
61
|
|
|
62
62
|
## OpenAI Codex
|
|
63
63
|
|
|
64
|
-
The standard session prompt (`src/prompt/standard.ts`: autonomy and persistence, when
|
|
65
|
-
person, steering and compaction, writing style), the final-reply
|
|
66
|
-
(`src/prompt/
|
|
64
|
+
The standard session prompt (`src/prompt/standard.ts`: autonomy and persistence, personality, when
|
|
65
|
+
to ask the person, steering and compaction, writing style), the final-reply and technical
|
|
66
|
+
communication rules in `REPORTING_GUIDANCE` (`src/prompt/reporting.ts`), the `/goal` prompts and tool descriptions (`src/sessions/goalPrompts.ts`,
|
|
67
67
|
`src/sessions/goal.ts`), the goal brakes and status text, and the `/goal` command
|
|
68
68
|
(`src/terminal/tui/goalCommand.ts`) adapt text and design from OpenAI Codex, mainly:
|
|
69
69
|
|
|
@@ -80,7 +80,9 @@ in compliance with the License. You may obtain a copy of the License at
|
|
|
80
80
|
https://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in
|
|
81
81
|
writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
82
82
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Changes from upstream: ported from
|
|
83
|
-
Rust to TypeScript for Pi; text about Codex's own
|
|
84
|
-
`
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
Rust to TypeScript for Pi; text about Codex's own delivery mechanics (`apply_patch`,
|
|
84
|
+
`functions.exec`, the apps tool format, plugin naming, visualizations) left out; the final-answer,
|
|
85
|
+
technical-communication, personality and skill rules are kept, including the final-answer sentence
|
|
86
|
+
that refers to commentary updates; the goal's token budget became rounds and hours; `update_plan`
|
|
87
|
+
became `todo_write`; completing a goal is a claim that the harness checks; the model cannot create a
|
|
88
|
+
goal.
|