←News detail

Tencent Cloud Developer CommunityUpdated Oct 28 15:31

Lightweight AI Middle Platform: How to Configure the Rule Configuration Center

AI summary

The rule configuration center of the lightweight AI middle platform focuses on four types of scenarios—eliminating duplicate data entry, reducing reconciliation difficulties, detecting problems in a timely manner, and supporting business analysis—and manages the rule catalog, parameter values, execution calls, and version records. The rule repository and the parameter repository are stored in separate databases, so parameter adjustments do not affect rule versions; acceptance requirements are that a single rule's real-time call response must not exceed 2 seconds, batch reconciliation of 100,000 documents must not exceed 30 minutes, and performance degradation must not exceed 20% after the rules are expanded to 1,000.

Body · AI translation

The positioning of the rule configuration center within the lightweight AI middle platform is that of a business rule governance hub and the entry point for rule execution configuration. It manages the rule catalog, parameter values, execution calls, and version records under four types of scenarios—eliminating duplicate entry, reducing reconciliation difficulties, detecting problems in a timely manner, and supporting business analysis.

I. Functions of the Rule Configuration Center

The functions are divided into six items. The first five address "being able to configure it and get it running"; the sixth addresses "being able to change it back and check it clearly."

(1) Rule Catalog and Classification Management

Build the catalog with the four types of business scenarios as the main axis, with rule types attached under each scenario, to avoid rules being piled up in a scattered mess according to system ownership. The corresponding relationships are shown in Table 1.

Duplicate checking of customer name and tax ID combinations; cross-system mapping of supplier codes; material master data maintained once and reused across multiple systems

Reducing reconciliation difficulties

Cross-check relationships, matching rules, difference classification, automatic financial statement assembly

Cross-checking receivables and receipts; matching orders and outbound documents; classifying differences as timing-related or substantive; unifying data extraction standards for statement assembly

Detecting problems in a timely manner

Completeness, consistency, standardization, and cross-system consistency checks, intelligent inspection

Missing mandatory fields; amount totals inconsistent with details; date formats out of range; inconsistent status of the same document across two systems

Supporting business analysis

Indicator definitions, data extraction standards, calculation rules, dimension rules

Revenue indicator standards and conversion; customer count deduplication standards; gross margin calculation; organizational and product dimension hierarchies

Each rule registers eight elements: rule code, name, business meaning, scope of application, responsible department, effective time, associated parameters, and priority. The rule code is the unique identifier, avoiding the difficulty of tracing rules with the same name; priority is the basis for execution order when handling conflicts; the responsible department determines whom to contact when problems arise, and associated parameters determine how many adjustable values there are.

(2) Rule Definition and Business Expression

Rule definitions express judgment conditions and result actions in business language, so that business personnel can understand the meaning of the judgment. For example, if a customer name and tax ID combination already exists and is in valid status, block it and prompt to link to the existing customer. Business confirmation records are retained with the rule as the basis for dispute handling and acceptance.

(3) Rule Execution and Scenario Invocation

Execution supports two methods: interface calls, for real-time use by agents and business systems at save, submit, and approval nodes; and task scheduling, for periodic use in batch scenarios such as reconciliation, inspection, and indicator calculation. The same rule can be referenced by multiple scenarios; execution carries an idempotency identifier, so repeated calls do not generate duplicate difference records; each execution simultaneously records the rule version number and parameter version number, allowing restoration of the state at the time of judgment.

When the same data hits multiple rules, execution follows the registered priority; mutually exclusive rules are not allowed to take effect simultaneously; when multiple rules hit at the same time, actions such as prompts, blocks, referral to manual handling, and difference logging are merged and output according to priority, and conflicts are adjudicated by the business owner department.

(4) Result Feedback and Difference Localization

Difference records have four fixed contents: which data (source system plus document number), which field, which rule was hit, and the recommended action. Differences are routed by type: business-type differences to the front office, interface and extraction-type differences to IT, and cross-system standard conflicts to the business supervisor.

