Inital Version

This commit is contained in:
Elijah 2026-10-03 18:29:15 -07:00
commit 94cd6b984b
211 changed files with 4765 additions and 0 deletions

View file

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../src/AstroFrame.Engine/AstroFrame.Engine.csproj" />
<RuntimeHostConfigurationOption Include="System.GC.HeapHardLimit" Value="3221225472" />
<RuntimeHostConfigurationOption Include="System.GC.Server" Value="false" />
</ItemGroup>
</Project>

View file

@ -0,0 +1,7 @@
using AstroFrame.Engine;
sealed class DirectProgress(Action<ProgressInfo> report):IProgress<ProgressInfo>
{
readonly object gate=new();
public void Report(ProgressInfo value){lock(gate)report(value);}
}

View file

@ -0,0 +1,59 @@
using AstroFrame.Engine;
using System.Buffers.Binary;
using System.Globalization;
using System.Text;
/// <summary>Image-level invariants: persistent nebulosity, smooth sky trends, prolonged moving cloud.</summary>
static class ImageRegression
{
public static async Task Run(Action<bool,string> check)
{
string directory=Path.Combine(Path.GetTempPath(),"AstroFrame-images-"+Guid.NewGuid());Directory.CreateDirectory(directory);
try
{
const int width=256,height=448;Random random=new(452);var stars=Enumerable.Range(0,130).Select(_=>(X:14+random.NextDouble()*(width-28),Y:14+random.NextDouble()*(height-28),Flux:1800+random.NextDouble()*2200)).ToArray();
List<Frame> frames=[];
for(int n=0;n<81;n++)
{
float[] pixels=new float[width*height];bool cloudy=n>=22&&n<60;
for(int y=0;y<height;y++)for(int x=0;x<width;x++)
{
double u=(double)x/width,v=(double)y/height;
double staticNebula=80*Math.Exp(-((u-.42)*(u-.42)+(v-.58)*(v-.58))*35);
double cloudGlow=cloudy?450*Math.Exp(-Math.Pow((v-(.22+(n%9)*.045))/.10,2)):n==18?35*Math.Exp(-Math.Pow((v-.72)/.10,2)):0;
pixels[y*width+x]=(float)(1000+n*2+75*u+n*v+staticNebula+cloudGlow+(random.NextDouble()-.5)*60);
}
foreach(var s in stars)
{
double localCloud=cloudy?Math.Exp(-Math.Pow((s.Y/height-(.22+(n%9)*.045))/.10,2)):0;
double flux=s.Flux*(1-n*.0015)*(1-.75*localCloud);
for(int dy=-4;dy<=4;dy++)for(int dx=-4;dx<=4;dx++)
{int x=(int)s.X+dx,y=(int)s.Y+dy;pixels[y*width+x]+=(float)(flux*Math.Exp(-((x-s.X)*(x-s.X)+(y-s.Y)*(y-s.Y))/(2*.85*.85)));}
}
string path=Path.Combine(directory,$"image{n:000}.fit");WriteFits(path,pixels,width,height,n);
var f=Fits.Inspect(path);new StellarDetector().Measure(f,Fits.Read(path),CancellationToken.None);frames.Add(f);
}
await SpatialReference.RunAsync(frames,null,CancellationToken.None);Classification.Run(frames);
var clear=frames.Where((_,n)=>(n<22||n>=60)&&n!=18).ToArray();var cloud=frames.Where((_,n)=>n>=22&&n<60).ToArray();
check(clear.All(f=>f.Automatic==Verdict.Keep),"persistent nebulosity and gradual sky/flux trends remain KEEP in image pipeline");
check(cloud.All(f=>f.Automatic==Verdict.Reject),"prolonged moving cloud does not become the local baseline");
check(cloud.All(f=>f.CloudMask.Any(v=>v>0)&&f.Evidence.Any(e=>e.Metric=="Cloud structure")),"cloud masks and spatial explanations survive the full image pipeline");
check(frames[18].Automatic==Verdict.Review,"modest transient sky structure without stellar loss routes to REVIEW, preserving conservative rejection");
var reference=frames.First(f=>f.Id==cloud[0].ReferenceId);var image=Fits.Read(cloud[0].Path);
var vanished=reference.Stars[0] with{Flux=1};reference.Stars=[vanished];var forced=Matching.ForcedFlux(reference,cloud[0],image);
check(forced.Length==1&&double.IsFinite(forced[0]),"forced apertures measure coordinates independently of detection in that exposure");
// With only unstable cloudy exposures, no apparent normal population may certify KEEP.
await SpatialReference.RunAsync(cloud.ToList(),null,CancellationToken.None);Classification.Run(cloud.ToList());
check(cloud.All(f=>f.Automatic==Verdict.Review),"a wholly unstable cloudy session routes to REVIEW when no stable reference exists");
}
finally{Directory.Delete(directory,true);}
}
static void WriteFits(string path,float[] pixels,int width,int height,int n)
{
string Card(string key,string value)=>(key.PadRight(8)+"= "+value).PadRight(80);
string date=new DateTime(2026,9,20,8,0,0,DateTimeKind.Utc).AddSeconds(n*30).ToString("yyyy-MM-ddTHH:mm:ss",CultureInfo.InvariantCulture);
string header=Card("SIMPLE","T")+Card("BITPIX","-32")+Card("NAXIS","2")+Card("NAXIS1",width.ToString())+Card("NAXIS2",height.ToString())+Card("EXPTIME","30")+Card("OBJECT","'Synthetic field'")+Card("DATE-OBS",$"'{date}'")+"END".PadRight(80);
using var stream=File.Create(path);stream.Write(Encoding.ASCII.GetBytes(header.PadRight((header.Length+2879)/2880*2880)));
byte[] row=new byte[width*4];for(int y=0;y<height;y++){for(int x=0;x<width;x++)BinaryPrimitives.WriteInt32BigEndian(row.AsSpan(x*4,4),BitConverter.SingleToInt32Bits(pixels[y*width+x]));stream.Write(row);}
}
}

