brand-gen-loop-shape-assessment — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited brand-gen-loop-shape-assessment (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
For Sage brand work in Pi, use the paste-ready prompt at docs/prompts/pi-sage-brand-gen-full-pipeline.md. Keep this link instead of copying the full prompt into skill bodies.
Risk addressed: the route → plan → critique → scratchpad → generate flow is a sequential mutation pipeline, not a feedback graph. Each phase reads the previous JSON file and writes a new one. Critique is in-line and one-shot (pipeline_runner._run_critique); it cannot iterate the plan. Auto-feedback writes to iteration_memory which is read at next-run prompt assembly time. There is no in-flight "the critique fixed the plan" loop except for legacy VLM. max_iterations re-runs only _run_generate, not the planning phases. PipelineResult carries a single artifact set, not a candidate set.
The whole system models taste as a one-pass refinement — but the actual problem (aesthetic convergence) requires loops at the plan layer.
{
"summary": {
"phases": ["route", "plan", "validate", "execute", "review", "evolve"],
"phase_can_reenter_predecessor": false,
"pipeline_result_carries_candidate_set": false,
"scoring_feeds_into_route": false,
"scoring_feeds_into_plan_in_same_run": false,
"max_iterations_scope": "execute_only",
"in_run_loops": [
{ "name": "max_iterations", "scope": "execute → review → execute", "controlled_by": "iteration count" }
],
"across_run_loops": [
{ "name": "iteration_memory feedback", "scope": "next run's prompt assembly reads prior negatives" },
{ "name": "learnings promotion", "scope": "evolve writes to learnings.json; future runs prepare-phase reads it" }
]
},
"actual_state_machine": "(mermaid or graph dsl describing today's flow)",
"desired_state_machine": "(graph showing plan↻ on critique block, candidate-set carried, scoring feedback into plan)",
"delta": [
{
"transition": "validate.blocking → plan",
"today": "blocking_findings → stop_reason; user must re-invoke orchestrate-material",
"desired": "in-run plan revision driven by blocking findings",
"minimum_change": "PipelineRunner._run_critique returns plan_revisions; runner re-enters _run_plan"
},
{
"transition": "review.iterate → plan",
"today": "iteration_memory mutated; loop exits; next run reads memory",
"desired": "in-run plan revision driven by review.before_after_diffs",
"minimum_change": "max_iterations covers plan re-entry; PipelineResult carries iteration_history"
},
{
"transition": "execute → multiple_candidates",
"today": "PipelineResult.artifacts is a single set; multi-candidate work is multiple runs",
"desired": "PipelineResult.candidates: List[CandidateResult] when an Experiment is active",
"minimum_change": "AestheticExperiment from brand-gen-experiment-modeling + List wrapper on artifacts"
}
],
"non_loops": [
"scoring → route (would let the system reroute when a scored direction underperforms; doesn't exist)",
"scoring → plan (in-run; would close the convergence loop; doesn't exist)"
],
"blast_radius": {
"introducing_plan_loop": "max_iterations semantics, PipelineResult shape, run_ledger schema",
"introducing_candidate_set": "PipelineResult.artifacts, every consumer of artifacts (UI, MCP, brand-orchestrator)"
}
}max_iterations — to know whether more iterations actually help.$PWD).--diagram-format — mermaid (default) or dot.brand_gen/pipeline_runner.py. Identify every _run_<phase> method. Capture the input/output shape and where the result is written (typically a JSON file in the brand workspace).run/orchestrate) can re-invoke an earlier phase based on the current phase's output. The only known back-edge is max_iterations re-running _run_generate — verify scope and exit conditions. For each phase, record can_reenter_from = [] or list the phases that can branch back.List each, scope, and what it carries.
pipeline_types.py PipelineResult declaration. Check artifacts, next_action, stop_reason, iteration_history (if exists). Determine whether the shape supports multi-candidate output. If artifacts is singular, mark "carries_candidate_set: false".BrandScorer, axis_scores, decision: 'iterate'. Walk forward from each scoring output and check whether any in-run consumer is _run_route or _run_plan. (Across-run consumption via iteration_memory does not count.)stateDiagram-v2
[*] --> route
route --> plan
plan --> validate
validate --> execute : ok
validate --> [*] : blocking_findings (run terminates)
execute --> review
review --> execute : iterate (max_iterations gate)
review --> evolve : approved
evolve --> [*]validate → plan on blocking findings (in-run revision).review → plan on iterate (in-run plan refinement, not just re-execute).evolve → route on persistent low scores (re-strategize before next run).execute → execute parallel branches when an Experiment is active.PipelineResult.candidates instead of single artifacts.brand_gen/pipeline_runner.py (full file, especially _run_* methods and the run/orchestrate controllers).brand_gen/pipeline_types.py — PipelineResult shape.brand_gen/generation_flow.py:1077, 1117 — auto_capture_generation_feedback, auto_capture_vlm_feedback (the across-run loop closures).brand_gen/iteration_memory.py — across-run carrier.brand_gen/run_ledger.py — what gets persisted; informs what a new in-run loop must record.pipeline_runner.py. Output the diagrams and delta. Implementation belongs to compound-engineering:ce-plan after this assessment.max_iterations).validate → route back-edge. Routing is upstream-of-everything; if validate fails because the route was wrong, that's a re-invocation, not a loop.brand-gen-experiment-modeling if the desired-state diagram will reference an Experiment abstraction — produce that recommendation first.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.