Skip to content

gooseworks-ai/goose-skills / skills/video/render-street-interview

render-street-interview

Verified

Write a street-interview ad from a complete inspected commercial interaction and current brand facts. Render product guessing, or prepare mic-only, prepared-sample or visible-task conversation script/prompt previews. Premise, actions and ad connection vary; capture rules stay fixed. Conversation media delivery is unverified.

FileKindSize
REFERENCE.mdmarkdown7.4 KB
SKILL.mdskill md16.7 KB
TAKES.mdmarkdown1.5 KB
brands/demo-tallgrass-oat.jsonconfig3.9 KB
brands/fizzroot-ep3-a.jsonconfig2.2 KB
brands/fizzroot-ep3-b.jsonconfig2.6 KB
brands/fizzroot-ep3-c.jsonconfig2.3 KB
brands/grimwater.jsonconfig4.6 KB
brands/oleara-ep1-a2.jsonconfig2.5 KB
brands/oleara-ep1-b.jsonconfig2.7 KB
brands/oleara-ep1-c.jsonconfig2.5 KB
episodes/fizzroot-ep3.jsonconfig1009 B
episodes/oleara-ep1.jsonconfig784 B
references/cast-writing.mdmarkdown9.6 KB
references/h3-generation.mdmarkdown2.2 KB
references/model-behaviors.mdmarkdown5.0 KB
references/reference-format-rules.mdmarkdown7.5 KB
references/reference-ledger-items-01-23.mdmarkdown15.6 KB
references/reference-ledger-items-17-28.mdmarkdown13.2 KB
references/reference-ledger-items-29-42.mdmarkdown14.3 KB
references/reference-pipeline.mdmarkdown7.3 KB
references/street-reference-library.jsonconfig6.6 KB
references/street-script-writing.mdmarkdown16.7 KB
scripts/bench.pyscript18.2 KB
scripts/brandkit.pyscript19.3 KB
scripts/build.pyscript8.0 KB
scripts/build_episode.pyscript77.5 KB
scripts/build_looks.pyscript32.2 KB
scripts/check-cut.pyscript66.3 KB
scripts/conversation.pyscript12.8 KB
scripts/edit_timeline.pyscript7.6 KB
scripts/falsify-all.pyscript19.8 KB
scripts/fit_grade.pyscript7.7 KB
scripts/format_spec.pyscript93.2 KB
scripts/measure-pace.pyscript2.8 KB
scripts/media_proxy.pyscript56.8 KB
scripts/paths.pyscript3.0 KB
scripts/phone_look_video.pyscript7.2 KB
scripts/prepare_script_context.pyscript12.0 KB
scripts/recut.pyscript26.5 KB
scripts/selftest.pyscript23.5 KB
scripts/single_gen.pyscript24.9 KB
scripts/variants_gen.pyscript14.0 KB
skill.meta.jsonconfig656 B
tests/READINESS.mdmarkdown13.3 KB
tests/fixtures/brands/grimwater-4816.jsonconfig4.6 KB
tests/fixtures/brands/grimwater-4817.jsonconfig2.3 KB
tests/fixtures/brands/grimwater-4818.jsonconfig2.6 KB
tests/fixtures/brands/grimwater-4819.jsonconfig2.1 KB
tests/fixtures/brands/grimwater-4820.jsonconfig2.8 KB
tests/fixtures/brands/grimwater-4821.jsonconfig2.8 KB
tests/fixtures/brands/grimwater-4822.jsonconfig2.5 KB
tests/fixtures/brands/grimwater-4823.jsonconfig2.3 KB
tests/fixtures/brands/grimwater-4824.jsonconfig4.1 KB
tests/fixtures/brands/grimwater-4827.jsonconfig4.6 KB
tests/fixtures/brands/grimwater-4828.jsonconfig4.3 KB
tests/fixtures/brands/grimwater-4829.jsonconfig3.8 KB
tests/fixtures/brands/grimwater-4830.jsonconfig3.9 KB
tests/fixtures/brands/grimwater-4831.jsonconfig4.2 KB
tests/fixtures/brands/grimwater-4832.jsonconfig3.5 KB
tests/fixtures/brands/grimwater-4833.jsonconfig3.7 KB
tests/fixtures/brands/grimwater-4834.jsonconfig3.9 KB
tests/fixtures/brands/grimwater-4835.jsonconfig3.9 KB
tests/fixtures/episodes/grimwater-ep1.jsonconfig2.2 KB
tests/fixtures/episodes/grimwater-ep2.jsonconfig2.2 KB
tests/fixtures/episodes/grimwater-ep2fix-v2.jsonconfig4.9 KB
tests/fixtures/episodes/grimwater-ep2fix-v3.jsonconfig5.7 KB
tests/fixtures/episodes/grimwater-ep2fix.jsonconfig3.7 KB
tests/fixtures/episodes/grimwater-ep3.jsonconfig2.5 KB
tests/fixtures/episodes/grimwater-ep3b.jsonconfig2.3 KB
tests/fixtures/episodes/grimwater-ep3c.jsonconfig2.3 KB
tests/fixtures/episodes/grimwater-ep4.jsonconfig3.7 KB
tests/fixtures/prompt-snapshots.jsonconfig20.3 KB
tests/smoke-test.mdmarkdown627 B
tests/test_cast_advice.pyscript3.6 KB
tests/test_conversation.pyscript20.5 KB
tests/test_edit_timeline.pyscript8.6 KB
tests/test_finishing.pyscript10.9 KB
tests/test_h3_provider_route.pyscript9.2 KB
tests/test_opt_in_hold_grammar.pyscript4.7 KB
tests/test_prompt_budget.pyscript10.5 KB
tests/test_recut_media.pyscript6.2 KB
tests/test_selector_route.pyscript8.7 KB
tests/test_single_gen_rejection.pyscript7.6 KB
tests/test_skin_and_voice_options.pyscript4.1 KB