(5) Parameter and Threshold Management

Parameters are registered centrally and classified by judgment type (similarity, matching weight), tolerance type (amount, time, ratio tolerance), notification type (alert threshold, push frequency, push target), and action type (prompt method, block level, referral to manual handling), and stored separately from rules. Each parameter records its code, current value, applicable rules, applicable scenarios, effective scope, responsible person, change and rollback records, and calibration records, and can be rolled back by version. Parameter adjustments do not affect rule versions; rule structure and parameter values each have their proper place.

(6) Version Traceability and Permission Control

All five actions—add, modify, disable, publish, and roll back—are fully traced, recording the operator, time, reason, and scope of impact; the scope of impact is automatically listed according to the reference relationships among rules, scenarios, reports, and parameters. Permissions are divided into four types: view, edit, publish, and execute, granted by position and data scope; publish permission is set separately and is not automatically obtained with edit permission.

II. Selection and Architecture of the Rule Configuration Center

(1) Selection Basis

Selection considers only four product dimensions. Rule types and change frequency come first; where there are many rules and changes are frequent, prioritize products with clear catalogs and support for batch publishing; semantic expression and reuse capability determine whether business personnel can truly participate—weak expression makes business confirmation a mere formality; integration cost and schedule are the main risk points for on-time project launch, requiring assessment of interface modification effort and launch cycle; lightweight and operability—the configuration center should not become a new heavy asset. Data asset foundations and security audit requirements are placed in Section III, Configuration Basis.

(2) Functional Architecture

The functional architecture is divided into five layers: the definition layer handles rule entry and parameter setting; the rule repository and parameter repository are stored separately with versions recorded; the execution engine invokes rules by scenario and reads parameters; the feedback layer outputs differences and reports; the version and permission layer handles approval, publishing, rollback, and permission control. The overall structure is shown in Figure 1.

Figure 1 Structure of the Rule Configuration Center

The necessity of separate repository storage lies in the fact that the change frequencies of the two types of content differ by an order of magnitude, and the approval intensity also differs. When stored together, every threshold adjustment drags rule version approval along with it, which easily leads to parameters remaining unupdated for long periods and makes it difficult for the rule configuration center to deliver real results.

(3) Data and Deployment Architecture

Three interface boundaries, echoing the division of responsibilities in the opening: downward, read-only reference to the data asset catalog and business system data; upward, provision of rule invocation interfaces to agents and business systems; inward, independent storage of execution records and discrepancy records, so that rule changes do not affect the readability of historical records. Data movement, interface connectivity, and system integration are undertaken by the middle-platform integration layer, and the rule configuration center does not duplicate this construction. Deployment is integrated within the same domain as the middle platform; the parameter library is backed up separately and recovery drills are conducted separately, to prevent rules from being unable to output correct results after parameters are lost.

III. Configuration Basis of the Rule Configuration Center

(1) Data and Comparison Basis

The data asset catalog is authoritative: take field meanings, value domains, and cross-system mapping relationships from it, and configure subject mapping, field mapping, code conversion, and consistency checks accordingly. For fields not covered by the catalog, complete the catalog first and then configure rules; the order cannot be reversed, otherwise the data source cannot be clearly explained.

(2) Institutional and Standards Basis

Entry requirements, reconciliation criteria, discrepancy classification, metric definitions, and change processes are mapped item by item to business policies, data standards, the "Three Modes of Automated Financial Statement Assembly and Rule Governance Plan," and the "IT System Control System and Mechanisms of the Lightweight AI Middle Platform." The data asset foundation and security audit also fall here: which data assets the rules reference, which permissions are required to modify parameters, and how long logs are retained are executed in accordance with the control mechanisms, with sources noted. Each rule records the institutional clauses on which it is based; when institutions are revised, the affected rules are traced back by clause, to prevent the system from still blocking according to old criteria.

(3) Scenario and Problem Basis

