feat: Implement IsolatedReplayContext for deterministic audit replay
- Added IsolatedReplayContext class to provide an isolated environment for replaying audit bundles without external calls. - Introduced methods for initializing the context, verifying input digests, and extracting inputs for policy evaluation. - Created supporting interfaces and options for context configuration. feat: Create ReplayExecutor for executing policy re-evaluation and verdict comparison - Developed ReplayExecutor class to handle the execution of replay processes, including input verification and verdict comparison. - Implemented detailed drift detection and error handling during replay execution. - Added interfaces for policy evaluation and replay execution options. feat: Add ScanSnapshotFetcher for fetching scan data and snapshots - Introduced ScanSnapshotFetcher class to retrieve necessary scan data and snapshots for audit bundle creation. - Implemented methods to fetch scan metadata, advisory feeds, policy snapshots, and VEX statements. - Created supporting interfaces for scan data, feed snapshots, and policy snapshots.
This commit is contained in:
@@ -6,8 +6,14 @@ namespace StellaOps.Aoc.Cli;
|
||||
|
||||
public static class Program
|
||||
{
|
||||
private const string DeprecationDate = "2025-07-01";
|
||||
private const string MigrationUrl = "https://docs.stellaops.io/cli/migration";
|
||||
|
||||
public static async Task<int> Main(string[] args)
|
||||
{
|
||||
// Emit deprecation warning
|
||||
EmitDeprecationWarning();
|
||||
|
||||
var rootCommand = new RootCommand("StellaOps AOC CLI - Verify append-only contract compliance")
|
||||
{
|
||||
VerifyCommand.Create()
|
||||
@@ -15,4 +21,21 @@ public static class Program
|
||||
|
||||
return await rootCommand.InvokeAsync(args);
|
||||
}
|
||||
|
||||
private static void EmitDeprecationWarning()
|
||||
{
|
||||
var originalColor = Console.ForegroundColor;
|
||||
Console.ForegroundColor = ConsoleColor.Yellow;
|
||||
Console.Error.WriteLine();
|
||||
Console.Error.WriteLine("================================================================================");
|
||||
Console.Error.WriteLine("[DEPRECATED] stella-aoc is deprecated and will be removed on " + DeprecationDate + ".");
|
||||
Console.Error.WriteLine();
|
||||
Console.Error.WriteLine("Please migrate to the unified stella CLI:");
|
||||
Console.Error.WriteLine(" stella aoc verify --since <ref> --postgres <conn>");
|
||||
Console.Error.WriteLine();
|
||||
Console.Error.WriteLine("Migration guide: " + MigrationUrl);
|
||||
Console.Error.WriteLine("================================================================================");
|
||||
Console.Error.WriteLine();
|
||||
Console.ForegroundColor = originalColor;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user