View file

@ -0,0 +1,24 @@
using AstroFrame.Engine;
static class PreviewRegression
{
public static void Run(Action<bool,string> check)
{
const int w=360,h=640;var random=new Random(839);float[] pixels=new float[w*h];
for(int y=0;y<h;y++)for(int x=0;x<w;x++)pixels[y*w+x]=(float)(1000+40*Math.Exp(-Math.Pow((x-190)/90.0,2)-Math.Pow((y-300)/200.0,2))+(random.NextDouble()-.5)*100);
pixels[290*w+172]=5000;var image=new ImagePlane(w,h,pixels,1);float[] untouched=(float[])pixels.Clone();
var reduced=PreviewRenderer.Reduce(image,3);var frame=PreviewRenderer.Render(reduced);var diffuse=PreviewRenderer.Render(reduced,.18,true);
List<double> diff=[];for(int y=0;y<reduced.Height;y++)for(int x=0;x<reduced.Width-1;x++)diff.Add(Math.Abs(frame[y*reduced.Width+x]-frame[y*reduced.Width+x+1])/255.0);
check(Robust.Median(diff)<.06&&Robust.Median(frame.Select(v=>v/255.0))<.25,"preview transfer keeps background grain subordinate to the image");
check(untouched.SequenceEqual(pixels),"preview reduction, stretching and nebula mode never alter analysis pixels");
check(frame.Max()>frame[0]+80&&diffuse.Length<frame.Length,"preview preserves conspicuous stars and exposes a distinct diffuse-detail view");
string path=Path.Combine(Path.GetTempPath(),"AstroFrame-preview-"+Guid.NewGuid()+".bin");var f=new Frame{Length=7654,Modified=4321};
try
{
PreviewRenderer.Write(image,path,f);var cached=PreviewRenderer.Read(path,f);
check(cached.Pixels.SequenceEqual(PreviewRenderer.Reduce(image,1).Pixels),"linear display cache reopens without lost samples or another FITS read");
bool refused=false;try{PreviewRenderer.Read(path,new Frame{Length=7655,Modified=4321});}catch(InvalidDataException){refused=true;}check(refused,"changed sources invalidate display caches independently of quality measurements");
}
finally{if(File.Exists(path))File.Delete(path);}
}
}

