instar 1.3.969 → 1.3.971
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/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +33 -23
- package/dist/commands/init.js.map +1 -1
- package/dist/core/CartographerSweepEngine.js +1 -1
- package/dist/core/CartographerSweepEngine.js.map +1 -1
- package/dist/core/CartographerTree.d.ts +5 -2
- package/dist/core/CartographerTree.d.ts.map +1 -1
- package/dist/core/CartographerTree.js +6 -3
- package/dist/core/CartographerTree.js.map +1 -1
- package/dist/core/cartographerDetect.d.ts +1 -1
- package/dist/core/cartographerDetect.d.ts.map +1 -1
- package/dist/core/cartographerDetect.js +2 -2
- package/dist/core/cartographerDetect.js.map +1 -1
- package/dist/server/routes.js +1 -1
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/scripts/cartographer-freshness.mjs +18 -3
- package/src/data/builtin-manifest.json +73 -73
- package/src/scaffold/templates/jobs/instar/reflection-trigger.md +3 -1
- package/upgrades/1.3.970.md +33 -0
- package/upgrades/1.3.971.md +57 -0
- package/upgrades/side-effects/evo007-canonical-source-auth.eli16.md +47 -0
- package/upgrades/side-effects/evo007-canonical-source-auth.md +147 -0
- package/upgrades/side-effects/honest-denominators.md +135 -0
package/package.json
CHANGED
|
@@ -123,7 +123,7 @@ function compute() {
|
|
|
123
123
|
stateAuthored: false,
|
|
124
124
|
nodeCount: 0, authorableCount: 0, freshCount: 0, staleCount: 0,
|
|
125
125
|
neverAuthoredCount: 0, neverAuthoredWithinGrace: 0, neverAuthoredPastGrace: 0,
|
|
126
|
-
authorFailedCount: 0, freshRatio:
|
|
126
|
+
authorFailedCount: 0, freshRatio: null,
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -163,7 +163,10 @@ function compute() {
|
|
|
163
163
|
authorFailedCount: authorFailed,
|
|
164
164
|
// Denominator EXCLUDES never-authored-within-grace (grace period before a new
|
|
165
165
|
// node counts as debt): fresh + stale + never-authored-past-grace.
|
|
166
|
-
|
|
166
|
+
// null (NOT 1) when there is nothing to divide by: an empty index has not
|
|
167
|
+
// earned a perfect score. Reporting 1 here made this ratchet structurally
|
|
168
|
+
// unable to fail on an empty map — the exact case it exists to catch.
|
|
169
|
+
freshRatio: (fresh + stale + neverPast) === 0 ? null : Number((fresh / (fresh + stale + neverPast)).toFixed(4)),
|
|
167
170
|
};
|
|
168
171
|
}
|
|
169
172
|
|
|
@@ -188,7 +191,19 @@ function main() {
|
|
|
188
191
|
|
|
189
192
|
if (CHECK) {
|
|
190
193
|
const failures = [];
|
|
191
|
-
if (report.freshRatio
|
|
194
|
+
if (report.freshRatio === null && report.stateAuthored && report.nodeCount === 0) {
|
|
195
|
+
// An index EXISTS and yielded nothing authorable. That is the dangerous
|
|
196
|
+
// empty: the ratchet was asked to assess and could not, which must never
|
|
197
|
+
// read as a pass (reporting 1 here is what made this check structurally
|
|
198
|
+
// unable to fail on an empty map — the exact case it exists to catch).
|
|
199
|
+
failures.push('fresh ratio UNKNOWN — an authored index exists but contains ZERO nodes, so freshness could NOT be assessed (this is not a pass)');
|
|
200
|
+
} else if (report.freshRatio === null) {
|
|
201
|
+
// Either no authored state at all (the documented CI case) or an index whose
|
|
202
|
+
// nodes are all still within grace — legitimately too early to assess. NOT a
|
|
203
|
+
// failure, but it is NOT a pass either: say so out loud rather than
|
|
204
|
+
// letting a vacuous check read as a green one.
|
|
205
|
+
if (!QUIET) console.error('[cartographer-freshness] NOT ASSESSED — no authored cartographer state; this check gated on nothing.');
|
|
206
|
+
} else if (report.freshRatio < FLOORS.freshRatio) {
|
|
192
207
|
failures.push(`fresh ratio ${report.freshRatio} < floor ${FLOORS.freshRatio}`);
|
|
193
208
|
}
|
|
194
209
|
if (report.neverAuthoredPastGrace > FLOORS.neverAuthoredPastGraceCeiling) {
|