js-rigor: remove the useCompiled option entirely — clean cut
The compiled evaluator is gone, so useCompiled: false is inert. Removed every remaining reference: the TTU matrix pin's redundant fallback check, the OWA wrapper's useCompiled parameter, the comparator full-path test's redundant rule-path check, and the compiled-rule-parity campaign (which existed solely to compare the two paths — now trivially identical). The RuleCompiler remains as the config validator; _compiled metadata still rides in snapshots.
This commit is contained in:
@@ -265,7 +265,7 @@ describe('Rule-kind × partial-graph parity (rigor)', () => {
|
||||
a.addRelation('g:0', 'member_of', 'u:0', { possibility: 0.8 });
|
||||
a.addRelation('doc:0', 'viewable', 'g:0', { possibility: 0.7 });
|
||||
assert.equal(round4(a.check('u:0', 'can_view', 'doc:0').possibility), 0.7, 'ttu reverse-in persistent optimized');
|
||||
assert.equal(round4(a.check('u:0', 'can_view', 'doc:0', { useCompiled: false }).possibility), 0.7, 'ttu reverse-in persistent fallback');
|
||||
|
||||
a.removeRelation('g:0', 'member_of', 'u:0');
|
||||
a.removeRelation('doc:0', 'viewable', 'g:0');
|
||||
const r = a.check('u:0', 'can_view', 'doc:0', {
|
||||
@@ -962,7 +962,7 @@ describe('Rule-kind × partial-graph parity (rigor)', () => {
|
||||
}, 90000);
|
||||
|
||||
it('PROPERTY CAMPAIGN: OWA fusion differential (weights, aggregators, reliabilityWeighting)', async () => {
|
||||
function makeWrapper(useCompiled) {
|
||||
function makeWrapper() {
|
||||
const engine = new Arbiter();
|
||||
engine.addNode('u:0', 'user');
|
||||
engine.addNode('doc:0', 'doc');
|
||||
@@ -989,7 +989,7 @@ describe('Rule-kind × partial-graph parity (rigor)', () => {
|
||||
return { ok: true };
|
||||
},
|
||||
check() {
|
||||
const r = engine.check('u:0', 'can_access', 'doc:0', { useCompiled });
|
||||
const r = engine.check('u:0', 'can_access', 'doc:0');
|
||||
// Mirror: OWA = sum(weight_i * sorted_desc(value_i)); with
|
||||
// reliabilityWeighting the values are pre-scaled by reliability.
|
||||
const values = [];
|
||||
@@ -1022,7 +1022,7 @@ describe('Rule-kind × partial-graph parity (rigor)', () => {
|
||||
|
||||
const weightSets = [[0.7, 0.3, 0], [0.2, 0.3, 0.5], [1, 0, 0], [0, 0, 1]];
|
||||
const result = await rigor.campaign(
|
||||
[rigor.object('graph', makeWrapper.bind(null, true), [
|
||||
[rigor.object('graph', makeWrapper, [
|
||||
rigor.method('setConfig', function (agg, wIdx, weighting) { return this.setConfig(agg, wIdx !== null ? weightSets[wIdx] : null, weighting); },
|
||||
rigor.args(
|
||||
rigor.gen.oneOf([null, 'max', 'min', 'average']),
|
||||
|
||||
Reference in New Issue
Block a user