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
7 changes: 7 additions & 0 deletions .github/workflows/nra-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ jobs:
run: |
python -m pip install packaging
python -m pip install "$(python -I src/agent_comms/installer/declared_uv.py pyproject.toml)"
- name: Install headless Qt shared libraries for PySide6 client imports
if: steps.reach.outputs.reaches == 'true'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libegl1 libgl1 libxkbcommon0 libfontconfig1 libdbus-1-3
- name: Sync the stack exactly as the installer does
if: steps.reach.outputs.reaches == 'true'
run: |
Expand All @@ -283,6 +288,8 @@ jobs:
uv sync --project stack --locked --no-editable
- name: Run the installer's client-import probe in the stack
if: steps.reach.outputs.reaches == 'true'
env:
QT_QPA_PLATFORM: offscreen
run: >-
stack/.venv/bin/python -I -c
"from agent_comms.installer.probes.imports import ClientImportsProbe; ClientImportsProbe().run()"
Expand Down
4 changes: 3 additions & 1 deletion stack/test-native-global-extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
VerifiedNativePackage,
)
from agent_comms.nominal.field_codec import FieldCodec
from agent_comms.team.rule_deal import EmptyDealDelivery


def main(fixture: Path):
Expand Down Expand Up @@ -125,7 +126,8 @@ def main(fixture: Path):
launch = NativePiRpcLaunch.managed(
"pi", arguments, package=verified, worktree=project,
root=comms.root, owner=thread.incarnation.require_recorded(),
directory=root, session_file=str(session), environment=environment,
directory=root, delivery=EmptyDealDelivery(),
session_file=str(session), environment=environment,
)
child = subprocess.Popen(launch.argv,
cwd=launch.cwd, env=launch.env, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
Expand Down
4 changes: 2 additions & 2 deletions stack/test-native-pi-compaction.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ try {
const used=(mode==='threshold'||mode==='wip'||mode==='preflight') ? 90000 : (mode==='policy' ? 300001 : 30000);
const statedLines='Now: adding an event class\nUncommitted: stack/patch test edits\nNext: run the focused tests';
for(let turn=0;turn<4;turn++){
const historyRepeats=mode==='oversized' ? 25000 : 1500;
const historyRepeats=turn===3 ? 500 : (mode==='oversized' ? 25000 : 1500);
manager.appendMessage({role:'user',content:`OLD_FACT_${turn} `+'old history '.repeat(historyRepeats),timestamp:2*turn+1});
const stated=mode==='wip' && turn===1
? [{type:'text',text:`Working.\n${statedLines}`}]
: [{type:'text',text:`old answer ${turn}`}];
: [{type:'text',text:turn===3 ? `old answer ${turn} `+'recent reply '.repeat(200) : `old answer ${turn}`}];
manager.appendMessage({role:'assistant',content:stated,api:model.api,
provider:model.provider,model:model.id,stopReason:'stop',timestamp:2*turn+2,
usage:{input:used-100,output:100,cacheRead:0,cacheWrite:0,totalTokens:used,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}});
Expand Down
1 change: 1 addition & 0 deletions stack/test-owned-comms-replies.mjs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
import assert from "node:assert/strict";
import { mkdtemp, rm } from "node:fs/promises";
import { createServer } from "node:net";
Expand Down
Loading