Index: /branches/eam_branch_20080806/dbconfig/det.md
===================================================================
--- /branches/eam_branch_20080806/dbconfig/det.md	(revision 18994)
+++ /branches/eam_branch_20080806/dbconfig/det.md	(revision 18995)
@@ -56,4 +56,5 @@
     user_5      F64         0.0
     path_base   STR         255
+    data_state  STR         64      # full, cleaned, purged (only track end states; request states are in detRunSummary by iteration)
     fault       S16         0       # Key NOT NULL
 END
@@ -75,4 +76,5 @@
     user_5      F64         0.0
     path_base   STR         255
+    data_state  STR         64      # full, cleaned, purged (only track end states; request states are in detRunSummary by iteration)
     fault       S16         0       # Key NOT NULL
 END
@@ -96,4 +98,6 @@
     user_4      F64         0.0
     user_5      F64         0.0
+#   XXX does it make sense to 'clean' the stacked imfiled?
+    data_state  STR         64      # full, cleaned, purged (only track end states; request states are in detRunSummary by iteration)
     fault       S16         0       # Key NOT NULL
 END
@@ -121,4 +125,5 @@
     user_5      F64         0.0
     path_base   STR         255
+    data_state  STR         64      # full, cleaned, purged (only track end states; request states are in detRunSummary by iteration)
     fault       S16         0       # Key NOT NULL
 END
@@ -137,4 +142,5 @@
     user_5      F64         0.0
     path_base   STR         255
+    data_state  STR         64      # full, cleaned, purged (only track end states; request states are in detRunSummary by iteration)
     fault       S16         0       # Key NOT NULL
 END
@@ -179,4 +185,5 @@
     user_5      F64         0.0
     path_base   STR         255
+    data_state  STR         64      # full, cleaned, purged (only track end states; request states are in detRunSummary by iteration)
     fault       S16         0       # Key NOT NULL
 END
@@ -205,11 +212,14 @@
     user_5      F64         0.0
     path_base   STR         255
+    data_state  STR         64      # full, cleaned, purged (only track end states; request states are in detRunSummary by iteration)
     accept      BOOL        f
     fault       S16         0       # Key NOT NULL
 END
 
+# XXX this probably should have been defined at the start of a new iteration, not at the end.
 detRunSummary METADATA
     det_id      S64         0       # Primary Key fkey(det_id, iteration) ref detInputExp(det_id, iteration)
     iteration   S32         0       # Primary Key fkey(det_id, iteration) ref detResidExp(det_id, iteration)
+    data_state  STR         64      # full, goto_cleaned, cleaned, goto_full, goto_purged, purged
     bg          F64         0.0
     bg_stdev    F64         0.0
