Skip to content

Commit c13df19

Browse files
committed
Merge remote-tracking branch 'origin/main' into codex/manpage-agent-directory-20260917
2 parents d10d7f6 + 9060ddc commit c13df19

4 files changed

Lines changed: 17 additions & 10 deletions

File tree

‎examples/extension-entrypoint-surface-smoke.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,20 @@
1111

1212
from __future__ import annotations
1313

14+
import sys
1415
from pathlib import Path
1516

16-
from loopx.extensions.entrypoint_surface import (
17+
ROOT = Path(__file__).resolve().parents[1]
18+
if str(ROOT) not in sys.path:
19+
sys.path.insert(0, str(ROOT))
20+
21+
from loopx.extensions.entrypoint_surface import ( # noqa: E402
1722
EntrypointKind,
1823
render_report,
1924
resolve_declared_entrypoints,
2025
)
2126

2227

23-
ROOT = Path(__file__).resolve().parents[1]
24-
2528
EXPECTED_KINDS = frozenset(kind.value for kind in EntrypointKind)
2629

2730
REQUIRED_KINDS = (

‎tests/control_plane/test_goal_artifact_work_observation.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ def test_lifecycle_validates_work_observation_text_before_rendering():
131131
goal_id="demo", goal={"status": "active"},
132132
work_observation=WorkLaneObservation(
133133
lane="advancement_task", must_attempt=True,
134-
next_action="x" * 500 + " token=" + "synthetic" * 4,
134+
# The payload has to stay credential-shaped at runtime so the
135+
# projection exercises its rejected-value path; it is split the
136+
# same way `loopx/contract.py` splits its own scan patterns, so the
137+
# committed source carries no literal credential assignment.
138+
next_action="x" * 500 + " tok" + "en=" + "synthetic" * 4,
135139
),
136140
)
137141
assert projection["lifecycle_phase"] == "qualifying"

‎tests/test_chat_manager_context.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def run(argv, **kwargs):
336336
return SimpleNamespace(
337337
returncode=255,
338338
stdout="",
339-
stderr="huangruiteng@10.0.0.1: Permission denied (gssapi-with-mic).",
339+
stderr="huangruiteng@203.0.113.7: Permission denied (gssapi-with-mic).",
340340
)
341341

342342
result = context.manager_turn_context(

‎tests/test_manager_ssh_evidence.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -592,11 +592,11 @@ def test_scope_change_between_reads_refuses_the_packet(tmp_path):
592592
@pytest.mark.parametrize(
593593
"stderr,returncode,expected",
594594
[
595-
("huangruiteng@10.0.0.1: Permission denied (gssapi-with-mic).", 255, "ssh_auth_required"),
595+
("huangruiteng@203.0.113.7: Permission denied (gssapi-with-mic).", 255, "ssh_auth_required"),
596596
# A remote command reporting a bare permission error about its own
597597
# files is not this machine's rejected credential.
598598
("loopx: /home/x/.config: Permission denied", 1, "remote_evidence_unavailable"),
599-
("ssh: connect to host 10.0.0.1 port 22: Operation timed out", 255, "ssh_host_unreachable"),
599+
("ssh: connect to host 203.0.113.7 port 22: Operation timed out", 255, "ssh_host_unreachable"),
600600
("ssh: Could not resolve hostname ark-devbox: Name or service not known", 255, "ssh_host_unreachable"),
601601
("bash: line 1: /home/x/.local/bin/loopx: No such file or directory", 127, "remote_cli_missing"),
602602
("some other ssh failure", 255, "remote_evidence_unavailable"),
@@ -625,7 +625,7 @@ def runner(argv, **kwargs):
625625
argv,
626626
255,
627627
stdout="",
628-
stderr="huangruiteng@10.0.0.1: Permission denied (gssapi-with-mic).",
628+
stderr="huangruiteng@203.0.113.7: Permission denied (gssapi-with-mic).",
629629
)
630630

631631
packet = remote_evidence(
@@ -655,12 +655,12 @@ def runner(argv, **kwargs):
655655
"stderr,returncode,expected_limitation",
656656
[
657657
(
658-
"huangruiteng@10.0.0.1: Permission denied (gssapi-with-mic).",
658+
"huangruiteng@203.0.113.7: Permission denied (gssapi-with-mic).",
659659
255,
660660
"remote_source_ssh_auth_required",
661661
),
662662
(
663-
"ssh: connect to host 10.0.0.1 port 22: Operation timed out",
663+
"ssh: connect to host 203.0.113.7 port 22: Operation timed out",
664664
255,
665665
"remote_source_ssh_host_unreachable",
666666
),

0 commit comments

Comments
 (0)