View file

@ -0,0 +1,109 @@
using AstroFrame.Engine;
using System.Diagnostics;
using System.Security.Cryptography;
using System.Text;
using System.Text.Json;
ResourcePolicy.InstallWindowsLimit();
if(args.Length>0&&args[0]=="preview")
{
var plane=PreviewRenderer.Reduce(Fits.Read(Path.GetFullPath(args[1])),3);var pixels=PreviewRenderer.Render(plane);using var writer=new BinaryWriter(File.Create(args[2]));writer.Write(plane.Width);writer.Write(plane.Height);writer.Write(pixels);return;
}
if(args.Length>0&&args[0]=="profile-workers")
{
string[] all=Directory.GetFiles(args[1],"*.fit").Order().ToArray();int count=Math.Min(int.Parse(args[2]),all.Length),workers=int.Parse(args[3]);
var files=Enumerable.Range(0,count).Select(i=>all[i*all.Length/count]).ToArray();var summaries=new System.Collections.Concurrent.ConcurrentDictionary<string,int>();var timer=Stopwatch.StartNew();
await Parallel.ForEachAsync(files,new ParallelOptions{MaxDegreeOfParallelism=workers},async(path,ct)=>
{var f=Fits.Inspect(path);await ResourcePolicy.WaitForHeadroom(ResourcePolicy.EstimateFrameBytes(f.Width,f.Height,2),ct);new StellarDetector().Measure(f,Fits.Read(path,ct),ct);summaries[f.Name]=f.StarCount;});
using var process=Process.GetCurrentProcess();Console.WriteLine(JsonSerializer.Serialize(new{workers,count,elapsedSeconds=timer.Elapsed.TotalSeconds,peakWorkingMiB=process.PeakWorkingSet64/1048576.0,peakPrivateMiB=process.PeakPagedMemorySize64/1048576.0,logicalProcessors=Environment.ProcessorCount,starCounts=summaries.OrderBy(x=>x.Key).Select(x=>x.Value)}));return;
}
if(args.Length>0&&args[0]=="resources")
{
var(total,available)=ResourcePolicy.PhysicalMemory();Console.WriteLine(JsonSerializer.Serialize(new{totalPhysical=total,availablePhysical=available,reserve=ResourcePolicy.Reserve(total),processLimit=ResourcePolicy.ProcessLimit,heapLimit=GC.GetGCMemoryInfo().TotalAvailableMemoryBytes,windowsLimitEnforced=ResourcePolicy.WindowsLimitEnforced}));return;
}
if(args.Length>0&&args[0]=="labels")
{
var p=ProjectStore.Load(Path.GetFullPath(args[1]));var labeled=p.Frames.Where(f=>f.Override.HasValue).ToArray();
var result=new{total=p.Frames.Count,labeled=labeled.Length,unlabeled=p.Frames.Count-labeled.Length,
falseRejectFrames=labeled.Count(f=>f.Override==Verdict.Keep&&f.Automatic==Verdict.Reject),
falseRejectSeconds=labeled.Where(f=>f.Override==Verdict.Keep&&f.Automatic==Verdict.Reject).Sum(f=>f.Exposure),
falseKeepFrames=labeled.Count(f=>f.Override==Verdict.Reject&&f.Automatic==Verdict.Keep),
humanAmbiguous=labeled.Count(f=>f.Override==Verdict.Review),
confusion=labeled.GroupBy(f=>$"auto:{f.Automatic} human:{f.Override}").ToDictionary(g=>g.Key,g=>g.Count()),
sessions=p.Frames.GroupBy(f=>f.Session).Select(g=>new{session=g.Key,total=g.Count(),labeled=g.Count(f=>f.Override.HasValue),falseRejectSeconds=g.Where(f=>f.Override==Verdict.Keep&&f.Automatic==Verdict.Reject).Sum(f=>f.Exposure),falseKeepFrames=g.Count(f=>f.Override==Verdict.Reject&&f.Automatic==Verdict.Keep)}),
limitation="Only explicitly overridden frames are labels. Unlabeled frames are not assumed correct; selected review samples are not an unbiased accuracy estimate."};
Console.WriteLine(JsonSerializer.Serialize(result,new JsonSerializerOptions{WriteIndented=true}));return;
}
if(args.Length>0&&args[0]=="analyze")
{
string source=Path.GetFullPath(args[1]),directory=Path.GetFullPath(args[2]);var watch=Stopwatch.StartNew();int last=-1;
var existing=File.Exists(Path.Combine(directory,"project.json"))?ProjectStore.Load(directory):null;
if(args.Contains("--fresh")&&existing!=null)foreach(var f in existing.Frames)f.Measured=false;
var p=await new Analyzer().AnalyzeAsync(source,directory,existing,
new DirectProgress(x=>{int pct=x.Total==0?0:x.Done*100/x.Total;if(pct/10!=last){last=pct/10;Console.WriteLine($"{x.Stage}: {x.Done}/{x.Total}");}}),CancellationToken.None);
File.WriteAllText(Path.Combine(directory,"decisions.csv"),Export.Manifest(p));
using var process=Process.GetCurrentProcess();var report=new {elapsedSeconds=watch.Elapsed.TotalSeconds,peakWorkingMB=process.PeakWorkingSet64/(1024.0*1024),peakCommittedMB=process.PeakPagedMemorySize64/(1024.0*1024),processLimitMB=ResourcePolicy.ProcessLimit/(1024*1024),heapLimitMB=ResourcePolicy.HeapLimit/(1024*1024),windowsLimitEnforced=ResourcePolicy.WindowsLimitEnforced,engine=Project.EngineVersion,validation="Unlabeled exploratory results; no evidence of stack parity",sessions=p.Frames.GroupBy(f=>f.Session).Select(g=>new{session=g.Key,frames=g.Count(),keep=g.Count(f=>f.Effective==Verdict.Keep),review=g.Count(f=>f.Effective==Verdict.Review),reject=g.Count(f=>f.Effective==Verdict.Reject),totalMinutes=g.Sum(f=>f.Exposure)/60,keepMinutes=g.Where(f=>f.Effective==Verdict.Keep).Sum(f=>f.Exposure)/60,stars=Range(g.Select(f=>(double)f.StarCount)),fwhm=Range(g.Select(f=>f.Fwhm)),flux=Range(g.Select(f=>f.Transparency)),matching=Range(g.Select(f=>f.MatchFraction)),causes=g.GroupBy(f=>f.Cause).ToDictionary(x=>x.Key,x=>x.Count())})};
string json=JsonSerializer.Serialize(report,new JsonSerializerOptions{WriteIndented=true});File.WriteAllText(Path.Combine(directory,"report.json"),json);Console.WriteLine(json);return;
}
if(args.Length>0&&args[0]=="benchmark")
{
foreach(string path in args.Skip(1)){var f=Fits.Inspect(path);var sw=Stopwatch.StartNew();new StellarDetector().Measure(f,Fits.Read(path),CancellationToken.None);Console.WriteLine($"{f.Name}: {sw.ElapsedMilliseconds} ms; stars {f.StarCount}; FWHM {f.Fwhm:0.00}; ellipticity {f.Ellipticity:0.00}");}return;
}
if(args.Length>0&&args[0]=="classify")
{
string directory=Path.GetFullPath(args[1]);var p=ProjectStore.Load(directory);
if(!p.Complete)throw new InvalidOperationException("Reanalyze incomplete or outdated measurements before classification");
Classification.Run(p.Frames);ProjectStore.Save(p,directory);File.WriteAllText(Path.Combine(directory,"decisions.csv"),Export.Manifest(p));
Console.WriteLine(JsonSerializer.Serialize(p.Frames.GroupBy(f=>f.Session).Select(g=>new{session=g.Key,keep=g.Count(f=>f.Automatic==Verdict.Keep),review=g.Count(f=>f.Automatic==Verdict.Review),reject=g.Count(f=>f.Automatic==Verdict.Reject)}),new JsonSerializerOptions{WriteIndented=true}));return;
}
static double[] Range(IEnumerable<double> v)=>new[]{Robust.Quantile(v,.05),Robust.Median(v),Robust.Quantile(v,.95)};
int passed=0;
void Check(bool condition,string name){if(!condition)throw new Exception("FAILED: "+name);passed++;Console.WriteLine("PASS "+name);}
Frame Synthetic(int n,double flux=1,int count=160,double background=1000,double width=4,double ellipticity=.15)
{
Random random=new(123);List<Star> stars=[];for(int i=0;i<count;i++)stars.Add(new(.04+random.NextDouble()*.92,.04+random.NextDouble()*.92,(2000-i*5)*flux,width,ellipticity));
return new(){Id=n.ToString(),Path="frame"+n,Target="Test",Timestamp=new DateTime(2026,9,20,8,0,0,DateTimeKind.Utc).AddSeconds(n*30),Exposure=30,Width=2160,Height=3840,StarCount=count,Stars=stars,Background=background,Noise=20,Fwhm=width,Ellipticity=ellipticity,BackgroundVariation=10,Measured=true};
}
Check(Robust.Median(new double[]{1,2,3,4,100})==3,"robust median ignores extreme outlier");
Check(!OperatingSystem.IsWindows()||ResourcePolicy.WindowsLimitEnforced,"Windows kernel process-memory limit is installed and verified");
Check(ResourcePolicy.Reserve(32*ResourcePolicy.GiB)==8*ResourcePolicy.GiB,"32 GB machines reserve 8 GB physical RAM");
Check(!ResourcePolicy.CanAnalyze(32*ResourcePolicy.GiB,7*ResourcePolicy.GiB,32*1024*1024),"low physical RAM pauses analysis");
Check(ResourcePolicy.CanAnalyze(32*ResourcePolicy.GiB,12*ResourcePolicy.GiB,32*1024*1024),"sufficient RAM allows bounded analysis");
bool budgetRefused=false;try{ResourcePolicy.CheckFrame(16000,16000,1);}catch(InvalidDataException){budgetRefused=true;}Check(budgetRefused,"oversized images refused before allocating pixels");
var trend=Enumerable.Range(0,121).Select(i=>Synthetic(i,1-i*.002,160,1000+i*3)).ToList();Classification.Run(trend);
Check(trend.All(f=>f.Automatic!=Verdict.Reject),"gradual transparency and background trends do not reject");
var clouds=Enumerable.Range(0,101).Select(i=>Synthetic(i)).ToList();clouds[50]=Synthetic(50,.38,80,1250);Classification.Run(clouds);
Check(clouds[50].Automatic==Verdict.Reject,"strong star loss plus flux loss and elevated background rejects");
Check(clouds.Where((_,i)=>i!=50).All(f=>f.Automatic==Verdict.Keep),"isolated cloudy frame does not reject clean neighbors");
Check(clouds[50].Evidence.Count>=3,"rejection retains multiple explanations");
var isolated=Enumerable.Range(0,101).Select(i=>Synthetic(i)).ToList();isolated[50].Fwhm=6;Classification.Run(isolated);
Check(isolated[50].Automatic==Verdict.Review,"one noncatastrophic bad metric routes to review");
var tracking=Enumerable.Range(0,101).Select(i=>Synthetic(i)).ToList();tracking[50].Fwhm=8;tracking[50].Ellipticity=.7;Classification.Run(tracking);Check(tracking[50].Automatic==Verdict.Reject,"severe width and ellipticity degradation rejects");
var small=Enumerable.Range(0,8).Select(i=>Synthetic(i,.5,60)).ToList();Classification.Run(small);Check(small.All(f=>f.Automatic==Verdict.Review),"small sessions disable rejection");
var sessions=new List<Frame>{Synthetic(0),Synthetic(1),Synthetic(2)};sessions[2].Timestamp=sessions[2].Timestamp?.AddDays(3);Classification.Sessions(sessions);Check(sessions[0].Session==sessions[1].Session&&sessions[0].Session!=sessions[2].Session,"separate nights get separate baselines");
var missing=Synthetic(0);missing.Timestamp=null;Classification.Run([missing]);Check(missing.Automatic==Verdict.Review,"missing timestamps cannot auto reject");
var refFrame=Synthetic(0);var rotated=Synthetic(1);double aspect=(double)refFrame.Height/refFrame.Width,angle=.09;
rotated.Stars=rotated.Stars.Select(s=>{double x=s.X-.5,y=(s.Y-.5)*aspect;return s with{X=Math.Cos(angle)*x-Math.Sin(angle)*y+.51,Y=(Math.Sin(angle)*x+Math.Cos(angle)*y)/aspect+.5};}).ToList();Matching.Measure(refFrame,rotated);Check(rotated.MatchFraction>.9&&Math.Abs(rotated.Transparency-1)<.01,"catalog alignment handles rotation and drift");
var impulses=new float[256*256];Array.Fill(impulses,1000);impulses[128*256+128]=50000;var impulse=Synthetic(1);new StellarDetector().Measure(impulse,new(256,256,impulses,1),CancellationToken.None);Check(impulse.StarCount==0,"single pixel hot impulse is not a star");
string temp=Path.Combine(Path.GetTempPath(),"AstroFrame-test-"+Guid.NewGuid());Directory.CreateDirectory(temp);
try
{
var project=new Project{Name="Test",Frames=clouds,Complete=true};clouds[50].Override=Verdict.Keep;clouds[50].Note="Human review";ProjectStore.Save(project,temp);var restored=ProjectStore.Load(temp);Check(restored.Frames[50].Override==Verdict.Keep&&restored.Frames[50].Note=="Human review","manual override and labels persist");
Check(restored.Frames[0].Stars.Count==0&&ProjectStore.LoadCatalog(temp,restored.Frames[0])&&restored.Frames[0].Stars.Count==160,"binary catalogs restore independently from review metadata");
Check(new FileInfo(Path.Combine(temp,"project.json")).Length<250000,"review metadata excludes bulk star catalogs");
string metadata=Path.Combine(temp,"project.json");File.WriteAllText(metadata,File.ReadAllText(metadata).Replace(Project.EngineVersion,"outdated-engine"));var outdated=ProjectStore.Load(temp);
Check(!outdated.Complete&&!outdated.Frames[0].Measured&&outdated.Frames[50].Override==Verdict.Keep&&outdated.Frames[50].Note=="Human review","engine upgrades invalidate automatic measurements while retaining human decisions");
string original=Path.Combine(temp,"source.fit");File.WriteAllBytes(original,Encoding.ASCII.GetBytes("Original source bytes"));var info=new FileInfo(original);var ef=Synthetic(1);ef.Path=original;ef.Length=info.Length;ef.Modified=info.LastWriteTimeUtc.Ticks;ef.Automatic=Verdict.Keep;var ep=new Project{Source=temp,Complete=true,Frames=[ef]};byte[] hash=SHA256.HashData(File.ReadAllBytes(original));
string output=temp+"-export";
try {var result=await Export.AcceptedAsync(ep,output,false,false,null,CancellationToken.None);Check(result.Copied==1&&hash.SequenceEqual(SHA256.HashData(File.ReadAllBytes(original))),"copy export preserves source bytes");Check(File.Exists(Path.Combine(output,"accepted.txt")),"export includes accepted manifest");bool refused=false;try{await Export.AcceptedAsync(ep,output,false,false,null,CancellationToken.None);}catch(InvalidOperationException){refused=true;}Check(refused,"export refuses existing nonempty folder");}
finally{if(Directory.Exists(output))Directory.Delete(output,true);}
var other=Synthetic(2);other.Path=original;other.Length=info.Length;other.Modified=info.LastWriteTimeUtc.Ticks;other.Target="Other target";other.Automatic=Verdict.Keep;ep.Frames.Add(other);
try{var result=await Export.AcceptedAsync(ep,output,false,true,null,CancellationToken.None);Check(result.Linked+result.Copied==2&&Directory.GetDirectories(output).Length==2,"multi-target export separates targets and supports hardlinks");Check(hash.SequenceEqual(SHA256.HashData(File.ReadAllBytes(original))),"hardlink export does not alter source contents");}
finally{if(Directory.Exists(output))Directory.Delete(output,true);}
bool insideRefused=false;try{await Export.AcceptedAsync(ep,Path.Combine(temp,"export"),false,false,null,CancellationToken.None);}catch(InvalidOperationException){insideRefused=true;}Check(insideRefused,"export cannot write inside source tree");
ep.Complete=false;bool partialRefused=false;try{await Export.AcceptedAsync(ep,temp+"-export",false,false,null,CancellationToken.None);}catch(InvalidOperationException){partialRefused=true;}Check(partialRefused,"incomplete analysis cannot export accepted lights");
}
finally{Directory.Delete(temp,true);}
await ImageRegression.Run(Check);
PreviewRegression.Run(Check);
Console.WriteLine($"{passed} checks passed. Synthetic tests validate mechanics, not astrophotography stack quality.");

