feat(studio): deliver asset authoring and automation workflows
Test / Tests and coverage occurred while executing withChecks step.
Intrepid/Prometeu/Studio/pipeline/pr-master There was a failure building this commit

Add shared human/task asset batches with reviewed atomic publication, explicit
reference rebinds, ownership inspection and qualified glyph/scene budgets.
Expose the same authoring and capacity results through Assets and MCP.

Deliver isolated guest test targets, retained visual evidence and immutable
runtime lifecycle/control observations. Preserve provider qualification and
installed authoring examples alongside the completed discussion lessons.

Close AGD-106 coordination and the delivered discussion workflows through
housekeeping, updating lesson references and preserving qualification limits.
Sound remains outside the asset delivery wave.

Validation: 579 module tests and 31 additional desktop, process and installed
checks passed; native glyph/scene 16/17 boundaries qualified. Discussion
validation passed after housekeeping.
This commit is contained in:
2026-11-11 01:21:25 +00:00
parent b351f2e582
commit 1471b427f1
325 changed files with 61179 additions and 323 deletions
@@ -16,5 +16,14 @@ public final class ProjectDescriptor {
private final AppMode target; // project target (Game or System)
private final ReadOnlyList<Path> sourceRoots; // source roots canon paths for the project
@Builder.Default
private final String buildTargetId = "production";
private final TestTargets.Target testTarget;
private final Path entrypoint;
private final String manifestSha256;
@Builder.Default
private final ReadOnlyList<Path> excludedSources = ReadOnlyList.empty();
@Builder.Default
private final ReadOnlyList<Path> excludedSourceRoots = ReadOnlyList.empty();
@Builder.Default
private final SourceKind sourceKind = SourceKind.PROJECT;
}
@@ -0,0 +1,36 @@
package p.studio.compiler.models;
import java.nio.file.Path;
import java.util.*;
/** Versioned project declarations; selection does not change AppMode or project identity. */
public record TestTargets(int schemaVersion, List<Target> targets) {
public TestTargets {
if (schemaVersion != 1) throw new IllegalArgumentException("testTargets.schemaVersion must be 1");
targets = List.copyOf(targets);
if (targets.stream().map(Target::id).distinct().count() != targets.size()) throw new IllegalArgumentException("Duplicate test target ID");
}
public static TestTargets empty() { return new TestTargets(1, List.of()); }
public Optional<Target> find(String id) { return targets.stream().filter(t -> t.id().equals(id)).findFirst(); }
public record Target(String id, String entrypoint, List<String> sourceRoots, List<String> supportRoots,
List<String> exclusions, List<String> cases, int logTag) {
public Target {
if (id == null || !id.matches("[A-Za-z0-9][A-Za-z0-9_.-]{0,127}") || id.equals("production"))
throw new IllegalArgumentException("Invalid or reserved test target ID");
path(entrypoint);sourceRoots = paths(sourceRoots);supportRoots = paths(supportRoots);exclusions = paths(exclusions);
cases = List.copyOf(cases);
if (sourceRoots.isEmpty() || exclusions.contains(entrypoint) || logTag < 0 || logTag > 65535
|| new HashSet<>(cases).size() != cases.size() || cases.stream().anyMatch(c -> !c.matches("[A-Za-z0-9][A-Za-z0-9_.-]{0,127}")))
throw new IllegalArgumentException("Invalid test target sources, cases or logTag");
}
private static List<String> paths(List<String> paths) {
paths = List.copyOf(paths);paths.forEach(Target::path);
if (new HashSet<>(paths).size() != paths.size()) throw new IllegalArgumentException("Duplicate test target path"); return paths;
}
private static void path(String value) {
Objects.requireNonNull(value);var path = Path.of(value);
if (value.isBlank() || path.isAbsolute() || path.normalize().startsWith("..") || value.equals(".")
|| value.contains("\\") || !path.normalize().toString().equals(value)) throw new IllegalArgumentException("Expected normalized project-relative target path");
}
}
}