@elvis1513/auto-coding-skill 4.3.3 → 4.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -1
- package/cli/assets/managed-install.json +1 -1
- package/cli/assets/skill/SKILL.md +8 -0
- package/cli/assets/skill/data/policies/workflow-migrations-v1.json +2 -2
- package/cli/assets/skill/data/templates/ENGINEERING.md +2 -2
- package/cli/assets/skill/data/templates/bridges/AGENTS.md +9 -1
- package/cli/assets/skill/scripts/ap.py +1044 -35
- package/cli/tests/ap_concurrency_test.py +335 -2
- package/cli/tests/core_shell_test.py +5 -5
- package/cli/tests/index.test.js +34 -33
- package/package.json +1 -1
package/cli/tests/index.test.js
CHANGED
|
@@ -422,8 +422,8 @@ function testInitFullyConvergesExistingProject() {
|
|
|
422
422
|
}
|
|
423
423
|
assert(exists(path.join(repo, ".agents", "agents", "custom.toml")), "project-owned custom agents must survive init");
|
|
424
424
|
assert(!exists(path.join(repo, ".agents", "skills", "auto-coding-skill", "obsolete.txt")), "extra Skill files must be removed");
|
|
425
|
-
assert(exists(path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
426
|
-
assert(exists(path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
425
|
+
assert(exists(path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5", "docs", "legacy", "old-taskbook.md")), "removed docs must be archived outside active docs");
|
|
426
|
+
assert(exists(path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5", "docs", "legacy", "orphan.bin")), "unowned legacy binary assets must still be archived");
|
|
427
427
|
assert(fs.readFileSync(structureStandard, "utf8") === customStructureStandard, "init must preserve a project-owned structure standard");
|
|
428
428
|
assert(fs.readFileSync(path.join(repo, "docs", "architecture", "adr", "0042-project-choice.md"), "utf8").includes("Keep me"), "numbered ADR artifacts must survive init");
|
|
429
429
|
assert(fs.readFileSync(path.join(repo, "docs", "architecture", "system-context.md"), "utf8").includes("Keep me"), "architecture artifacts must survive init");
|
|
@@ -538,12 +538,12 @@ function testManagedPolicySummaryPreservesProjectConfiguration() {
|
|
|
538
538
|
const legacySummary = "- `structure` and `optimization`: advisory architecture and no-new-debt policy.";
|
|
539
539
|
const installedOldDefault = current
|
|
540
540
|
.replace(/^ skill_version:.*$/m, " skill_version: 4.2.5")
|
|
541
|
-
.replace("managed-workflow:start version=4.3.
|
|
541
|
+
.replace("managed-workflow:start version=4.3.5", "managed-workflow:start version=4.2.5")
|
|
542
542
|
.replace(neutralSummary, legacySummary);
|
|
543
543
|
installTrustedEngineeringDefault(repo, installedOldDefault, "4.2.5");
|
|
544
544
|
const customized = current
|
|
545
545
|
.replace(/^ skill_version:.*$/m, " skill_version: 4.2.5")
|
|
546
|
-
.replace("managed-workflow:start version=4.3.
|
|
546
|
+
.replace("managed-workflow:start version=4.3.5", "managed-workflow:start version=4.2.5")
|
|
547
547
|
.replace(neutralSummary, legacySummary)
|
|
548
548
|
.replace(/^ enforcement:.*$/m, " enforcement: blocking")
|
|
549
549
|
.replace(" block_warnings: false", " block_warnings: true")
|
|
@@ -562,7 +562,7 @@ function testManagedPolicySummaryPreservesProjectConfiguration() {
|
|
|
562
562
|
const upgraded = fs.readFileSync(engineering, "utf8");
|
|
563
563
|
const managedAfterUpgrade = readEngineeringConfig(engineering);
|
|
564
564
|
const afterUpgrade = readEffectiveConfig(repo);
|
|
565
|
-
assert(managedAfterUpgrade.workflow?.skill_version === "4.3.
|
|
565
|
+
assert(managedAfterUpgrade.workflow?.skill_version === "4.3.5", "init must upgrade the managed workflow version");
|
|
566
566
|
assert(canonicalJson(afterUpgrade.structure) === canonicalJson(beforeUpgrade.structure), "init must preserve the complete project structure policy");
|
|
567
567
|
assert(canonicalJson(afterUpgrade.optimization) === canonicalJson(beforeUpgrade.optimization), "init must preserve the complete project optimization policy");
|
|
568
568
|
assert(upgraded.includes(neutralSummary), "upgraded managed text must defer to frontmatter policy");
|
|
@@ -639,12 +639,13 @@ function testMinimalInitConvergesWithinBudget() {
|
|
|
639
639
|
const lines = files.reduce((total, file) => total + fs.readFileSync(file, "utf8").split(/\r?\n/).length, 0);
|
|
640
640
|
assert(files.length <= 40, `minimal scaffold file budget exceeded: ${files.length}`);
|
|
641
641
|
// Integrity, staging, fail-closed classification, immutable Reviewer snapshots,
|
|
642
|
-
// bounded runtime supervision, failure-evidence binding,
|
|
642
|
+
// bounded runtime supervision, failure-evidence binding, immutable one-shot
|
|
643
|
+
// Reviewer migration audits, contract helpers,
|
|
643
644
|
// effective-config overlay parsing/migration, release-aware metadata-only
|
|
644
645
|
// feedback lifecycle collection, and the language-aware structure scanner are executable
|
|
645
646
|
// support code, not prompt context. Keep a measured ceiling while leaving
|
|
646
647
|
// safety checks readable.
|
|
647
|
-
assert(lines <=
|
|
648
|
+
assert(lines <= 21250, `minimal scaffold line budget exceeded: ${lines}`);
|
|
648
649
|
const engineering = fs.readFileSync(path.join(repo, "docs", "ENGINEERING.md"), "utf8");
|
|
649
650
|
const managedConfig = readEngineeringConfig(path.join(repo, "docs", "ENGINEERING.md"));
|
|
650
651
|
assert(managedConfig.workflow?.profile === "auto", "engineering should enable adaptive profiles");
|
|
@@ -1213,7 +1214,7 @@ function testTamperedInstalledDefaultRejectsInitAndSyncWithoutWrites() {
|
|
|
1213
1214
|
const skill = path.join(repo, ".agents", "skills", "auto-coding-skill", "SKILL.md");
|
|
1214
1215
|
const oldDefault = fs.readFileSync(engineering, "utf8")
|
|
1215
1216
|
.replace(/^ skill_version:.*$/m, ' skill_version: "4.2.7"')
|
|
1216
|
-
.replace("managed-workflow:start version=4.3.
|
|
1217
|
+
.replace("managed-workflow:start version=4.3.5", "managed-workflow:start version=4.2.7");
|
|
1217
1218
|
installTrustedEngineeringDefault(repo, oldDefault, "4.2.7");
|
|
1218
1219
|
writeFile(engineering, oldDefault);
|
|
1219
1220
|
fs.unlinkSync(overlay);
|
|
@@ -1502,7 +1503,7 @@ function testArchiveFallbackCollisionsNeverLosePreviousContent() {
|
|
|
1502
1503
|
const engineering = path.join(repo, "docs", "ENGINEERING.md");
|
|
1503
1504
|
fs.appendFileSync(engineering, "\n## Archive collision sentinel\n\nPreserve these ENGINEERING bytes.\n");
|
|
1504
1505
|
const previous = fs.readFileSync(engineering);
|
|
1505
|
-
const archiveDir = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
1506
|
+
const archiveDir = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5", "docs");
|
|
1506
1507
|
const preferred = path.join(archiveDir, "ENGINEERING.md");
|
|
1507
1508
|
const legacyDigest = path.join(archiveDir, `ENGINEERING-${digest12(previous)}.md`);
|
|
1508
1509
|
const occupiedPreferred = Buffer.from("occupied-engineering-default\n");
|
|
@@ -1532,7 +1533,7 @@ function testArchiveFallbackCollisionsNeverLosePreviousContent() {
|
|
|
1532
1533
|
".agents",
|
|
1533
1534
|
"archive",
|
|
1534
1535
|
"auto-coding-skill",
|
|
1535
|
-
"4.3.
|
|
1536
|
+
"4.3.5",
|
|
1536
1537
|
"docs",
|
|
1537
1538
|
"design",
|
|
1538
1539
|
);
|
|
@@ -1557,7 +1558,7 @@ function testArchiveFallbackCollisionsNeverLosePreviousContent() {
|
|
|
1557
1558
|
const agents = path.join(repo, "AGENTS.md");
|
|
1558
1559
|
const previous = Buffer.from("# Project AGENTS before sync\n\nPreserve this sync history.\n");
|
|
1559
1560
|
fs.writeFileSync(agents, previous);
|
|
1560
|
-
const archiveDir = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
1561
|
+
const archiveDir = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5");
|
|
1561
1562
|
const preferred = path.join(archiveDir, "AGENTS.md");
|
|
1562
1563
|
const legacyDigest = path.join(archiveDir, `AGENTS-${digest12(previous)}.md`);
|
|
1563
1564
|
const occupiedPreferred = Buffer.from("occupied-sync-default\n");
|
|
@@ -1579,7 +1580,7 @@ function testArchiveFallbackCollisionsNeverLosePreviousContent() {
|
|
|
1579
1580
|
const agents = path.join(repo, "AGENTS.md");
|
|
1580
1581
|
const previous = Buffer.from("# Project AGENTS before init\n\nPreserve this init history.\n");
|
|
1581
1582
|
fs.writeFileSync(agents, previous);
|
|
1582
|
-
const archiveDir = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
1583
|
+
const archiveDir = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5");
|
|
1583
1584
|
const preferred = path.join(archiveDir, "AGENTS.md");
|
|
1584
1585
|
const legacyDigest = path.join(archiveDir, `AGENTS-${digest12(previous)}.md`);
|
|
1585
1586
|
const occupiedPreferred = Buffer.from("occupied-init-default\n");
|
|
@@ -2209,7 +2210,7 @@ function testCliInstallArchivesFeedbackTemplatesAndPreservesReports() {
|
|
|
2209
2210
|
writeFile(report, reportContent);
|
|
2210
2211
|
|
|
2211
2212
|
run("node", [cli, "init"], { cwd: repo });
|
|
2212
|
-
const archive = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
2213
|
+
const archive = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5", "docs", "skill-feedback", "README.md");
|
|
2213
2214
|
assert(fs.readFileSync(feedbackReadme, "utf8").includes("Auto Coding Skill Feedback"), "transactional init must install the managed feedback README");
|
|
2214
2215
|
assert(fs.readFileSync(archive, "utf8") === previousReadme, "transactional init must archive a pre-existing feedback README before replacement");
|
|
2215
2216
|
assert(fs.readFileSync(report, "utf8") === reportContent, "transactional init must preserve project feedback reports byte-for-byte");
|
|
@@ -2318,21 +2319,21 @@ function testManagedEngineeringInitIsAuthoritativeAndIdempotent() {
|
|
|
2318
2319
|
const dryRun = run("node", [cli, "sync", "--projects", repo, "--dry-run", "--json"]);
|
|
2319
2320
|
const dryResult = JSON.parse(dryRun.stdout).results[0];
|
|
2320
2321
|
assert(dryResult.managedWorkflow.state === "stale", `dry-run should expose stale workflow state: ${dryRun.stdout}`);
|
|
2321
|
-
assert(dryResult.managedWorkflow.version === "4.3.
|
|
2322
|
+
assert(dryResult.managedWorkflow.version === "4.3.5", "dry-run should expose the target workflow version");
|
|
2322
2323
|
assert(dryResult.actions.some(item => item.action === "would-replace" && item.path === "docs/ENGINEERING.md"), "dry-run should plan exact replacement of the managed default document");
|
|
2323
2324
|
assert(fs.readFileSync(engineering, "utf8") === customized, "dry-run must not write ENGINEERING.md");
|
|
2324
2325
|
|
|
2325
2326
|
run("node", [cli, "init"], { cwd: repo });
|
|
2326
2327
|
const updated = fs.readFileSync(engineering, "utf8");
|
|
2327
2328
|
assert(!updated.includes("project note before") && !updated.includes("project note after"), "init must remove text outside the canonical ENGINEERING body");
|
|
2328
|
-
assert(updated.includes("version=4.3.
|
|
2329
|
+
assert(updated.includes("version=4.3.5"), "init should install the current managed workflow version");
|
|
2329
2330
|
assert(updated.includes("The frontmatter contract is:"), "init should refresh stale managed workflow content");
|
|
2330
2331
|
|
|
2331
2332
|
fillRequiredAccess(repo);
|
|
2332
2333
|
const status = run("node", [cli, "status", "--projects", repo, "--json"]);
|
|
2333
2334
|
const statusResult = JSON.parse(status.stdout).results[0];
|
|
2334
2335
|
assert(statusResult.managedWorkflow.state === "current", `status should expose current managed workflow state: ${status.stdout}`);
|
|
2335
|
-
assert(statusResult.managedWorkflow.version === "4.3.
|
|
2336
|
+
assert(statusResult.managedWorkflow.version === "4.3.5", "status should expose the installed managed workflow version");
|
|
2336
2337
|
|
|
2337
2338
|
const beforeSecondInit = fs.readFileSync(engineering, "utf8");
|
|
2338
2339
|
run("node", [cli, "init"], { cwd: repo });
|
|
@@ -2360,9 +2361,9 @@ function testLegacyEngineeringMigrationPreservesExistingBody() {
|
|
|
2360
2361
|
assert(dryResult.actions.some(item => item.action === "would-archive" && item.path.endsWith("/docs/ENGINEERING.md")), "custom legacy migration must plan archival before replacement");
|
|
2361
2362
|
run("node", [cli, "sync", "--projects", repo]);
|
|
2362
2363
|
const migrated = fs.readFileSync(engineering, "utf8");
|
|
2363
|
-
assert(migrated.includes("version=4.3.
|
|
2364
|
+
assert(migrated.includes("version=4.3.5"), "legacy migration should insert the current managed workflow");
|
|
2364
2365
|
assert(!migrated.includes(legacyNote), "legacy project text must not remain in the exact managed default document");
|
|
2365
|
-
const archive = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
2366
|
+
const archive = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5", "docs", "ENGINEERING.md");
|
|
2366
2367
|
assert(fs.readFileSync(archive, "utf8").includes(legacyNote), "legacy migration must preserve the complete previous body in history");
|
|
2367
2368
|
const stable = fs.readFileSync(engineering, "utf8");
|
|
2368
2369
|
run("node", [cli, "sync", "--projects", repo]);
|
|
@@ -2390,7 +2391,7 @@ function testOfficialLegacyEngineeringBodyIsReplacedWithoutDuplication() {
|
|
|
2390
2391
|
assert(migrated === canonicalEngineering, "official legacy migration must install the exact managed default document");
|
|
2391
2392
|
assert((migrated.match(/auto-coding-skill:managed-workflow:start/g) || []).length === 1, "official legacy migration should install exactly one managed workflow");
|
|
2392
2393
|
assert((migrated.match(/^## Execution profiles$/gm) || []).length === 0, "official legacy migration must remove the old duplicated workflow body");
|
|
2393
|
-
const archive = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
2394
|
+
const archive = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5", "docs", "ENGINEERING.md");
|
|
2394
2395
|
assert(fs.readFileSync(archive, "utf8").includes("## Execution profiles"), "official legacy body must remain available in the historical archive");
|
|
2395
2396
|
|
|
2396
2397
|
const stable = fs.readFileSync(engineering, "utf8");
|
|
@@ -2465,7 +2466,7 @@ function testManagedAgentsMigrationReplacesWholeFileAndArchivesPreviousRules() {
|
|
|
2465
2466
|
run("node", [cli, "sync", "--projects", repo]);
|
|
2466
2467
|
const agents = path.join(repo, "AGENTS.md");
|
|
2467
2468
|
const initial = fs.readFileSync(agents, "utf8");
|
|
2468
|
-
assert(initial.includes("managed-agents:start version=4.3.
|
|
2469
|
+
assert(initial.includes("managed-agents:start version=4.3.5"), "new projects should receive the versioned root AGENTS block");
|
|
2469
2470
|
|
|
2470
2471
|
const custom = [
|
|
2471
2472
|
"# Project rules",
|
|
@@ -2487,15 +2488,15 @@ function testManagedAgentsMigrationReplacesWholeFileAndArchivesPreviousRules() {
|
|
|
2487
2488
|
|
|
2488
2489
|
run("node", [cli, "sync", "--projects", repo]);
|
|
2489
2490
|
const migrated = fs.readFileSync(agents, "utf8");
|
|
2490
|
-
assert(migrated.includes("managed-agents:start version=4.3.
|
|
2491
|
+
assert(migrated.includes("managed-agents:start version=4.3.5"), "AGENTS migration should install the current managed block");
|
|
2491
2492
|
assert(!migrated.includes("Preserve this repository-specific rule exactly."), "root AGENTS must contain no project-specific tail");
|
|
2492
2493
|
assert(!migrated.includes("must execute `commands.gate_full`"), "known official conflicting rule should be removed");
|
|
2493
2494
|
const canonical = fs.readFileSync(path.join(repoRoot, "cli", "assets", "skill", "data", "templates", "bridges", "AGENTS.md"), "utf8");
|
|
2494
2495
|
assert(migrated === canonical, "root AGENTS must be byte-identical to the packaged canonical file");
|
|
2495
|
-
const archive = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
2496
|
+
const archive = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5", "AGENTS.md");
|
|
2496
2497
|
assert(fs.readFileSync(archive, "utf8").includes("Preserve this repository-specific rule exactly."), "previous AGENTS content must be archived once");
|
|
2497
2498
|
assert(!exists(legacyActiveArchive), "legacy active-doc AGENTS archives must leave docs/archive during upgrade");
|
|
2498
|
-
const migratedLegacyArchiveDir = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
2499
|
+
const migratedLegacyArchiveDir = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5", "docs", "archive", "workflow");
|
|
2499
2500
|
assert(
|
|
2500
2501
|
listProjectFiles(migratedLegacyArchiveDir).some(file => fs.readFileSync(file).equals(legacyActiveArchiveBytes)),
|
|
2501
2502
|
"legacy active-doc AGENTS archive bytes must survive under the managed archive root",
|
|
@@ -2553,7 +2554,7 @@ function testEngineeringMarkerBoundaryIsNormalized() {
|
|
|
2553
2554
|
const normalized = fs.readFileSync(engineering, "utf8");
|
|
2554
2555
|
assert(normalized === current, "sync should restore the exact managed document when text is glued to its end marker");
|
|
2555
2556
|
assert(!normalized.includes("# Project-specific workflow"), "project workflow text must not remain in the managed default document");
|
|
2556
|
-
const archive = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
2557
|
+
const archive = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5", "docs", "ENGINEERING.md");
|
|
2557
2558
|
assert(fs.readFileSync(archive, "utf8").includes(`${marker}# Project-specific workflow`), "the malformed previous document must remain available in history");
|
|
2558
2559
|
}
|
|
2559
2560
|
|
|
@@ -2570,7 +2571,7 @@ function testEngineeringFrameworkRejectsAnyNonCanonicalWorkflowText() {
|
|
|
2570
2571
|
|
|
2571
2572
|
run("node", [cli, "init"], { cwd: repo });
|
|
2572
2573
|
assert(!fs.readFileSync(engineering, "utf8").includes("backend owns APIs"), "init must restore the canonical ENGINEERING body");
|
|
2573
|
-
const archived = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.
|
|
2574
|
+
const archived = path.join(repo, ".agents", "archive", "auto-coding-skill", "4.3.5", "docs", "ENGINEERING.md");
|
|
2574
2575
|
assert(fs.readFileSync(archived, "utf8").includes("backend owns APIs"), "removed project text should remain in non-authoritative history");
|
|
2575
2576
|
}
|
|
2576
2577
|
|
|
@@ -2582,12 +2583,12 @@ function testManagedInstallIntegrityIsBoundedAndRepairable() {
|
|
|
2582
2583
|
|
|
2583
2584
|
const manifestPath = path.join(repo, ".agents", "managed-install.json");
|
|
2584
2585
|
const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
|
|
2585
|
-
assert(manifest.schema_version === 1 && manifest.skill_version === "4.3.
|
|
2586
|
+
assert(manifest.schema_version === 1 && manifest.skill_version === "4.3.5", "installed manifest must identify the release");
|
|
2586
2587
|
assert(manifest.entries.length > 0, "installed manifest must list managed files");
|
|
2587
2588
|
for (const entry of manifest.entries) {
|
|
2588
2589
|
assert(typeof entry.path === "string" && !path.isAbsolute(entry.path) && !entry.path.includes(".."), "manifest paths must be safe relative paths");
|
|
2589
2590
|
assert(/^[0-9a-f]{64}$/.test(entry.sha256), `${entry.path}: manifest hash must be sha256`);
|
|
2590
|
-
assert(entry.version === "4.3.
|
|
2591
|
+
assert(entry.version === "4.3.5" && typeof entry.executable === "boolean", `${entry.path}: version/executable metadata missing`);
|
|
2591
2592
|
}
|
|
2592
2593
|
assert(!manifest.managed_namespaces.some(item => item.path === ".agents" || item.path === "docs"), "manifest must not mirror entire project-owned trees");
|
|
2593
2594
|
|
|
@@ -2667,7 +2668,7 @@ function testSkillFeedbackCollectionIsBoundedReadOnlyAndMetadataOnly() {
|
|
|
2667
2668
|
run("node", [cli, "status", "--projects", third, "--json"], { check: false }).stdout,
|
|
2668
2669
|
).results[0];
|
|
2669
2670
|
assert(emptyStatus.feedback.available === true, "status must expose feedback before the first report");
|
|
2670
|
-
assert(emptyStatus.feedback.skillVersion === "4.3.
|
|
2671
|
+
assert(emptyStatus.feedback.skillVersion === "4.3.5", "empty feedback status must expose the installed Skill version");
|
|
2671
2672
|
const signature = `sha256:${"a".repeat(64)}`;
|
|
2672
2673
|
const marker = path.join(os.tmpdir(), `autocoding-feedback-must-not-execute-${crypto.randomUUID()}`);
|
|
2673
2674
|
const render = (project, reportId, privateMarker) => [
|
|
@@ -2677,7 +2678,7 @@ function testSkillFeedbackCollectionIsBoundedReadOnlyAndMetadataOnly() {
|
|
|
2677
2678
|
"status: open",
|
|
2678
2679
|
'created_at: "2026-07-18T10:00:00+08:00"',
|
|
2679
2680
|
`project: ${project}`,
|
|
2680
|
-
"observed_skill_version: 4.3.
|
|
2681
|
+
"observed_skill_version: 4.3.5",
|
|
2681
2682
|
"component: reviewer-runtime",
|
|
2682
2683
|
"kind: defect",
|
|
2683
2684
|
"impact: blocking",
|
|
@@ -2711,7 +2712,7 @@ function testSkillFeedbackCollectionIsBoundedReadOnlyAndMetadataOnly() {
|
|
|
2711
2712
|
.replace("schema: auto-coding-skill-feedback/v1", "schema: auto-coding-skill-feedback/v2")
|
|
2712
2713
|
.replace("status: open", `status: ${options.status ?? "open"}`)
|
|
2713
2714
|
.replace('created_at: "2026-07-18T10:00:00+08:00"', 'created_at: "2026-07-18T10:00:00+08:00"\nupdated_at: "2026-07-19T10:00:00+08:00"')
|
|
2714
|
-
.replace("observed_skill_version: 4.3.
|
|
2715
|
+
.replace("observed_skill_version: 4.3.5", `observed_skill_version: ${options.observed ?? "4.3.5"}\nlast_verified_skill_version: ${options.lastVerified ?? options.observed ?? "4.3.5"}`)
|
|
2715
2716
|
.replace(signature, options.signature)
|
|
2716
2717
|
.replace("export: metadata-only", `resolution: ${options.resolution ?? "pending"}\nexport: metadata-only`);
|
|
2717
2718
|
const firstReport = path.join(first, "docs", "skill-feedback", "reports", "2026-07-18-review-timeout-a13f82c1.md");
|
|
@@ -2775,7 +2776,7 @@ function testSkillFeedbackCollectionIsBoundedReadOnlyAndMetadataOnly() {
|
|
|
2775
2776
|
assert(lifecycleCheck.metadata.find(item => item.report_id === "ACSF-assets-20260718-fd5748e4")?.lifecycle === "regression-current", "a fixed signature reproduced on the fixed release must re-enter active triage as a regression");
|
|
2776
2777
|
writeFile(fixedReport, fixedContent);
|
|
2777
2778
|
|
|
2778
|
-
writeFile(firstOtherReport, firstOtherContent.replace("observed_skill_version: 4.3.
|
|
2779
|
+
writeFile(firstOtherReport, firstOtherContent.replace("observed_skill_version: 4.3.5", "observed_skill_version: 4.2.8"));
|
|
2779
2780
|
lifecycleCheck = JSON.parse(run("node", [cli, "feedback", "--projects", first, "--json"]).stdout);
|
|
2780
2781
|
assert(lifecycleCheck.metadata.find(item => item.report_id === "ACSF-geesight-20260718-c35fa4e3")?.lifecycle === "recheck-due", "an unresolved v1 report from an older Skill version must require recheck");
|
|
2781
2782
|
writeFile(firstOtherReport, firstOtherContent);
|
|
@@ -2825,14 +2826,14 @@ function testSkillFeedbackCollectionIsBoundedReadOnlyAndMetadataOnly() {
|
|
|
2825
2826
|
}
|
|
2826
2827
|
|
|
2827
2828
|
function testReleaseVersionMarkersStayInSync() {
|
|
2828
|
-
const expected = "4.3.
|
|
2829
|
+
const expected = "4.3.5";
|
|
2829
2830
|
const pkg = JSON.parse(fs.readFileSync(path.join(repoRoot, "package.json"), "utf8"));
|
|
2830
2831
|
const lock = JSON.parse(fs.readFileSync(path.join(repoRoot, "package-lock.json"), "utf8"));
|
|
2831
2832
|
const policy = JSON.parse(fs.readFileSync(
|
|
2832
2833
|
path.join(repoRoot, "src", "auto-coding-skill", "data", "policies", "workflow-migrations-v1.json"),
|
|
2833
2834
|
"utf8",
|
|
2834
2835
|
));
|
|
2835
|
-
assert(pkg.version === expected, "package version must match the 4.3.
|
|
2836
|
+
assert(pkg.version === expected, "package version must match the 4.3.5 release");
|
|
2836
2837
|
assert(lock.version === expected && lock.packages[""].version === expected, "package-lock versions must match");
|
|
2837
2838
|
assert(policy.managed_versions.engineering === expected && policy.managed_versions.agents === expected, "managed workflow versions must match");
|
|
2838
2839
|
const manifest = JSON.parse(fs.readFileSync(path.join(repoRoot, "cli", "assets", "managed-install.json"), "utf8"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elvis1513/auto-coding-skill",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.5",
|
|
4
4
|
"description": "CLI installer for a delivery-first .agents workflow with adaptive Git isolation, routed changed-scope validation, risk-based review, push completion, and safe cleanup.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|