feat(native): add inspection primitives, dispatch traces and approved UI observation (#500)
* fix(hopper): normalize string-backed addresses and update verification * feat(native): add inspection primitives, dispatch traces and approved UI observation * test: prioritize real artifact E2E and captured golden regressions * fix(process): queue observed output before reactive rendering actions * test: prune redundant cases and strengthen boundary assertions * fix(cli): route native value tracing through shared workflows * test: replace synthetic success with real workflows and captured data * fix(catalog): separate portable metadata from native host availability
This commit is contained in:
@@ -53,7 +53,7 @@ describe("guided prompt contracts", () => {
|
||||
});
|
||||
// Assert the properties an analyst depends on rather than thirteen
|
||||
// incidental fragments, so a copy edit is a reviewable diff instead of a
|
||||
// wall of failures. The wording is still pinned by the last assertion.
|
||||
// wall of failures.
|
||||
// Untrusted caller input must be framed as data, never as instruction.
|
||||
expect(rendered).toMatch(/not instructions/i);
|
||||
expect(rendered).toContain(
|
||||
@@ -67,12 +67,6 @@ describe("guided prompt contracts", () => {
|
||||
expect(rendered).toContain(section);
|
||||
// Tools are never a grant of authority.
|
||||
expect(rendered).toMatch(/never as authorization/i);
|
||||
expect(rendered.indexOf("`list_documents`")).toBeLessThan(
|
||||
rendered.indexOf("`search_strings`"),
|
||||
);
|
||||
expect(rendered.indexOf("`search_strings`")).toBeLessThan(
|
||||
rendered.indexOf("`analyze_function`"),
|
||||
);
|
||||
});
|
||||
|
||||
it("orders mutation and execution after inspection and preparation", () => {
|
||||
@@ -82,6 +76,12 @@ describe("guided prompt contracts", () => {
|
||||
renderGuidedPrompt(prompt, {}),
|
||||
]),
|
||||
);
|
||||
expect(rendered.get("audit_residual_unknowns")).toContain(
|
||||
"`list_unknowns`",
|
||||
);
|
||||
expect(rendered.get("audit_residual_unknowns")).toContain(
|
||||
"`update_unknown`",
|
||||
);
|
||||
expect(
|
||||
rendered.get("audit_residual_unknowns")?.indexOf("`list_unknowns`"),
|
||||
).toBeLessThan(
|
||||
@@ -95,6 +95,12 @@ describe("guided prompt contracts", () => {
|
||||
.get("prepare_bounded_process_capture")
|
||||
?.indexOf("`capture_process_scenario`"),
|
||||
).toBeGreaterThanOrEqual(0);
|
||||
expect(rendered.get("compare_application_versions")).toContain(
|
||||
"`inspect_artifact`",
|
||||
);
|
||||
expect(rendered.get("compare_application_versions")).toContain(
|
||||
"`compare_artifacts`",
|
||||
);
|
||||
expect(
|
||||
rendered
|
||||
.get("compare_application_versions")
|
||||
|
||||
Reference in New Issue
Block a user