tests/test_selector_route.py

View on GitHub
"""The selector's route contract: support status, person-reference rule and participant limit.

Free and offline: no provider calls, no media. Run from the package folder with
`python -m unittest discover -s tests -p 'test_*.py' -v`.
"""
import json
from pathlib import Path
import subprocess
import sys
import tempfile
import unittest

SCRIPTS = Path(__file__).resolve().parents[1] / "scripts"
sys.path.insert(0, str(SCRIPTS))
from prepare_script_context import select_context

sys.path.insert(0, str(Path(__file__).resolve().parent))
from test_conversation import ref as compatible_reference


def brief(**fields):
    base = {"brand_id": "route-test", "language": "en"}
    base.update(fields)
    return base


def routes(result):
    return [alt["route"] for alt in result["alternatives"]]


class SelectorRouteTests(unittest.TestCase):
    def test_product_guess_with_a_physical_product_is_a_supported_render(self):
        result = select_context(brief(mode="product-guess", offering_type="physical",
                                      interaction_type="product-guess", participants=4), [])
        self.assertEqual(result["schema_version"], "street-script-context.v3")
        self.assertEqual(result["route"]["support"], "render")
        self.assertEqual(result["route"]["person_reference"], "forbidden")
        self.assertEqual(result["route"]["max_participants"], 4)
        self.assertEqual(result["route"]["participants"], 4)
        self.assertEqual(result["route_gaps"], [])
        self.assertEqual(result["alternatives"], [])
        self.assertNotEqual(result["status"], "unsupported-route")

    def test_single_participant_mic_only_software_is_preview_only(self):
        result = select_context(brief(mode="conversation", offering_type="digital",
                                      interaction_type="mic-only", participants=1), [])
        self.assertEqual(result["route"]["support"], "preview-only")
        self.assertEqual(result["route"]["person_reference"], "forbidden")
        self.assertEqual(result["route"]["reference_images"], [])
        self.assertEqual(result["route_gaps"], [])
        self.assertNotEqual(result["status"], "unsupported-route")

    def test_three_person_software_interview_has_no_supported_route(self):
        # The GOOSE-3909 street-interview run: digital software, three participants plus an
        # interviewer, mic-only. Conversation allows one participant; product-guess needs a
        # physical product. The right answer is to stop and offer the alternatives.
        result = select_context(brief(mode="conversation", offering_type="digital",
                                      interaction_type="mic-only", participants=3), [])
        self.assertEqual(result["status"], "unsupported-route")
        self.assertTrue(any("one participant" in gap and "3 requested" in gap
                            for gap in result["route_gaps"]), result["route_gaps"])
        self.assertIn("ugc-street-testimonial", routes(result))
        self.assertIn("custom", routes(result))
        # The reduced, single-participant conversation is offered, and says how it differs.
        mic_only = next(a for a in result["alternatives"] if a["route"] == "conversation/mic-only")
        self.assertIn("one participant", mic_only["differs"])
        self.assertIn("preview only", mic_only["differs"])
        custom = next(a for a in result["alternatives"] if a["route"] == "custom")
        self.assertIn("people in text", custom["differs"])

    def test_product_guess_for_a_digital_offering_needs_a_physical_product(self):
        result = select_context(brief(mode="product-guess", offering_type="digital",
                                      interaction_type="product-guess"), [])
        self.assertEqual(result["status"], "unsupported-route")
        self.assertTrue(any("physical product" in gap for gap in result["route_gaps"]),
                        result["route_gaps"])
        self.assertIn("conversation/mic-only", routes(result))
        self.assertNotIn("product-guess", routes(result))

    def test_custom_for_a_non_physical_offering_says_guessing_stays_out(self):
        # GOOSE-4018: the selector offered "custom" for a software brand, and make-custom-video
        # then refused the mascot hand-over the customer had picked it for.
        result = select_context(brief(mode="product-guess", offering_type="digital",
                                      interaction_type="product-guess"), [])
        custom = next(a for a in result["alternatives"] if a["route"] == "custom")
        self.assertIn("no guessing game", custom["differs"])
        self.assertIn("mascot", custom["differs"])
        self.assertIn("people in text", custom["differs"])

    def test_custom_for_too_many_people_keeps_its_plain_wording(self):
        # A physical product with five people is a head-count problem; guessing is still allowed.
        result = select_context(brief(mode="product-guess", offering_type="physical",
                                      interaction_type="product-guess", participants=5), [])
        custom = next(a for a in result["alternatives"] if a["route"] == "custom")
        self.assertNotIn("no guessing game", custom["differs"])

    def test_existing_mode_interaction_guard_is_unchanged(self):
        result = select_context(brief(mode="conversation", offering_type="service",
                                      interaction_type="product-guess"), [])
        self.assertIn("object guessing belongs to product-guess execution", result["brief_gaps"])
        self.assertEqual(result["route_gaps"], [])
        self.assertEqual(result["status"], "needs-reference")

    def test_unsupported_route_selects_no_reference_even_when_one_fits(self):
        result = select_context(brief(mode="conversation", offering_type="service",
                                      interaction_type="mic-only", participants=3),
                                [compatible_reference()])
        self.assertEqual(result["status"], "unsupported-route")
        self.assertEqual(result["references"], [])
        # The same brief with one participant would have selected it.
        ready = select_context(brief(mode="conversation", offering_type="service",
                                     interaction_type="mic-only", participants=1),
                               [compatible_reference()])
        self.assertEqual(ready["status"], "ready-for-writing")

    def test_too_many_people_offers_the_same_route_at_its_limit(self):
        guess = select_context(brief(mode="product-guess", offering_type="physical",
                                     interaction_type="product-guess", participants=5), [])
        self.assertEqual(guess["status"], "unsupported-route")
        self.assertIn("product-guess supports up to four participants; 5 requested", guess["route_gaps"])
        self.assertEqual(guess["alternatives"][0],
                         {"route": "product-guess", "differs": "up to four participants; renders"})
        sample = select_context(brief(mode="conversation", offering_type="physical",
                                      interaction_type="product-sample", participants=3), [])
        self.assertEqual(sample["alternatives"][0]["route"], "conversation/product-sample")
        self.assertNotIn("conversation/mic-only", routes(sample))

    def test_invalid_participant_count_is_a_brief_gap_not_a_route_gap(self):
        for value in (0, True, "3", 2.5):
            with self.subTest(participants=value):
                result = select_context(brief(mode="conversation", offering_type="digital",
                                              interaction_type="mic-only", participants=value), [])
                self.assertTrue(any("participants must be a whole number" in gap
                                    for gap in result["brief_gaps"]))
                self.assertEqual(result["route_gaps"], [])
                self.assertEqual(result["status"], "needs-reference")
                self.assertIsNone(result["route"]["participants"])

    def test_cli_exits_2_and_writes_the_route_for_an_unsupported_brief(self):
        with tempfile.TemporaryDirectory() as tmp:
            path = Path(tmp) / "brief.json"
            out = Path(tmp) / "context.json"
            path.write_text(json.dumps(brief(mode="conversation", offering_type="digital",
                                             interaction_type="mic-only", participants=3)))
            run = subprocess.run([sys.executable, str(SCRIPTS / "prepare_script_context.py"),
                                  "--brief", str(path), "--out", str(out)],
                                 capture_output=True, text=True)
            self.assertEqual(run.returncode, 2, run.stderr)
            self.assertIn("unsupported-route", run.stdout)
            self.assertEqual(json.loads(out.read_text())["status"], "unsupported-route")


if __name__ == "__main__":
    unittest.main()
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall