dsh-payroll-audit 0.0.0-stage → 0.1.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ First release, covering Beijing and Shanghai from 2026-07.
6
+
7
+ - Rule packs are data: derived columns are restricted arithmetic expressions
8
+ (whitelisted parser, no `eval`), rules are conditions over those columns.
9
+ - Parameters are addressed by dotted key and read from the official parameter
10
+ document, with provenance (document, URL, evidence level, retrieval date)
11
+ carried into every citation.
12
+ - **A missing parameter resolves to nothing, not zero.** The affected rules are
13
+ declared in `disabled_rules`, never run, and are listed in the report under
14
+ "未核验项", so "no finding" cannot be read as "compliant".
15
+ - **Four-state verdict** (`pass` / `pass_with_gaps` / `review` / `fail`): a row
16
+ with unchecked rules is never reported as passing.
17
+ - Impact is computed per finding, e.g. a base below the floor reports the
18
+ contribution shortfall rather than just "base too low".
19
+ - Two packs ship: Beijing 2026 (17 rules, 28 derived columns) and Shanghai 2026.
20
+ Shanghai's housing fund is 5%–7%, not the national 5%–12%, which is why rates
21
+ come from the parameter file.
22
+ - The YAML reader now accepts a flow mapping as a sequence item (`- {a: b}`).
23
+ Before this, every rule condition was read as a string and the engine rejected
24
+ the pack — which is the correct failure, but the reader was wrong.
25
+ - 25 tests over the shipped packs, the parameter documents, the expression
26
+ language and the four-state verdict.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README-es.md ADDED
@@ -0,0 +1,188 @@
1
+ # dsh-payroll-audit — Payroll audit (Español)
2
+
3
+ [English](README.md) · [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
4
+
5
+ [![dshfind](https://dshfind.com/api/badge/PerryLink/dsh-payroll-audit?metric=downloads)](https://dshfind.com/en/plugins/PerryLink/dsh-payroll-audit?ref=badge)
6
+
7
+ `dsh-payroll-audit` verifica una hoja de nómina contra parámetros publicados de seguridad social, fondo de vivienda e impuesto sobre la renta, e informa cada diferencia con la cláusula de la que procede y el importe en juego.
8
+
9
+ El resultado tiene cuatro valores: `pass`, `pass_with_gaps`, `review`, `fail`. Una regla cuyo parámetro nunca se obtuvo queda **deshabilitada y listada**, de modo que «sin hallazgos» nunca se presenta como «cumple».
10
+
11
+ ## Install
12
+
13
+ ```sh
14
+ dsh plugin --profile <name> add dsh-payroll-audit
15
+ dsh --profile <name> --dump-config | grep 'dsh-payroll-audit'
16
+ ```
17
+
18
+ ## What it looks like
19
+
20
+ ![Workflow diagram for dsh-payroll-audit: document → rule pack → findings.](docs/assets/dsh-payroll-audit-flow.svg)
21
+
22
+ *Workflow overview: document → rule pack → findings.*
23
+
24
+ **Límite:** es una comprobación aritmética y de consistencia de campos, no una declaración, ni un dictamen, ni una determinación de la relación laboral. No presenta nada ante la administración, no sustituye la liquidación de la entidad gestora y no dice si una persona debe estar afiliada. Las reglas que no pudieron ejecutarse se listan como tales.
25
+
26
+ ## What it answers
27
+
28
+ - ¿Está la base declarada dentro del mínimo y el máximo del periodo?
29
+ - ¿Coinciden las cotizaciones con la base por el tipo publicado?
30
+ - ¿Se deduce el neto del bruto menos las retenciones?
31
+ - ¿Qué reglas no pudieron ejecutarse por falta de parámetro?
32
+
33
+ ## Standards it follows
34
+
35
+ Cada regla cita un documento. Los paquetes incluyen sus citas con fuente, localizador y cita literal. Los parámetros no obtenidos se declaran `pending` con su motivo, y las reglas correspondientes figuran en `disabled_rules` y nunca se evalúan.
36
+
37
+ ## Compatibility
38
+
39
+ | Surface | Status |
40
+ |---|---|
41
+ | Harness | peer range `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` |
42
+ | Node | `^22.19.0 || >=24.0.0` |
43
+ | Platforms | all (pure ESM; no native code, no network, no model call) |
44
+
45
+ ## What it does
46
+
47
+ For each row the engine evaluates the pack's derived columns (restricted arithmetic, no `eval`) and tests each rule. A firing rule contributes its reason code, severity, impact and citations. Parameters are addressed by dotted keys and a missing value resolves to nothing rather than zero.
48
+
49
+ ## Configuration
50
+
51
+ | Key | Default | Meaning |
52
+ |---|---|---|
53
+ | `rulesFile` | `rules/payroll-audit.yaml` | 规则库路径 |
54
+
55
+ ## Material format
56
+
57
+ A payroll sheet is a table with one row per person, with fields for `period`, `base_declared`, `gross_pay`, `net_pay`, the contribution amounts and `insurance_set`. Read through `dsh-table-ingest`, so `.xlsx`, `.xlsm` and `.csv` all work.
58
+
59
+ ## Rule sources
60
+
61
+ No evidence directory: quotations live inside the rule pack and `check:citations` verifies them. The two packs cover Beijing and Shanghai from 2026-07; medical, maternity, injury-tier and minimum-wage checks are disabled because no primary rate was obtained, and each lists what would unblock it.
62
+
63
+ ## Troubleshooting
64
+
65
+ - **The plugin installs but the tool never appears**: check that `main` resolves to `lib/index.mjs` and that `pnpm run build` produced it.
66
+ - **`dsh plugin add` rejects the package**: the peer range covers `0.1.x` and `0.2.x`; outside it, grant an explicit exemption.
67
+ - **A rule did not run**: read the `skipped` array.
68
+
69
+ ## Development
70
+
71
+ ```sh
72
+ pnpm install
73
+ pnpm run typecheck
74
+ pnpm test
75
+ pnpm run build
76
+ node ../scripts/sync-shared.mjs dsh-payroll-audit
77
+ ```
78
+
79
+ ## PerryLink DSH Plugin Family
80
+
81
+ This project is part of the DeepSeek Harness plugin family from [PerryLink](https://github.com/PerryLink). The roster stays collapsed below so every README keeps a short first screen; expand it to see every row and its status.
82
+
83
+ <details>
84
+ <summary>Expand all plugins</summary>
85
+
86
+ | Plugin | Status |
87
+ |---|---|
88
+ | **[dsh-aqua-input-check](https://github.com/PerryLink/dsh-aqua-input-check)** | |
89
+ | **[dsh-archive-check](https://github.com/PerryLink/dsh-archive-check)** | |
90
+ | **[dsh-auto-review](https://github.com/PerryLink/dsh-auto-review)** | |
91
+ | **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | |
92
+ | **[dsh-bid-ca-precheck](https://github.com/PerryLink/dsh-bid-ca-precheck)** | |
93
+ | **[dsh-bid-qual-check](https://github.com/PerryLink/dsh-bid-qual-check)** | |
94
+ | **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** | |
95
+ | **[dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind)** | |
96
+ | **[dsh-click](https://github.com/PerryLink/dsh-click)** | |
97
+ | **[dsh-composer-history](https://github.com/PerryLink/dsh-composer-history)** | |
98
+ | **[dsh-contract-stance](https://github.com/PerryLink/dsh-contract-stance)** | |
99
+ | **[dsh-customs-doc-check](https://github.com/PerryLink/dsh-customs-doc-check)** | |
100
+ | **[dsh-data-quality](https://github.com/PerryLink/dsh-data-quality)** | |
101
+ | **[dsh-demurrage-ledger](https://github.com/PerryLink/dsh-demurrage-ledger)** | |
102
+ | **[dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck)** | |
103
+ | **[dsh-drill-script-check](https://github.com/PerryLink/dsh-drill-script-check)** | |
104
+ | **[dsh-eia-guide-check](https://github.com/PerryLink/dsh-eia-guide-check)** | |
105
+ | **[dsh-emergency-plan](https://github.com/PerryLink/dsh-emergency-plan)** | |
106
+ | **[dsh-essay-rubric-check](https://github.com/PerryLink/dsh-essay-rubric-check)** | |
107
+ | **[dsh-evidence-check](https://github.com/PerryLink/dsh-evidence-check)** | |
108
+ | **[dsh-export-ctl-check](https://github.com/PerryLink/dsh-export-ctl-check)** | |
109
+ | **[dsh-fast](https://github.com/PerryLink/dsh-fast)** | |
110
+ | **[dsh-fmea-table-check](https://github.com/PerryLink/dsh-fmea-table-check)** | |
111
+ | **[dsh-forecast-penalty](https://github.com/PerryLink/dsh-forecast-penalty)** | |
112
+ | **[dsh-fund-research](https://github.com/PerryLink/dsh-fund-research)** | |
113
+ | **[dsh-github](https://github.com/PerryLink/dsh-github)** | |
114
+ | **[dsh-gongwen-flow-check](https://github.com/PerryLink/dsh-gongwen-flow-check)** | |
115
+ | **[dsh-gongwen-word-check](https://github.com/PerryLink/dsh-gongwen-word-check)** | |
116
+ | **[dsh-guard-plan-qc](https://github.com/PerryLink/dsh-guard-plan-qc)** | |
117
+ | **[dsh-hazchem-check](https://github.com/PerryLink/dsh-hazchem-check)** | |
118
+ | **[dsh-hazplan-check](https://github.com/PerryLink/dsh-hazplan-check)** | |
119
+ | **[dsh-hidden-risk-map](https://github.com/PerryLink/dsh-hidden-risk-map)** | |
120
+ | **[dsh-hs-classify](https://github.com/PerryLink/dsh-hs-classify)** | |
121
+ | **[dsh-icd-rule-check](https://github.com/PerryLink/dsh-icd-rule-check)** | |
122
+ | **[dsh-industry-research](https://github.com/PerryLink/dsh-industry-research)** | |
123
+ | **[dsh-lawcite-adapter](https://github.com/PerryLink/dsh-lawcite-adapter)** | |
124
+ | **[dsh-laya](https://github.com/PerryLink/dsh-laya)** | |
125
+ | **[dsh-lc-doc-check](https://github.com/PerryLink/dsh-lc-doc-check)** | |
126
+ | **[dsh-learning-gap-check](https://github.com/PerryLink/dsh-learning-gap-check)** | |
127
+ | **[dsh-library](https://github.com/PerryLink/dsh-library)** | |
128
+ | **[dsh-local-ai](https://github.com/PerryLink/dsh-local-ai)** | |
129
+ | **[dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions)** | |
130
+ | **[dsh-mask](https://github.com/PerryLink/dsh-mask)** | |
131
+ | **[dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel)** | |
132
+ | **[dsh-medrec-qc](https://github.com/PerryLink/dsh-medrec-qc)** | |
133
+ | **[dsh-memento](https://github.com/PerryLink/dsh-memento)** | |
134
+ | **[dsh-nsfc-form-check](https://github.com/PerryLink/dsh-nsfc-form-check)** | |
135
+ | **[dsh-nurse-record-check](https://github.com/PerryLink/dsh-nurse-record-check)** | |
136
+ | **[dsh-observe](https://github.com/PerryLink/dsh-observe)** | |
137
+ | **[dsh-origin-rvc-check](https://github.com/PerryLink/dsh-origin-rvc-check)** | |
138
+ | **[dsh-ota-review-check](https://github.com/PerryLink/dsh-ota-review-check)** | |
139
+ | **[dsh-output-styles](https://github.com/PerryLink/dsh-output-styles)** | |
140
+ | **[dsh-paper-doc-adapter](https://github.com/PerryLink/dsh-paper-doc-adapter)** | |
141
+ | **[dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules)** | |
142
+ | **[dsh-permit-report-check](https://github.com/PerryLink/dsh-permit-report-check)** | |
143
+ | **[dsh-pipeline-check](https://github.com/PerryLink/dsh-pipeline-check)** | |
144
+ | **[dsh-pleading-draft](https://github.com/PerryLink/dsh-pleading-draft)** | |
145
+ | **[dsh-plugin-doctor](https://github.com/PerryLink/dsh-plugin-doctor)** | |
146
+ | **[dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide)** | |
147
+ | **[dsh-plugin-kit](https://github.com/PerryLink/dsh-plugin-kit)** | |
148
+ | **[dsh-plugin-upgrade](https://github.com/PerryLink/dsh-plugin-upgrade)** | |
149
+ | **[dsh-policy-brief-draft](https://github.com/PerryLink/dsh-policy-brief-draft)** | |
150
+ | **[dsh-power-loss-split](https://github.com/PerryLink/dsh-power-loss-split)** | |
151
+ | **[dsh-power-ticket-check](https://github.com/PerryLink/dsh-power-ticket-check)** | |
152
+ | **[dsh-ppap-check](https://github.com/PerryLink/dsh-ppap-check)** | |
153
+ | **[dsh-protest-deadline](https://github.com/PerryLink/dsh-protest-deadline)** | |
154
+ | **[dsh-railway-window](https://github.com/PerryLink/dsh-railway-window)** | |
155
+ | **[dsh-repair-order-qc](https://github.com/PerryLink/dsh-repair-order-qc)** | |
156
+ | **[dsh-research-report](https://github.com/PerryLink/dsh-research-report)** | |
157
+ | **[dsh-review-reply-check](https://github.com/PerryLink/dsh-review-reply-check)** | |
158
+ | **[dsh-rulefile-check](https://github.com/PerryLink/dsh-rulefile-check)** | |
159
+ | **[dsh-safety-brief-check](https://github.com/PerryLink/dsh-safety-brief-check)** | |
160
+ | **[dsh-score](https://github.com/PerryLink/dsh-score)** | |
161
+ | **[dsh-session-sync](https://github.com/PerryLink/dsh-session-sync)** | |
162
+ | **[dsh-site-log-check](https://github.com/PerryLink/dsh-site-log-check)** | |
163
+ | **[dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security)** | |
164
+ | **[dsh-soe-decision-check](https://github.com/PerryLink/dsh-soe-decision-check)** | |
165
+ | **[dsh-soilwater-check](https://github.com/PerryLink/dsh-soilwater-check)** | |
166
+ | **[dsh-sop-sync-check](https://github.com/PerryLink/dsh-sop-sync-check)** | |
167
+ | **[dsh-spc-gbt-adapter](https://github.com/PerryLink/dsh-spc-gbt-adapter)** | |
168
+ | **[dsh-talk](https://github.com/PerryLink/dsh-talk)** | |
169
+ | **[dsh-tender-extract](https://github.com/PerryLink/dsh-tender-extract)** | |
170
+ | **[dsh-tender-matrix](https://github.com/PerryLink/dsh-tender-matrix)** | |
171
+ | **[dsh-test-drive](https://github.com/PerryLink/dsh-test-drive)** | |
172
+ | **[dsh-ticktick](https://github.com/PerryLink/dsh-ticktick)** | |
173
+ | **[dsh-translate](https://github.com/PerryLink/dsh-translate)** | |
174
+ | **[dsh-warranty-calc](https://github.com/PerryLink/dsh-warranty-calc)** | |
175
+ | **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | 🧊 FROZEN — see the repo README |
176
+ | **[dsh-claude-move](https://github.com/PerryLink/dsh-claude-move)** | 🧊 FROZEN — see the repo README |
177
+ | **[dsh-defend](https://github.com/PerryLink/dsh-defend)** | 🧊 FROZEN — see the repo README |
178
+ | **[dsh-draw](https://github.com/PerryLink/dsh-draw)** | 🧊 FROZEN — see the repo README |
179
+ | **[dsh-reach](https://github.com/PerryLink/dsh-reach)** | 🧊 FROZEN — see the repo README |
180
+ | **[dsh-background-agents](https://github.com/PerryLink/dsh-background-agents)** | 🚫 RETIRED — see the repo README |
181
+ | **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 RETIRED — see the repo README |
182
+ | **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 RETIRED — see the repo README |
183
+
184
+ </details>
185
+
186
+ ## License
187
+
188
+ [Apache License 2.0](LICENSE) © 2026 dsh-payroll-audit contributors.
package/README-hi.md ADDED
@@ -0,0 +1,188 @@
1
+ # dsh-payroll-audit — Payroll audit (हिन्दी)
2
+
3
+ [English](README.md) · [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
4
+
5
+ [![dshfind](https://dshfind.com/api/badge/PerryLink/dsh-payroll-audit?metric=downloads)](https://dshfind.com/en/plugins/PerryLink/dsh-payroll-audit?ref=badge)
6
+
7
+ `dsh-payroll-audit` वेतन-पत्रक को प्रकाशित सामाजिक सुरक्षा, आवास निधि और आयकर मानकों के विरुद्ध जाँचता है, और प्रत्येक अंतर को उसके स्रोत खंड तथा प्रभावित राशि के साथ बताता है।
8
+
9
+ परिणाम जानबूझकर चार-अवस्था वाला है: `pass`, `pass_with_gaps`, `review`, `fail`. जिस नियम का मानक प्राप्त नहीं हुआ, वह **बंद और सूचीबद्ध** होता है, इसलिए «कोई अंतर नहीं मिला» कभी «अनुरूप» के रूप में नहीं दिखाया जाता।
10
+
11
+ ## Install
12
+
13
+ ```sh
14
+ dsh plugin --profile <name> add dsh-payroll-audit
15
+ dsh --profile <name> --dump-config | grep 'dsh-payroll-audit'
16
+ ```
17
+
18
+ ## What it looks like
19
+
20
+ ![Workflow diagram for dsh-payroll-audit: document → rule pack → findings.](docs/assets/dsh-payroll-audit-flow.svg)
21
+
22
+ *Workflow overview: document → rule pack → findings.*
23
+
24
+ **सीमा:** यह अंकगणितीय और फ़ील्ड-संगति जाँच है — न घोषणा, न लेखा-परीक्षा राय, न रोज़गार-संबंध का निर्धारण। यह कुछ भी जमा नहीं करता, सामाजिक सुरक्षा एजेंसी के निर्धारण का स्थान नहीं लेता, और यह नहीं बताता कि किसी व्यक्ति का नामांकन होना चाहिए या नहीं। जो नियम नहीं चल सके, वे सूचीबद्ध होते हैं।
25
+
26
+ ## What it answers
27
+
28
+ - क्या घोषित आधार अवधि की न्यूनतम और अधिकतम सीमा में है?
29
+ - क्या अंशदान आधार गुणा प्रकाशित दर के बराबर हैं?
30
+ - क्या शुद्ध वेतन सकल में से कटौतियाँ घटाकर आता है?
31
+ - कौन-से नियम मानक न मिलने के कारण नहीं चले?
32
+
33
+ ## Standards it follows
34
+
35
+ प्रत्येक नियम एक दस्तावेज़ उद्धृत करता है। पैक अपने उद्धरण स्रोत, स्थान और शब्दशः अंश के साथ साथ रखते हैं। जो मानक प्राप्त नहीं हुए, वे कारण सहित `pending` घोषित हैं, और संबंधित नियम `disabled_rules` में रहते हैं और कभी नहीं चलाए जाते।
36
+
37
+ ## Compatibility
38
+
39
+ | Surface | Status |
40
+ |---|---|
41
+ | Harness | peer range `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` |
42
+ | Node | `^22.19.0 || >=24.0.0` |
43
+ | Platforms | all (pure ESM; no native code, no network, no model call) |
44
+
45
+ ## What it does
46
+
47
+ For each row the engine evaluates the pack's derived columns (restricted arithmetic, no `eval`) and tests each rule. A firing rule contributes its reason code, severity, impact and citations. Parameters are addressed by dotted keys and a missing value resolves to nothing rather than zero.
48
+
49
+ ## Configuration
50
+
51
+ | Key | Default | Meaning |
52
+ |---|---|---|
53
+ | `rulesFile` | `rules/payroll-audit.yaml` | 规则库路径 |
54
+
55
+ ## Material format
56
+
57
+ A payroll sheet is a table with one row per person, with fields for `period`, `base_declared`, `gross_pay`, `net_pay`, the contribution amounts and `insurance_set`. Read through `dsh-table-ingest`, so `.xlsx`, `.xlsm` and `.csv` all work.
58
+
59
+ ## Rule sources
60
+
61
+ No evidence directory: quotations live inside the rule pack and `check:citations` verifies them. The two packs cover Beijing and Shanghai from 2026-07; medical, maternity, injury-tier and minimum-wage checks are disabled because no primary rate was obtained, and each lists what would unblock it.
62
+
63
+ ## Troubleshooting
64
+
65
+ - **The plugin installs but the tool never appears**: check that `main` resolves to `lib/index.mjs` and that `pnpm run build` produced it.
66
+ - **`dsh plugin add` rejects the package**: the peer range covers `0.1.x` and `0.2.x`; outside it, grant an explicit exemption.
67
+ - **A rule did not run**: read the `skipped` array.
68
+
69
+ ## Development
70
+
71
+ ```sh
72
+ pnpm install
73
+ pnpm run typecheck
74
+ pnpm test
75
+ pnpm run build
76
+ node ../scripts/sync-shared.mjs dsh-payroll-audit
77
+ ```
78
+
79
+ ## PerryLink DSH Plugin Family
80
+
81
+ This project is part of the DeepSeek Harness plugin family from [PerryLink](https://github.com/PerryLink). The roster stays collapsed below so every README keeps a short first screen; expand it to see every row and its status.
82
+
83
+ <details>
84
+ <summary>Expand all plugins</summary>
85
+
86
+ | Plugin | Status |
87
+ |---|---|
88
+ | **[dsh-aqua-input-check](https://github.com/PerryLink/dsh-aqua-input-check)** | |
89
+ | **[dsh-archive-check](https://github.com/PerryLink/dsh-archive-check)** | |
90
+ | **[dsh-auto-review](https://github.com/PerryLink/dsh-auto-review)** | |
91
+ | **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | |
92
+ | **[dsh-bid-ca-precheck](https://github.com/PerryLink/dsh-bid-ca-precheck)** | |
93
+ | **[dsh-bid-qual-check](https://github.com/PerryLink/dsh-bid-qual-check)** | |
94
+ | **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** | |
95
+ | **[dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind)** | |
96
+ | **[dsh-click](https://github.com/PerryLink/dsh-click)** | |
97
+ | **[dsh-composer-history](https://github.com/PerryLink/dsh-composer-history)** | |
98
+ | **[dsh-contract-stance](https://github.com/PerryLink/dsh-contract-stance)** | |
99
+ | **[dsh-customs-doc-check](https://github.com/PerryLink/dsh-customs-doc-check)** | |
100
+ | **[dsh-data-quality](https://github.com/PerryLink/dsh-data-quality)** | |
101
+ | **[dsh-demurrage-ledger](https://github.com/PerryLink/dsh-demurrage-ledger)** | |
102
+ | **[dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck)** | |
103
+ | **[dsh-drill-script-check](https://github.com/PerryLink/dsh-drill-script-check)** | |
104
+ | **[dsh-eia-guide-check](https://github.com/PerryLink/dsh-eia-guide-check)** | |
105
+ | **[dsh-emergency-plan](https://github.com/PerryLink/dsh-emergency-plan)** | |
106
+ | **[dsh-essay-rubric-check](https://github.com/PerryLink/dsh-essay-rubric-check)** | |
107
+ | **[dsh-evidence-check](https://github.com/PerryLink/dsh-evidence-check)** | |
108
+ | **[dsh-export-ctl-check](https://github.com/PerryLink/dsh-export-ctl-check)** | |
109
+ | **[dsh-fast](https://github.com/PerryLink/dsh-fast)** | |
110
+ | **[dsh-fmea-table-check](https://github.com/PerryLink/dsh-fmea-table-check)** | |
111
+ | **[dsh-forecast-penalty](https://github.com/PerryLink/dsh-forecast-penalty)** | |
112
+ | **[dsh-fund-research](https://github.com/PerryLink/dsh-fund-research)** | |
113
+ | **[dsh-github](https://github.com/PerryLink/dsh-github)** | |
114
+ | **[dsh-gongwen-flow-check](https://github.com/PerryLink/dsh-gongwen-flow-check)** | |
115
+ | **[dsh-gongwen-word-check](https://github.com/PerryLink/dsh-gongwen-word-check)** | |
116
+ | **[dsh-guard-plan-qc](https://github.com/PerryLink/dsh-guard-plan-qc)** | |
117
+ | **[dsh-hazchem-check](https://github.com/PerryLink/dsh-hazchem-check)** | |
118
+ | **[dsh-hazplan-check](https://github.com/PerryLink/dsh-hazplan-check)** | |
119
+ | **[dsh-hidden-risk-map](https://github.com/PerryLink/dsh-hidden-risk-map)** | |
120
+ | **[dsh-hs-classify](https://github.com/PerryLink/dsh-hs-classify)** | |
121
+ | **[dsh-icd-rule-check](https://github.com/PerryLink/dsh-icd-rule-check)** | |
122
+ | **[dsh-industry-research](https://github.com/PerryLink/dsh-industry-research)** | |
123
+ | **[dsh-lawcite-adapter](https://github.com/PerryLink/dsh-lawcite-adapter)** | |
124
+ | **[dsh-laya](https://github.com/PerryLink/dsh-laya)** | |
125
+ | **[dsh-lc-doc-check](https://github.com/PerryLink/dsh-lc-doc-check)** | |
126
+ | **[dsh-learning-gap-check](https://github.com/PerryLink/dsh-learning-gap-check)** | |
127
+ | **[dsh-library](https://github.com/PerryLink/dsh-library)** | |
128
+ | **[dsh-local-ai](https://github.com/PerryLink/dsh-local-ai)** | |
129
+ | **[dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions)** | |
130
+ | **[dsh-mask](https://github.com/PerryLink/dsh-mask)** | |
131
+ | **[dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel)** | |
132
+ | **[dsh-medrec-qc](https://github.com/PerryLink/dsh-medrec-qc)** | |
133
+ | **[dsh-memento](https://github.com/PerryLink/dsh-memento)** | |
134
+ | **[dsh-nsfc-form-check](https://github.com/PerryLink/dsh-nsfc-form-check)** | |
135
+ | **[dsh-nurse-record-check](https://github.com/PerryLink/dsh-nurse-record-check)** | |
136
+ | **[dsh-observe](https://github.com/PerryLink/dsh-observe)** | |
137
+ | **[dsh-origin-rvc-check](https://github.com/PerryLink/dsh-origin-rvc-check)** | |
138
+ | **[dsh-ota-review-check](https://github.com/PerryLink/dsh-ota-review-check)** | |
139
+ | **[dsh-output-styles](https://github.com/PerryLink/dsh-output-styles)** | |
140
+ | **[dsh-paper-doc-adapter](https://github.com/PerryLink/dsh-paper-doc-adapter)** | |
141
+ | **[dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules)** | |
142
+ | **[dsh-permit-report-check](https://github.com/PerryLink/dsh-permit-report-check)** | |
143
+ | **[dsh-pipeline-check](https://github.com/PerryLink/dsh-pipeline-check)** | |
144
+ | **[dsh-pleading-draft](https://github.com/PerryLink/dsh-pleading-draft)** | |
145
+ | **[dsh-plugin-doctor](https://github.com/PerryLink/dsh-plugin-doctor)** | |
146
+ | **[dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide)** | |
147
+ | **[dsh-plugin-kit](https://github.com/PerryLink/dsh-plugin-kit)** | |
148
+ | **[dsh-plugin-upgrade](https://github.com/PerryLink/dsh-plugin-upgrade)** | |
149
+ | **[dsh-policy-brief-draft](https://github.com/PerryLink/dsh-policy-brief-draft)** | |
150
+ | **[dsh-power-loss-split](https://github.com/PerryLink/dsh-power-loss-split)** | |
151
+ | **[dsh-power-ticket-check](https://github.com/PerryLink/dsh-power-ticket-check)** | |
152
+ | **[dsh-ppap-check](https://github.com/PerryLink/dsh-ppap-check)** | |
153
+ | **[dsh-protest-deadline](https://github.com/PerryLink/dsh-protest-deadline)** | |
154
+ | **[dsh-railway-window](https://github.com/PerryLink/dsh-railway-window)** | |
155
+ | **[dsh-repair-order-qc](https://github.com/PerryLink/dsh-repair-order-qc)** | |
156
+ | **[dsh-research-report](https://github.com/PerryLink/dsh-research-report)** | |
157
+ | **[dsh-review-reply-check](https://github.com/PerryLink/dsh-review-reply-check)** | |
158
+ | **[dsh-rulefile-check](https://github.com/PerryLink/dsh-rulefile-check)** | |
159
+ | **[dsh-safety-brief-check](https://github.com/PerryLink/dsh-safety-brief-check)** | |
160
+ | **[dsh-score](https://github.com/PerryLink/dsh-score)** | |
161
+ | **[dsh-session-sync](https://github.com/PerryLink/dsh-session-sync)** | |
162
+ | **[dsh-site-log-check](https://github.com/PerryLink/dsh-site-log-check)** | |
163
+ | **[dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security)** | |
164
+ | **[dsh-soe-decision-check](https://github.com/PerryLink/dsh-soe-decision-check)** | |
165
+ | **[dsh-soilwater-check](https://github.com/PerryLink/dsh-soilwater-check)** | |
166
+ | **[dsh-sop-sync-check](https://github.com/PerryLink/dsh-sop-sync-check)** | |
167
+ | **[dsh-spc-gbt-adapter](https://github.com/PerryLink/dsh-spc-gbt-adapter)** | |
168
+ | **[dsh-talk](https://github.com/PerryLink/dsh-talk)** | |
169
+ | **[dsh-tender-extract](https://github.com/PerryLink/dsh-tender-extract)** | |
170
+ | **[dsh-tender-matrix](https://github.com/PerryLink/dsh-tender-matrix)** | |
171
+ | **[dsh-test-drive](https://github.com/PerryLink/dsh-test-drive)** | |
172
+ | **[dsh-ticktick](https://github.com/PerryLink/dsh-ticktick)** | |
173
+ | **[dsh-translate](https://github.com/PerryLink/dsh-translate)** | |
174
+ | **[dsh-warranty-calc](https://github.com/PerryLink/dsh-warranty-calc)** | |
175
+ | **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | 🧊 FROZEN — see the repo README |
176
+ | **[dsh-claude-move](https://github.com/PerryLink/dsh-claude-move)** | 🧊 FROZEN — see the repo README |
177
+ | **[dsh-defend](https://github.com/PerryLink/dsh-defend)** | 🧊 FROZEN — see the repo README |
178
+ | **[dsh-draw](https://github.com/PerryLink/dsh-draw)** | 🧊 FROZEN — see the repo README |
179
+ | **[dsh-reach](https://github.com/PerryLink/dsh-reach)** | 🧊 FROZEN — see the repo README |
180
+ | **[dsh-background-agents](https://github.com/PerryLink/dsh-background-agents)** | 🚫 RETIRED — see the repo README |
181
+ | **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 RETIRED — see the repo README |
182
+ | **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 RETIRED — see the repo README |
183
+
184
+ </details>
185
+
186
+ ## License
187
+
188
+ [Apache License 2.0](LICENSE) © 2026 dsh-payroll-audit contributors.