Rank the high-frequency problems in the four types of scenarios, and clarify the problem each rule is to solve, the applicable objects, and the expected effect. Ranking is based on two numbers: occurrence frequency and per-instance processing labor hours; those with high frequency and long labor hours are configured first. Without these two numbers, the rule list will become a collection of demands from various departments.

(4) Management and Feedback Basis

Clarify rule priority, scope of application, responsible entities, and change processes, and distinguish business confirmation matters from IT maintenance matters; business usage feedback is the main source for adjusting rules and calibrating parameters, and the channels must be fixed: are the prompts understandable, can discrepancies be resolved, and are there false blocks.

(5) Empirical Testing Basis

The three types of values—tolerance, threshold, and similarity—cannot be derived from institutions and the catalog; they can only be obtained by running in trial operation. Record the number of false positives, number of missed detections, and business adoption for each parameter group, and form a parameter baseline table as the starting point for formal configuration and the comparison benchmark for subsequent calibration. Practice shows that the trial operation data volume should be close to the real daily volume; a threshold measured on one hundred records is usually too loose when applied to ten thousand records.

IV. Configuration and Acceptance of the Rule Configuration Center

(1) Configuration Steps

Advance in five steps, each with outputs. Rule sorting: business departments produce a rule list according to the four types of scenarios, clearly stating names, meanings, and responsible entities; criteria confirmation: business and IT confirm data sources, calculation methods, matching conditions, and discrepancy handling methods; configuration modeling: build the rule catalog and parameter ledger, and configure conditions and output formats; test verification: run scenario tests with real or desensitized data, and conduct trial operation by parameter group to collect baselines; release and go live: approve and publish according to permissions, record version numbers and effective times, and retain rollback points.

Action type: prompt method, interception level (prompt, soft interception, hard interception)

English text is being prepared.

Configuration items (non-parameters): statistical period, data retrieval period, dimension hierarchy depth, metric precision

Self-service data retrieval by theme, consistent criteria

(3) Acceptance Criteria

Acceptance criteria must be reproducible by a third party. The six criteria and verification methods are shown in Table 3.

Randomly stratify and sample 20 discrepancy records from the four types of scenarios; the proportion of records for which business personnel can explain the basis for the determination shall be no less than 90%

On-site spot checks and retelling; retelling records archived and retained

Discrepancies locatable

The proportion of discrepancy records located to the source system, document number, and field shall be no less than 95%

Randomly sample 20 records for verification

Process traceable

For any 20 execution records from three months ago traced back, the rule version, parameter version, and processing result are all queryable

The stress test environment is isomorphic to the production environment, and the data volume criteria are consistent; the real-time invocation response of a single rule shall not exceed 2 seconds; batch reconciliation of one hundred thousand documents shall not exceed the time limit specified by the business, and when the business has not specified one, shall not exceed 30 minutes; after the rules are expanded to 1,000, retest using the acceptance stress test values as the benchmark, in the same environment and with the same data volume, and the degradation of single-rule response time and batch reconciliation time shall not exceed 20%

Isomorphic environment stress testing and batch data trial runs

(4) Acceptance Method

Business personnel participate in scenario testing to verify whether the rules conform to business habits and whether the prompts are clear; IT verifies performance, interface invocation, permission control, and log traces. Acceptance may proceed only when both types of signatures are complete; if either type of signature is missing, rework and disputes are likely to arise later.

V. Operation, Maintenance, and Parameter Calibration of the Rule Configuration Center

(1) Operation Monitoring

Seven indicators are included in the operation dashboard: rule execution success rate, abnormal trigger frequency, discrepancy processing duration, rule invocation volume, number of parameter version changes, completion rate of retesting after parameter changes, and business feedback closure rate. The seven dashboard items are real-time or daily monitoring indicators; the eight indicators in Table 4 are calculated according to their respective statistical periods and then pushed to the dashboard, and the criteria for each are unified in Table 4. The dashboard should list rules one by one; mere aggregation makes it difficult to identify specific failed rules.