View file

@ -0,0 +1,10 @@
{
"source": "User-reviewed screenshots supplied 2026-10-02; these are regression examples, not a representative accuracy sample",
"frames": [
{"file":"Light_NGC 1432_30.0s_IRCUT_20260919-235146.fit","expected":"Reject","reason":"Extensive upper-frame cloud cover"},
{"file":"Light_NGC 1432_30.0s_IRCUT_20260919-235218.fit","expected":"Reject","reason":"Extensive upper-frame cloud cover incorrectly kept"},
{"file":"Light_NGC 1432_30.0s_IRCUT_20260919-235652.fit","expected":"Keep","reason":"User-confirmed clear exposure"},
{"file":"Light_NGC 1432_30.0s_IRCUT_20260919-235856.fit","expected":"Keep","reason":"User-confirmed clear exposure falsely reviewed"},
{"file":"Light_NGC 1432_30.0s_IRCUT_20260920-001734.fit","expected":"Reject","reason":"Extensive bands of cloud incorrectly kept"}
]
}

View file

@ -0,0 +1,285 @@
{
"source": "Assistant preview screening of 56 fixed capture-order samples, before v2 classifications, 2026-10-02; provisional cloud-only labels, not user truth",
"frames": [
{
"file": "Light_IC 1805_30.0s_LP_20260826-011158.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_IC 1805_30.0s_LP_20260826-013516.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_IC 1805_30.0s_LP_20260826-020023.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_IC 1805_30.0s_LP_20260826-022518.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_IC 1805_30.0s_LP_20260826-024935.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_IC 1805_30.0s_LP_20260826-031301.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_IC 1805_30.0s_LP_20260826-033632.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_IC 1805_30.0s_LP_20260826-035746.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_M 33_30.0s_IRCUT_20261001-204308.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_M 33_30.0s_IRCUT_20261001-210128.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_M 33_30.0s_IRCUT_20261001-211920.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_M 33_30.0s_IRCUT_20261001-213712.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_M 33_30.0s_IRCUT_20261001-215528.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_M 33_30.0s_IRCUT_20261001-221334.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_M 33_30.0s_IRCUT_20261001-223128.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_M 33_30.0s_IRCUT_20261001-225046.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260919-235940.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-001632.fit",
"expected": "Reject",
"reason": "Obvious diffuse cloud bands in preview"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-003354.fit",
"expected": "Reject",
"reason": "Obvious diffuse cloud bands in preview"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-005133.fit",
"expected": "Reject",
"reason": "Obvious diffuse cloud bands in preview"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-010824.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-012601.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-014355.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-020114.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-021838.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-023529.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-025305.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-031027.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-032731.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-034453.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-040228.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20260920-042050.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261001-231037.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261001-233015.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261001-234955.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-001004.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-003218.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-005157.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-011418.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-013602.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-015625.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-021706.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-023717.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-025900.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-031911.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-033921.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-035931.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 1432_30.0s_IRCUT_20261002-041957.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 281_30.0s_LP_20260926-011337.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 281_30.0s_LP_20260926-013449.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 281_30.0s_LP_20260926-015626.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 281_30.0s_LP_20260926-021808.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 281_30.0s_LP_20260926-024019.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 281_30.0s_LP_20260926-030232.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 281_30.0s_LP_20260926-032839.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
},
{
"file": "Light_NGC 281_30.0s_LP_20260926-040604.fit",
"expected": "NotReject",
"reason": "No obvious cloud structure in preview; morphology and uniform extinction unverified"
}
]
}