The number of business transactions automatically processed by rules or processed according to prompts ÷ the total number of transactions of the same type (the same type of business is defined by scenario, business type, and statistical period)

Three quantitative trigger conditions: when the proportion of timing differences exceeds 15% (referring to differences formed when the same transaction is recorded at different times on the two sides), a tolerance assessment is initiated; when the prompt adoption rate is below 50%, assess whether the rules are too broad or whether the prompting method affects operations; when the false positive rate rises by more than 20% over the baseline and persists for two weeks, a threshold review is initiated. Once a trigger condition is met, it is initiated without waiting for manual request. All indicators are calculated and recalculated according to the definitions in Table 4, and the comparison baseline is the measured values in the trial-run parameter baseline table.

Figure 2 Parameter Calibration Closed Loop

Before and after calibration, retest using the same indicators, record the prior value, posterior value, and result, and file them in the calibration records of the parameter ledger (fields are described in Section (III) of this chapter). Without retesting, parameter calibration lacks a basis.

(III) Version Management, Parameter Changes, and Rule Retirement

Rule changes go through five steps: application, assessment, approval, release, and rollback, retaining the reason, scope of impact, and operation records. Parameter changes are likewise traceable and take effect according to risk classification: notification-type parameters take effect upon registration; action-type parameters take effect after registration and business notification; determination-type and tolerance-type parameters directly affect determination results and may take effect only after business confirmation. The parameter ledger registers twelve fields: parameter code, name, current value, applicable rule, applicable scenario, effective scope, responsible person, change record, effective version, rollback version, rollback verification result, and calibration record; calibration records are filled in a fixed format: calibration date, indicator, pre-calibration value, post-calibration value, retest result, calibrator, and verifier. Parameter rollback is initiated by the registrant; the verifier is designated by the responsible business department and must not be the registrant self-verifying; retest according to the rolled-back parameter group and fill in the rollback verification result. The rule base will expand, so the retirement mechanism must be defined in advance: rules that have zero triggers for six consecutive months, whose targeted problem has been fundamentally resolved through system reengineering, or whose institutional basis has been abolished enter retirement review, with one of three conclusions: retain, merge, or disable; for retained rules, state the reason in writing. Historical difference records of disabled rules are retained according to the log retention period specified in the control mechanism for traceability; retirement review is organized every six months by the responsible business department with IT maintenance personnel participating, and review records are archived together with the rule ledger.

(IV) Responsibility Mechanism

Division of labor among three roles: the responsible business department is responsible for confirming business meaning and definitions, IT maintenance personnel are responsible for rule configuration, parameter registration, and operational support, and reviewers are responsible for difference handling and closure confirmation. These correspond to the three roles in "The IT System Control System and Mechanism of the Lightweight AI Middle Platform": business ownership corresponds to the rule definer, IT maintenance corresponds to configuration execution, and review corresponds to difference confirmation, with approvals executed by level according to that mechanism. Checks and balances on release authority: IT holds the operational right to release, and business holds the prior confirmation right; neither party can put a rule into production unilaterally.

Conclusion

There are three signs that a rule configuration center has matured: a rule change is made in only one place, a single query can trace back to the version in effect at the time, and business-side indicators can be statistically measured. The first relies on separate databases and reference relationships; the second relies on rule version numbers and parameter version numbers being recorded in every execution record; the third looks at three numbers—business usage rate, prompt adoption rate, and difference handling rate—which are measurable and comparable quarter by quarter. No matter how many rules there are, if business personnel do not use them, it is difficult to produce practical results.

Business defines the definitions, IT configures and releases, and review manages closure, with the three powers separated; rule changes go through approval, and parameter changes take effect by classification; the rule base is reviewed once each quarter based on difference data. With these three in place, the rule configuration center truly becomes the governance hub for business rules and the configuration entry point for rule execution, translating middle platform capabilities into practical convenience for business personnel: less data entry, fewer reconciliations, earlier detection, and easier data retrieval.

Source

Tencent Cloud Developer Community