aero-agent-roles 1.2.0 → 1.2.2
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/LICENSE +202 -0
- package/README.md +1 -1
- package/lib/catalog.js +2 -2
- package/lib/install.js +5 -0
- package/manifest.json +1 -1
- package/package.json +5 -3
- package/roles/adcs-engineer/cli.py +1 -1
- package/roles/aerodynamics-engineer/cli.py +1 -1
- package/roles/aircraft-design-engineer/cli.py +1 -1
- package/roles/aircraft-performance-engineer/cli.py +1 -1
- package/roles/aircraft-systems-sizing-engineer/cli.py +1 -1
- package/roles/airworthiness-compliance-engineer/cli.py +1 -1
- package/roles/as9100-quality-auditor/cli.py +1 -1
- package/roles/autopilot-control-engineer/cli.py +1 -1
- package/roles/boundary-layer-engineer/cli.py +1 -1
- package/roles/composites-structures-engineer/cli.py +1 -1
- package/roles/data-bus-avionics-engineer/cli.py +1 -1
- package/roles/do160-environmental-engineer/cli.py +1 -1
- package/roles/do178c-cert-engineer/cli.py +1 -1
- package/roles/do254-hardware-engineer/ROLE.md +4 -4
- package/roles/do254-hardware-engineer/cli.py +3 -3
- package/roles/do254-hardware-engineer/core/do254_hardware_core.py +4 -4
- package/roles/do254-hardware-engineer/tests/test_do254_bundle_profile.py +2 -2
- package/roles/do254-hardware-engineer/tests/test_role_do254_hardware.py +2 -2
- package/roles/engineering-analysis-engineer/cli.py +1 -1
- package/roles/fem-analysis-engineer/cli.py +1 -1
- package/roles/flight-management-engineer/cli.py +1 -1
- package/roles/flight-mechanics-engineer/cli.py +1 -1
- package/roles/flight-software-engineer/cli.py +1 -1
- package/roles/flight-test-engineer/cli.py +1 -1
- package/roles/flight-test-performance-engineer/cli.py +1 -1
- package/roles/flight-test-planning-engineer/cli.py +1 -1
- package/roles/gnc-engineer/cli.py +1 -1
- package/roles/guidance-engineer/cli.py +1 -1
- package/roles/high-speed-aerodynamics-engineer/cli.py +1 -1
- package/roles/mbse-modeling-engineer/cli.py +1 -1
- package/roles/navigation-engineer/cli.py +1 -1
- package/roles/ndt-engineer/cli.py +1 -1
- package/roles/numerical-analysis-engineer/cli.py +1 -1
- package/roles/propulsion-engineer/cli.py +1 -1
- package/roles/quality-management-engineer/cli.py +1 -1
- package/roles/rocket-propulsion-engineer/cli.py +1 -1
- package/roles/safety-assessment-engineer/cli.py +1 -1
- package/roles/space-systems-engineer/ROLE.md +2 -2
- package/roles/space-systems-engineer/cli.py +1 -1
- package/roles/space-systems-engineer/tests/test_role_space_systems_engineer.py +1 -1
- package/roles/stability-control-flight-test-engineer/cli.py +1 -1
- package/roles/state-estimation-engineer/cli.py +3 -1
- package/roles/structures-loads-engineer/cli.py +1 -1
- package/roles/systems-integration-engineer/ROLE.md +2 -2
- package/roles/systems-integration-engineer/cli.py +1 -1
- package/roles/systems-integration-engineer/tests/test_role_systems_integration_engineer.py +1 -1
- package/scripts/evidence.py +198 -0
- package/scripts/prepack.js +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**The role layer for aerospace engineering agents** — professional roles that bind verified [Aero Agent Skills](https://github.com/ashfordeOU/aero-agent-skills) into end-to-end deliverables, with evidence gates and a human sign-off stop, shipped as an npm CLI and an MCP server. Built and maintained by [Ashforde OÜ](https://ashforde.org).
|
|
4
4
|
|
|
5
|
-
>
|
|
5
|
+
> Published on npm as [`aero-agent-roles`](https://www.npmjs.com/package/aero-agent-roles). Install with `npm i -g aero-agent-roles`, then run `aero-roles --help`.
|
|
6
6
|
|
|
7
7
|
Full role bank, figures, and provenance: [github.com/ashfordeOU/aero-agent-roles](https://github.com/ashfordeOU/aero-agent-roles) · [ashforde.org/aeroagentroles](https://ashforde.org/aeroagentroles)
|
|
8
8
|
|
package/lib/catalog.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Roles are adopted deliberately, not routed by a trigger description the
|
|
5
5
|
// way Aero Agent Skills' SKILL.md files are (ROLE.md has no `description`
|
|
6
6
|
// field) — search() here is a plain token-overlap match over title,
|
|
7
|
-
// deliverable_type, and
|
|
7
|
+
// deliverable_type, domain and the standards a role is gated on, useful for "what role fits this job"
|
|
8
8
|
// browsing, not a claimed parity port of any evaluated router.
|
|
9
9
|
'use strict';
|
|
10
10
|
|
|
@@ -70,7 +70,7 @@ class Catalog {
|
|
|
70
70
|
let t = this._tok.get(role.slug);
|
|
71
71
|
if (!t) {
|
|
72
72
|
t = {
|
|
73
|
-
haystack: new Set(tokens(`${role.title} ${role.deliverable_type} ${role.domain} ${role.slug}`)),
|
|
73
|
+
haystack: new Set(tokens(`${role.title} ${role.deliverable_type} ${role.domain} ${role.slug} ${(role.standards || []).join(' ')}`)),
|
|
74
74
|
};
|
|
75
75
|
this._tok.set(role.slug, t);
|
|
76
76
|
}
|
package/lib/install.js
CHANGED
|
@@ -29,6 +29,7 @@ function install(catalog, slugs, opts) {
|
|
|
29
29
|
}
|
|
30
30
|
return r;
|
|
31
31
|
});
|
|
32
|
+
const evidencePy = path.join(catalog.root, '..', 'scripts', 'evidence.py');
|
|
32
33
|
fs.mkdirSync(dest, { recursive: true });
|
|
33
34
|
const installed = [];
|
|
34
35
|
for (const r of selection) {
|
|
@@ -39,6 +40,10 @@ function install(catalog, slugs, opts) {
|
|
|
39
40
|
fs.symlinkSync(src, dst, 'dir');
|
|
40
41
|
} else {
|
|
41
42
|
fs.cpSync(src, dst, { recursive: true, force: true });
|
|
43
|
+
// cli.py imports evidence from ../../scripts, which does not exist
|
|
44
|
+
// beside a copied role. Its core/ directory is also on the import
|
|
45
|
+
// path, so the copy carries its own evidence.py there.
|
|
46
|
+
fs.copyFileSync(evidencePy, path.join(dst, 'core', 'evidence.py'));
|
|
42
47
|
}
|
|
43
48
|
installed.push({ slug: r.slug, folder: r.slug });
|
|
44
49
|
}
|
package/manifest.json
CHANGED
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
],
|
|
196
196
|
"skills_bound": 4,
|
|
197
197
|
"tests": 38,
|
|
198
|
-
"stage_preview": "do254/hardware-planning -> do254/requirements-capture -> do254/verification -> do254/configuration-
|
|
198
|
+
"stage_preview": "do254/hardware-planning -> do254/requirements-capture -> do254/hardware-verification -> do254/hardware-configuration-manag -> core engine"
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
"slug": "engineering-analysis-engineer",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aero-agent-roles",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "The role layer for aerospace engineering agents: professional roles that bind verified Aero Agent Skills into end-to-end deliverables, with evidence gates and a human sign-off. A CLI and an MCP server. By Ashforde OU.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Ashforde OU <contact@ashforde.org> (https://ashforde.org)",
|
|
@@ -16,9 +16,11 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"bin/",
|
|
18
18
|
"lib/",
|
|
19
|
+
"scripts/",
|
|
19
20
|
"manifest.json",
|
|
20
21
|
"roles/",
|
|
21
|
-
"NOTICE"
|
|
22
|
+
"NOTICE",
|
|
23
|
+
"LICENSE"
|
|
22
24
|
],
|
|
23
25
|
"scripts": {
|
|
24
26
|
"prepack": "node scripts/prepack.js",
|
|
@@ -43,4 +45,4 @@
|
|
|
43
45
|
"systems-engineering",
|
|
44
46
|
"skills-library"
|
|
45
47
|
]
|
|
46
|
-
}
|
|
48
|
+
}
|
|
@@ -27,7 +27,7 @@ import sys
|
|
|
27
27
|
|
|
28
28
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
29
29
|
"core"))
|
|
30
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
30
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
31
31
|
"..", "..", "scripts"))
|
|
32
32
|
import adcs_core as core # noqa: E402
|
|
33
33
|
import evidence # noqa: E402
|
|
@@ -22,7 +22,7 @@ import os
|
|
|
22
22
|
import sys
|
|
23
23
|
|
|
24
24
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
25
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
25
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
26
26
|
"..", "..", "scripts"))
|
|
27
27
|
import aerodynamics_core as core # noqa: E402
|
|
28
28
|
import evidence # noqa: E402
|
|
@@ -19,7 +19,7 @@ import os
|
|
|
19
19
|
import sys
|
|
20
20
|
|
|
21
21
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
22
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
22
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
23
23
|
"..", "..", "scripts"))
|
|
24
24
|
import aircraft_design_core as core # noqa: E402
|
|
25
25
|
import evidence # noqa: E402
|
|
@@ -21,7 +21,7 @@ import os
|
|
|
21
21
|
import sys
|
|
22
22
|
|
|
23
23
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
24
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
24
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
25
25
|
"..", "..", "scripts"))
|
|
26
26
|
import aircraft_performance_core as core # noqa: E402
|
|
27
27
|
import evidence # noqa: E402
|
|
@@ -30,7 +30,7 @@ import sys
|
|
|
30
30
|
|
|
31
31
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
32
32
|
"core"))
|
|
33
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
33
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
34
34
|
"..", "..", "scripts"))
|
|
35
35
|
import aircraft_systems_sizing_core as core # noqa: E402
|
|
36
36
|
import evidence # noqa: E402
|
|
@@ -16,7 +16,7 @@ import os
|
|
|
16
16
|
import sys
|
|
17
17
|
|
|
18
18
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
19
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
19
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
20
20
|
"..", "..", "scripts"))
|
|
21
21
|
import airworthiness_core as core # noqa: E402
|
|
22
22
|
import evidence # noqa: E402
|
|
@@ -17,7 +17,7 @@ import os
|
|
|
17
17
|
import sys
|
|
18
18
|
|
|
19
19
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
20
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
20
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
21
21
|
"..", "..", "scripts"))
|
|
22
22
|
import as9100_core as core
|
|
23
23
|
import evidence # noqa: E402
|
|
@@ -20,7 +20,7 @@ import sys
|
|
|
20
20
|
|
|
21
21
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
22
22
|
"core"))
|
|
23
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
23
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
24
24
|
"..", "..", "scripts"))
|
|
25
25
|
import autopilot_control_engineer_core as core # noqa: E402
|
|
26
26
|
import evidence # noqa: E402
|
|
@@ -29,7 +29,7 @@ import sys
|
|
|
29
29
|
|
|
30
30
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
31
31
|
"core"))
|
|
32
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
32
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
33
33
|
"..", "..", "scripts"))
|
|
34
34
|
import boundary_layer_engineer_core as core # noqa: E402
|
|
35
35
|
import evidence # noqa: E402
|
|
@@ -28,7 +28,7 @@ import sys
|
|
|
28
28
|
|
|
29
29
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
30
30
|
"core"))
|
|
31
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
31
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
32
32
|
"..", "..", "scripts"))
|
|
33
33
|
import composites_structures_core as core # noqa: E402
|
|
34
34
|
import evidence # noqa: E402
|
|
@@ -27,7 +27,7 @@ import sys
|
|
|
27
27
|
|
|
28
28
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
29
29
|
"core"))
|
|
30
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
30
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
31
31
|
"..", "..", "scripts"))
|
|
32
32
|
import data_bus_avionics_core as core # noqa: E402
|
|
33
33
|
import evidence # noqa: E402
|
|
@@ -16,7 +16,7 @@ import sys
|
|
|
16
16
|
|
|
17
17
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
18
18
|
"core"))
|
|
19
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
19
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
20
20
|
"..", "..", "scripts"))
|
|
21
21
|
import do160_environmental_core as core # noqa: E402
|
|
22
22
|
import evidence # noqa: E402
|
|
@@ -13,7 +13,7 @@ import os
|
|
|
13
13
|
import sys
|
|
14
14
|
|
|
15
15
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
16
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
16
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
17
17
|
"..", "..", "scripts"))
|
|
18
18
|
import do178c_core as core # noqa: E402
|
|
19
19
|
import evidence # noqa: E402
|
|
@@ -14,8 +14,8 @@ standards_bound:
|
|
|
14
14
|
skills_bound:
|
|
15
15
|
- avionics/do254/hardware-planning
|
|
16
16
|
- avionics/do254/requirements-capture
|
|
17
|
-
- avionics/do254/verification
|
|
18
|
-
- avionics/do254/configuration-management
|
|
17
|
+
- avionics/do254/hardware-verification
|
|
18
|
+
- avionics/do254/hardware-configuration-management
|
|
19
19
|
tools_allowed: [stdlib, offline-file-processing]
|
|
20
20
|
forbidden:
|
|
21
21
|
- "issue certification approval"
|
|
@@ -65,8 +65,8 @@ The role produces:
|
|
|
65
65
|
|---|---|---|
|
|
66
66
|
| 1. Hardware planning | do254/hardware-planning | AEH class (simple/complex), PHAC scope, artifact set |
|
|
67
67
|
| 2. Requirements capture | do254/requirements-capture | requirement issue list, derived-vs-allocated classification, readiness verdict |
|
|
68
|
-
| 3. Verification strategy | do254/verification | verification methods, coverage ratio (0.98 A/B, 0.95 C/D), independence |
|
|
69
|
-
| 4. Configuration management | do254/configuration-management | change class, ECR/ECO path, HCI entries, baseline control |
|
|
68
|
+
| 3. Verification strategy | do254/hardware-verification | verification methods, coverage ratio (0.98 A/B, 0.95 C/D), independence |
|
|
69
|
+
| 4. Configuration management | do254/hardware-configuration-management | change class, ECR/ECO path, HCI entries, baseline control |
|
|
70
70
|
| 5. Process assurance | core engine | process assurance records plan |
|
|
71
71
|
| 6. Certification liaison | core engine | PHAC input, open items for the cert authority |
|
|
72
72
|
|
|
@@ -19,7 +19,7 @@ import sys
|
|
|
19
19
|
|
|
20
20
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
21
21
|
"core"))
|
|
22
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
22
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
23
23
|
"..", "..", "scripts"))
|
|
24
24
|
import do254_hardware_core as core # noqa: E402
|
|
25
25
|
import evidence # noqa: E402
|
|
@@ -31,8 +31,8 @@ HAS_SKILLS = os.path.isdir(os.path.join(AEROSKILLS, "skills"))
|
|
|
31
31
|
# Bound avionics/do254 leaves and their logic files.
|
|
32
32
|
DO254_LEAVES = {
|
|
33
33
|
"hardware-planning": "avionics/do254/hardware-planning",
|
|
34
|
-
"verification": "avionics/do254/verification",
|
|
35
|
-
"configuration-management": "avionics/do254/configuration-management",
|
|
34
|
+
"verification": "avionics/do254/hardware-verification",
|
|
35
|
+
"configuration-management": "avionics/do254/hardware-configuration-management",
|
|
36
36
|
"requirements-capture": "avionics/do254/requirements-capture",
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -47,13 +47,13 @@ DALS = ("A", "B", "C", "D", "E")
|
|
|
47
47
|
|
|
48
48
|
# DO-254 verification logic: requirements-based test coverage ratio by
|
|
49
49
|
# level: 0.98 at levels A/B, 0.95 at levels C/D (as encoded in the bound
|
|
50
|
-
# avionics/do254/verification leaf). Level E (no safety effect) is
|
|
50
|
+
# avionics/do254/hardware-verification leaf). Level E (no safety effect) is
|
|
51
51
|
# typically outside DO-254 scope: no coverage target.
|
|
52
52
|
COVERAGE_RATIO = {"A": 0.98, "B": 0.98, "C": 0.95, "D": 0.95, "E": None}
|
|
53
53
|
|
|
54
54
|
# Verification independence by DAL: independent verification expected at
|
|
55
55
|
# the higher hardware design assurance levels (A/B) per the bound
|
|
56
|
-
# avionics/do254/verification leaf.
|
|
56
|
+
# avionics/do254/hardware-verification leaf.
|
|
57
57
|
INDEPENDENT = {"A": True, "B": True, "C": False, "D": False, "E": False}
|
|
58
58
|
|
|
59
59
|
# Life cycle data set by DAL: the hardware life cycle data items a PHAC
|
|
@@ -218,7 +218,7 @@ def planning_artifacts(classification: str) -> list:
|
|
|
218
218
|
|
|
219
219
|
|
|
220
220
|
# ---------------------------------------------------------------------------
|
|
221
|
-
# Verification rules (grounded in avionics/do254/verification leaf)
|
|
221
|
+
# Verification rules (grounded in avionics/do254/hardware-verification leaf)
|
|
222
222
|
# ---------------------------------------------------------------------------
|
|
223
223
|
|
|
224
224
|
def _check_dal(dal: str) -> None:
|
|
@@ -284,7 +284,7 @@ def structural_methods_text(dal: str) -> str:
|
|
|
284
284
|
|
|
285
285
|
|
|
286
286
|
# ---------------------------------------------------------------------------
|
|
287
|
-
# Configuration management (grounded in avionics/do254/configuration-management)
|
|
287
|
+
# Configuration management (grounded in avionics/do254/hardware-configuration-management)
|
|
288
288
|
# ---------------------------------------------------------------------------
|
|
289
289
|
|
|
290
290
|
VALID_HARDWARE_CLASSES = ("simple", "complex")
|
|
@@ -91,8 +91,8 @@ class TestDo254BundleProfile(unittest.TestCase):
|
|
|
91
91
|
# all four bound leaves dispatch at least one logic cross-check
|
|
92
92
|
leaves = {row["leaf"] for row in p["skills"]}
|
|
93
93
|
for leaf in ("avionics/do254/hardware-planning",
|
|
94
|
-
"avionics/do254/verification",
|
|
95
|
-
"avionics/do254/configuration-management",
|
|
94
|
+
"avionics/do254/hardware-verification",
|
|
95
|
+
"avionics/do254/hardware-configuration-management",
|
|
96
96
|
"avionics/do254/requirements-capture"):
|
|
97
97
|
self.assertIn(leaf, leaves, f"no dispatch row for {leaf}")
|
|
98
98
|
for row in p["skills"]:
|
|
@@ -26,8 +26,8 @@ PHAC_TEMPLATE = os.path.join(ROLE_DIR, "templates", "phac-template.md")
|
|
|
26
26
|
EXPECTED_BOUND = [
|
|
27
27
|
"avionics/do254/hardware-planning",
|
|
28
28
|
"avionics/do254/requirements-capture",
|
|
29
|
-
"avionics/do254/verification",
|
|
30
|
-
"avionics/do254/configuration-management",
|
|
29
|
+
"avionics/do254/hardware-verification",
|
|
30
|
+
"avionics/do254/hardware-configuration-management",
|
|
31
31
|
]
|
|
32
32
|
|
|
33
33
|
EXPECTED_STAGES = [
|
|
@@ -21,7 +21,7 @@ import sys
|
|
|
21
21
|
|
|
22
22
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
23
23
|
"core"))
|
|
24
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
24
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
25
25
|
"..", "..", "scripts"))
|
|
26
26
|
import engineering_analysis_engineer_core as core # noqa: E402
|
|
27
27
|
import evidence # noqa: E402
|
|
@@ -29,7 +29,7 @@ import sys
|
|
|
29
29
|
|
|
30
30
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
31
31
|
"core"))
|
|
32
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
32
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
33
33
|
"..", "..", "scripts"))
|
|
34
34
|
import fem_analysis_core as core # noqa: E402
|
|
35
35
|
import evidence # noqa: E402
|
|
@@ -26,7 +26,7 @@ import sys
|
|
|
26
26
|
|
|
27
27
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
28
28
|
"core"))
|
|
29
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
29
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
30
30
|
"..", "..", "scripts"))
|
|
31
31
|
import flight_management_core as core # noqa: E402
|
|
32
32
|
import evidence # noqa: E402
|
|
@@ -20,7 +20,7 @@ import sys
|
|
|
20
20
|
|
|
21
21
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
22
22
|
"core"))
|
|
23
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
23
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
24
24
|
"..", "..", "scripts"))
|
|
25
25
|
import flight_mechanics_core as core # noqa: E402
|
|
26
26
|
import evidence # noqa: E402
|
|
@@ -31,7 +31,7 @@ import sys
|
|
|
31
31
|
|
|
32
32
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
33
33
|
"core"))
|
|
34
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
34
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
35
35
|
"..", "..", "scripts"))
|
|
36
36
|
import flight_software_core as core # noqa: E402
|
|
37
37
|
import evidence # noqa: E402
|
|
@@ -16,7 +16,7 @@ import os
|
|
|
16
16
|
import sys
|
|
17
17
|
|
|
18
18
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
19
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
19
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
20
20
|
"..", "..", "scripts"))
|
|
21
21
|
import flight_test_core as core # noqa: E402
|
|
22
22
|
import evidence # noqa: E402
|
|
@@ -22,7 +22,7 @@ import sys
|
|
|
22
22
|
|
|
23
23
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
24
24
|
"core"))
|
|
25
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
25
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
26
26
|
"..", "..", "scripts"))
|
|
27
27
|
import flight_test_performance_core as core # noqa: E402
|
|
28
28
|
import evidence # noqa: E402
|
|
@@ -26,7 +26,7 @@ import sys
|
|
|
26
26
|
|
|
27
27
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
28
28
|
"core"))
|
|
29
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
29
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
30
30
|
"..", "..", "scripts"))
|
|
31
31
|
import flight_test_planning_core as core # noqa: E402
|
|
32
32
|
import evidence # noqa: E402
|
|
@@ -17,7 +17,7 @@ import sys
|
|
|
17
17
|
|
|
18
18
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
19
19
|
"core"))
|
|
20
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
20
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
21
21
|
"..", "..", "scripts"))
|
|
22
22
|
import gnc_core as core # noqa: E402
|
|
23
23
|
import evidence # noqa: E402
|
|
@@ -23,7 +23,7 @@ import sys
|
|
|
23
23
|
|
|
24
24
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
25
25
|
"core"))
|
|
26
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
26
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
27
27
|
"..", "..", "scripts"))
|
|
28
28
|
import guidance_core as core # noqa: E402
|
|
29
29
|
import evidence # noqa: E402
|
|
@@ -29,7 +29,7 @@ import sys
|
|
|
29
29
|
|
|
30
30
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
31
31
|
"core"))
|
|
32
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
32
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
33
33
|
"..", "..", "scripts"))
|
|
34
34
|
import high_speed_aero_core as core # noqa: E402
|
|
35
35
|
import evidence # noqa: E402
|
|
@@ -27,7 +27,7 @@ import sys
|
|
|
27
27
|
|
|
28
28
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
29
29
|
"core"))
|
|
30
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
30
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
31
31
|
"..", "..", "scripts"))
|
|
32
32
|
import mbse_modeling_core as core # noqa: E402
|
|
33
33
|
import evidence # noqa: E402
|
|
@@ -18,7 +18,7 @@ import sys
|
|
|
18
18
|
|
|
19
19
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
20
20
|
"core"))
|
|
21
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
21
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
22
22
|
"..", "..", "scripts"))
|
|
23
23
|
import navigation_engineer_core as core # noqa: E402
|
|
24
24
|
import evidence # noqa: E402
|
|
@@ -26,7 +26,7 @@ import sys
|
|
|
26
26
|
|
|
27
27
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
28
28
|
"core"))
|
|
29
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
29
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
30
30
|
"..", "..", "scripts"))
|
|
31
31
|
import ndt_core as core # noqa: E402
|
|
32
32
|
import evidence # noqa: E402
|
|
@@ -31,7 +31,7 @@ import sys
|
|
|
31
31
|
|
|
32
32
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
33
33
|
"core"))
|
|
34
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
34
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
35
35
|
"..", "..", "scripts"))
|
|
36
36
|
import numerical_analysis_core as core # noqa: E402
|
|
37
37
|
import evidence # noqa: E402
|
|
@@ -22,7 +22,7 @@ import os
|
|
|
22
22
|
import sys
|
|
23
23
|
|
|
24
24
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
25
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
25
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
26
26
|
"..", "..", "scripts"))
|
|
27
27
|
import propulsion_core as core # noqa: E402
|
|
28
28
|
import evidence # noqa: E402
|
|
@@ -27,7 +27,7 @@ import sys
|
|
|
27
27
|
|
|
28
28
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
29
29
|
"core"))
|
|
30
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
30
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
31
31
|
"..", "..", "scripts"))
|
|
32
32
|
import quality_management_core as core # noqa: E402
|
|
33
33
|
import evidence # noqa: E402
|
|
@@ -29,7 +29,7 @@ import sys
|
|
|
29
29
|
|
|
30
30
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
31
31
|
"core"))
|
|
32
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
32
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
33
33
|
"..", "..", "scripts"))
|
|
34
34
|
import rocket_propulsion_core as core # noqa: E402
|
|
35
35
|
import evidence # noqa: E402
|
|
@@ -19,7 +19,7 @@ import os
|
|
|
19
19
|
import sys
|
|
20
20
|
|
|
21
21
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
22
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
22
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
23
23
|
"..", "..", "scripts"))
|
|
24
24
|
import safety_assessment_core as core # noqa: E402
|
|
25
25
|
import evidence # noqa: E402
|
|
@@ -52,7 +52,7 @@ skills_bound:
|
|
|
52
52
|
- space-systems/subsystems/thermal-design
|
|
53
53
|
- space-systems/subsystems/propellant-tank-sizing
|
|
54
54
|
- space-systems/subsystems/command-data-handling
|
|
55
|
-
- space-systems/ecss/systems-engineering
|
|
55
|
+
- space-systems/ecss/e10-systems-engineering
|
|
56
56
|
- space-systems/ecss/software-engineering
|
|
57
57
|
- space-systems/ecss/software-verification
|
|
58
58
|
tools_allowed: [stdlib, offline-file-processing]
|
|
@@ -104,7 +104,7 @@ budgets. Do NOT use for aircraft certification or airframe roles.
|
|
|
104
104
|
| 9. Power/thermal | power-thermal-budget + solar-array-sizing + spacecraft-battery-sizing + thermal-design | power/thermal budgets |
|
|
105
105
|
| 10. Comms | communication-link-budget + antenna-aperture-sizing | link budget |
|
|
106
106
|
| 11. Propulsion/C&DH | propellant-tank-sizing + command-data-handling | propulsion sizing, C&DH |
|
|
107
|
-
| 12. ECSS context | ecss/systems-engineering + ecss/software-engineering + ecss/software-verification | process + software context |
|
|
107
|
+
| 12. ECSS context | ecss/e10-systems-engineering + ecss/software-engineering + ecss/software-verification | process + software context |
|
|
108
108
|
| 13. Report | (all above) | mission + subsystem reports |
|
|
109
109
|
|
|
110
110
|
## Evidence gates
|
|
@@ -25,7 +25,7 @@ import os
|
|
|
25
25
|
import sys
|
|
26
26
|
|
|
27
27
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
28
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
28
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
29
29
|
"..", "..", "scripts"))
|
|
30
30
|
import space_systems_core as core # noqa: E402
|
|
31
31
|
import evidence # noqa: E402
|
|
@@ -54,7 +54,7 @@ EXPECTED_BOUND = [
|
|
|
54
54
|
"space-systems/subsystems/thermal-design",
|
|
55
55
|
"space-systems/subsystems/propellant-tank-sizing",
|
|
56
56
|
"space-systems/subsystems/command-data-handling",
|
|
57
|
-
"space-systems/ecss/systems-engineering",
|
|
57
|
+
"space-systems/ecss/e10-systems-engineering",
|
|
58
58
|
"space-systems/ecss/software-engineering",
|
|
59
59
|
"space-systems/ecss/software-verification"
|
|
60
60
|
]
|
|
@@ -24,7 +24,7 @@ import os
|
|
|
24
24
|
import sys
|
|
25
25
|
|
|
26
26
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "core"))
|
|
27
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
27
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
28
28
|
"..", "..", "scripts"))
|
|
29
29
|
import stability_control_flight_test_core as core # noqa: E402
|
|
30
30
|
import evidence # noqa: E402
|
|
@@ -20,6 +20,8 @@ estimation-filtering leaf logic files and cross-checks identical
|
|
|
20
20
|
computations (alpha-beta gains, Kalman recursion, EKF Jacobian, NEES,
|
|
21
21
|
effective sample size); agreement is recorded in provenance.json.
|
|
22
22
|
"""
|
|
23
|
+
from __future__ import annotations # PEP 604 unions (dict | None) on Python 3.9
|
|
24
|
+
|
|
23
25
|
import argparse
|
|
24
26
|
import importlib.util
|
|
25
27
|
import json
|
|
@@ -28,7 +30,7 @@ import sys
|
|
|
28
30
|
|
|
29
31
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
30
32
|
"core"))
|
|
31
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
33
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
32
34
|
"..", "..", "scripts"))
|
|
33
35
|
import state_estimation_core as core # noqa: E402
|
|
34
36
|
import evidence # noqa: E402
|
|
@@ -26,7 +26,7 @@ import sys
|
|
|
26
26
|
|
|
27
27
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
28
28
|
"core"))
|
|
29
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
29
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
30
30
|
"..", "..", "scripts"))
|
|
31
31
|
import structures_loads_core as core # noqa: E402
|
|
32
32
|
import evidence # noqa: E402
|
|
@@ -20,7 +20,7 @@ skills_bound:
|
|
|
20
20
|
- systems-engineering-safety/arp4754a/derived-requirements
|
|
21
21
|
- systems-engineering-safety/arp4754a/validation
|
|
22
22
|
- systems-engineering-safety/arp4754a/verification-planning
|
|
23
|
-
- systems-engineering-safety/arp4754a/configuration-management
|
|
23
|
+
- systems-engineering-safety/arp4754a/systems-configuration-management
|
|
24
24
|
tools_allowed: [stdlib, offline-file-processing]
|
|
25
25
|
forbidden:
|
|
26
26
|
- "issue certification approval"
|
|
@@ -85,7 +85,7 @@ The role produces:
|
|
|
85
85
|
| 5. Derived requirements | arp4754a/derived-requirements | derived requirement register with source/rationale obligation |
|
|
86
86
|
| 6. Validation | arp4754a/validation | validation closure score, independence need at A/B |
|
|
87
87
|
| 7. Integration verification | arp4754a/verification-planning | acceptable methods per level, method-to-requirement coverage |
|
|
88
|
-
| 8. Configuration management | arp4754a/configuration-management | CI baseline, change classification (major/minor), change log |
|
|
88
|
+
| 8. Configuration management | arp4754a/systems-configuration-management | CI baseline, change classification (major/minor), change log |
|
|
89
89
|
| 9. Plan + gates | (all above) | the System Development Assurance and Integration Plan + bundle |
|
|
90
90
|
|
|
91
91
|
## Evidence gates
|
|
@@ -28,7 +28,7 @@ import sys
|
|
|
28
28
|
|
|
29
29
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
30
30
|
"core"))
|
|
31
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.
|
|
31
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
32
32
|
"..", "..", "scripts"))
|
|
33
33
|
import systems_integration_core as core # noqa: E402
|
|
34
34
|
import evidence # noqa: E402
|
|
@@ -40,7 +40,7 @@ EXPECTED_BOUND = [
|
|
|
40
40
|
"systems-engineering-safety/arp4754a/derived-requirements",
|
|
41
41
|
"systems-engineering-safety/arp4754a/validation",
|
|
42
42
|
"systems-engineering-safety/arp4754a/verification-planning",
|
|
43
|
-
"systems-engineering-safety/arp4754a/configuration-management",
|
|
43
|
+
"systems-engineering-safety/arp4754a/systems-configuration-management",
|
|
44
44
|
]
|
|
45
45
|
|
|
46
46
|
EXPECTED_STAGES = [
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""evidence.py - shared evidence-bundle writer for role CLIs.
|
|
3
|
+
|
|
4
|
+
Implements docs/PROTOCOL.md v1: every role emits
|
|
5
|
+
deliverable.md + evidence/{model.json, gates.json, provenance.json}
|
|
6
|
+
so any harness can consume results programmatically.
|
|
7
|
+
|
|
8
|
+
Usage (from a role cli.py):
|
|
9
|
+
import sys, os
|
|
10
|
+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
|
11
|
+
"..", "..", "scripts"))
|
|
12
|
+
import evidence
|
|
13
|
+
evidence.write_bundle(out_dir, role_slug, model, gates, provenance)
|
|
14
|
+
"""
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
import json
|
|
18
|
+
import os
|
|
19
|
+
from datetime import datetime, timezone
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _utcnow() -> str:
|
|
23
|
+
return datetime.now(timezone.utc).isoformat(timespec="seconds")
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def load_profile(path: str) -> dict | None:
|
|
27
|
+
"""Load and validate a program profile JSON (docs/PROFILE-SCHEMA.md)."""
|
|
28
|
+
if not path or not os.path.exists(path):
|
|
29
|
+
return None
|
|
30
|
+
with open(path) as f:
|
|
31
|
+
p = json.load(f)
|
|
32
|
+
if not isinstance(p, dict) or not p.get("customer"):
|
|
33
|
+
raise ValueError("profile must be a JSON object with 'customer'")
|
|
34
|
+
return p
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def profile_header_block(profile: dict) -> str:
|
|
38
|
+
"""Render a markdown header block for a program profile.
|
|
39
|
+
|
|
40
|
+
Returns "" when profile is None. NEVER an approval — always a DRAFT
|
|
41
|
+
context header for human review.
|
|
42
|
+
"""
|
|
43
|
+
if not profile:
|
|
44
|
+
return ""
|
|
45
|
+
lines = [
|
|
46
|
+
"## Program context (profile)",
|
|
47
|
+
"",
|
|
48
|
+
f"- Customer: {profile.get('customer', '')}",
|
|
49
|
+
f"- Program: {profile.get('program', '')}",
|
|
50
|
+
f"- Basis: {profile.get('basis', '')} · "
|
|
51
|
+
f"Authority: {profile.get('authority', '')}",
|
|
52
|
+
]
|
|
53
|
+
if profile.get("der"):
|
|
54
|
+
lines.append(f"- DER/CVE: {profile['der']}")
|
|
55
|
+
if profile.get("document_prefix"):
|
|
56
|
+
rev = profile.get("revision", "")
|
|
57
|
+
lines.append(f"- Document: {profile['document_prefix']}"
|
|
58
|
+
+ (f" {rev}" if rev else ""))
|
|
59
|
+
if profile.get("standards"):
|
|
60
|
+
lines.append("- Standards: " + ", ".join(profile["standards"]))
|
|
61
|
+
if profile.get("notes"):
|
|
62
|
+
lines.append(f"- Notes: {profile['notes']}")
|
|
63
|
+
lines += [
|
|
64
|
+
"",
|
|
65
|
+
"> This document is a DRAFT for human review within the program "
|
|
66
|
+
"sign-off chain. It is not an approval and carries no regulatory "
|
|
67
|
+
"authority.",
|
|
68
|
+
"",
|
|
69
|
+
]
|
|
70
|
+
return "\n".join(lines)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def dispatch_crosscheck(leaf: str, skill_fn: str, core_fn,
|
|
74
|
+
tolerance: float = 1e-6,
|
|
75
|
+
skills_root: str = "") -> dict | None:
|
|
76
|
+
"""Run a bound AeroSkills leaf's logic fn and compare to the core fn.
|
|
77
|
+
|
|
78
|
+
Both functions are called with the same kwargs. Returns a provenance
|
|
79
|
+
row: {leaf, logic_file, function, dispatched, core_value,
|
|
80
|
+
skill_value, delta, agrees}. Returns None if the skill logic file or
|
|
81
|
+
function is unavailable.
|
|
82
|
+
|
|
83
|
+
leaf e.g. 'structures/loads/gust-maneuver-loads'
|
|
84
|
+
skill_fn the function name inside the leaf's *logic.py
|
|
85
|
+
core_fn a zero-arg callable returning the core's computed value
|
|
86
|
+
skills_root AeroSkills root (default: AEROSKILLS_DEV or ~/company-ops/aero-agent-skills)
|
|
87
|
+
"""
|
|
88
|
+
import importlib.util # local import (stdlib)
|
|
89
|
+
root = skills_root or os.environ.get(
|
|
90
|
+
"AEROSKILLS_DEV", os.path.expanduser("~/company-ops/aero-agent-skills"))
|
|
91
|
+
logic_dir = os.path.join(root, "skills", leaf, "scripts")
|
|
92
|
+
if not os.path.isdir(logic_dir):
|
|
93
|
+
return None
|
|
94
|
+
logic_files = sorted(f for f in os.listdir(logic_dir)
|
|
95
|
+
if f.endswith("_logic.py"))
|
|
96
|
+
if not logic_files:
|
|
97
|
+
return None
|
|
98
|
+
# try each logic file until one exposes the requested fn
|
|
99
|
+
for lf in logic_files:
|
|
100
|
+
path = os.path.join(logic_dir, lf)
|
|
101
|
+
spec = importlib.util.spec_from_file_location("role_dispatch", path)
|
|
102
|
+
mod = importlib.util.module_from_spec(spec)
|
|
103
|
+
try:
|
|
104
|
+
spec.loader.exec_module(mod)
|
|
105
|
+
except Exception:
|
|
106
|
+
continue
|
|
107
|
+
if not hasattr(mod, skill_fn):
|
|
108
|
+
continue
|
|
109
|
+
try:
|
|
110
|
+
skill_value = getattr(mod, skill_fn)()
|
|
111
|
+
core_value = core_fn()
|
|
112
|
+
if not isinstance(skill_value, (int, float)) or \
|
|
113
|
+
not isinstance(core_value, (int, float)):
|
|
114
|
+
continue
|
|
115
|
+
delta = abs(float(core_value) - float(skill_value))
|
|
116
|
+
return {
|
|
117
|
+
"leaf": leaf,
|
|
118
|
+
"logic_file": lf,
|
|
119
|
+
"function": skill_fn,
|
|
120
|
+
"dispatched": True,
|
|
121
|
+
"core_value": round(float(core_value), 6),
|
|
122
|
+
"skill_value": round(float(skill_value), 6),
|
|
123
|
+
"delta": round(delta, 9),
|
|
124
|
+
"agrees": delta <= tolerance,
|
|
125
|
+
"tolerance": tolerance,
|
|
126
|
+
}
|
|
127
|
+
except Exception:
|
|
128
|
+
continue
|
|
129
|
+
return None
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
def write_json(path: str, obj: dict) -> None:
|
|
133
|
+
os.makedirs(os.path.dirname(path), exist_ok=True)
|
|
134
|
+
with open(path, "w") as f:
|
|
135
|
+
json.dump(obj, f, indent=2, sort_keys=True)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def write_bundle(out_md: str, role: str, deliverable_type: str,
|
|
139
|
+
model: dict, gates: dict, provenance: dict) -> dict:
|
|
140
|
+
"""Write the evidence bundle next to the markdown deliverable.
|
|
141
|
+
|
|
142
|
+
out_md path of the deliverable .md (evidence/ goes beside it)
|
|
143
|
+
role role slug, e.g. "structures-loads-engineer"
|
|
144
|
+
model the computed content model (build_<deliverable>() result)
|
|
145
|
+
gates gates dict from check_<deliverable>() (has 'all_pass')
|
|
146
|
+
provenance provenance dict (core + skills + disclaimer)
|
|
147
|
+
|
|
148
|
+
Returns the paths written: {"model": ..., "gates": ..., "provenance": ...}
|
|
149
|
+
"""
|
|
150
|
+
ev_dir = os.path.join(os.path.dirname(os.path.abspath(out_md)), "evidence")
|
|
151
|
+
os.makedirs(ev_dir, exist_ok=True)
|
|
152
|
+
|
|
153
|
+
# Normalize gates into the protocol shape
|
|
154
|
+
gate_rows = []
|
|
155
|
+
for k, v in gates.items():
|
|
156
|
+
if k in ("all_pass", "exit_code", "checker"):
|
|
157
|
+
continue
|
|
158
|
+
if isinstance(v, dict):
|
|
159
|
+
gate_rows.append({"gate": k, "pass": bool(v.get("pass", v.get("ok", False))),
|
|
160
|
+
"detail": str(v.get("detail", ""))})
|
|
161
|
+
else:
|
|
162
|
+
gate_rows.append({"gate": k, "pass": bool(v)})
|
|
163
|
+
gates_payload = {
|
|
164
|
+
"schema_version": 1,
|
|
165
|
+
"role": role,
|
|
166
|
+
"checker": gates.get("checker", "check_<deliverable>"),
|
|
167
|
+
"gates": gate_rows,
|
|
168
|
+
"all_pass": bool(gates.get("all_pass", all(r["pass"] for r in gate_rows))),
|
|
169
|
+
"exit_code": 0 if gates.get("all_pass", all(r["pass"] for r in gate_rows)) else 1,
|
|
170
|
+
"checked_at": _utcnow(),
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
model_payload = dict(model or {})
|
|
174
|
+
model_payload.setdefault("schema_version", 1)
|
|
175
|
+
model_payload.setdefault("role", role)
|
|
176
|
+
model_payload.setdefault("deliverable_type", deliverable_type)
|
|
177
|
+
model_payload.setdefault("generated", _utcnow())
|
|
178
|
+
model_payload.setdefault("status", "draft-for-review")
|
|
179
|
+
# generator = the producing agent/role. The VERIFIER (gates.checker) must be
|
|
180
|
+
# independent of it (founder 2026-09-10): no bot grades its own output.
|
|
181
|
+
# The roles gates are deterministic Python checks, so they qualify; this
|
|
182
|
+
# field makes the relationship checkable by scripts/verify-independence.py.
|
|
183
|
+
model_payload.setdefault("generator", role)
|
|
184
|
+
|
|
185
|
+
prov_payload = dict(provenance or {})
|
|
186
|
+
prov_payload.setdefault("schema_version", 1)
|
|
187
|
+
prov_payload.setdefault("role", role)
|
|
188
|
+
prov_payload.setdefault("disclaimer",
|
|
189
|
+
"DRAFT for human review. Not an approval document.")
|
|
190
|
+
|
|
191
|
+
model_path = os.path.join(ev_dir, "model.json")
|
|
192
|
+
gates_path = os.path.join(ev_dir, "gates.json")
|
|
193
|
+
prov_path = os.path.join(ev_dir, "provenance.json")
|
|
194
|
+
write_json(model_path, model_payload)
|
|
195
|
+
write_json(gates_path, gates_payload)
|
|
196
|
+
write_json(prov_path, prov_payload)
|
|
197
|
+
|
|
198
|
+
return {"model": model_path, "gates": gates_path, "provenance": prov_path}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Runs on `npm pack` / `npm publish` from the repo checkout: copies the
|
|
2
|
+
// payload (roles tree, NOTICE) from the repo root into the package so the
|
|
3
|
+
// tarball is self-contained. The copy is gitignored — the repo tree stays
|
|
4
|
+
// the single source of truth.
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
const fs = require('node:fs');
|
|
8
|
+
const path = require('node:path');
|
|
9
|
+
|
|
10
|
+
const pkg = path.join(__dirname, '..');
|
|
11
|
+
const repo = path.join(pkg, '..', '..');
|
|
12
|
+
|
|
13
|
+
if (!fs.existsSync(path.join(repo, 'roles')) || !fs.existsSync(path.join(repo, 'manifest.json'))) {
|
|
14
|
+
console.error('prepack: must run from the aero-agent-roles repo checkout (roles/ not found two levels up)');
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
fs.rmSync(path.join(pkg, 'roles'), { recursive: true, force: true });
|
|
19
|
+
fs.cpSync(path.join(repo, 'roles'), path.join(pkg, 'roles'), { recursive: true });
|
|
20
|
+
fs.copyFileSync(path.join(repo, 'NOTICE'), path.join(pkg, 'NOTICE'));
|
|
21
|
+
// Apache-2.0 section 4(a): a copy of the licence goes with every copy of the
|
|
22
|
+
// work, and npm only picks LICENSE up from the package directory itself.
|
|
23
|
+
fs.copyFileSync(path.join(repo, 'LICENSE'), path.join(pkg, 'LICENSE'));
|
|
24
|
+
|
|
25
|
+
// scripts/evidence.py travels with the tarball. Every role's cli.py does
|
|
26
|
+
// `sys.path.insert(.., '../../scripts'); import evidence`, so without this the
|
|
27
|
+
// installed package has 38 CLIs that all die on import. Shipped 1.2.0 did.
|
|
28
|
+
fs.mkdirSync(path.join(pkg, 'scripts'), { recursive: true });
|
|
29
|
+
fs.copyFileSync(path.join(repo, 'scripts', 'evidence.py'),
|
|
30
|
+
path.join(pkg, 'scripts', 'evidence.py'));
|
|
31
|
+
|
|
32
|
+
// Strip Python bytecode caches: local test runs leave __pycache__/*.pyc
|
|
33
|
+
// behind, and a plain cpSync copies them straight into the tarball. Never
|
|
34
|
+
// ship compiled bytecode in a public package regardless of dev-tree state.
|
|
35
|
+
function stripPycache(dir) {
|
|
36
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
37
|
+
const full = path.join(dir, entry.name);
|
|
38
|
+
if (entry.isDirectory()) {
|
|
39
|
+
if (entry.name === '__pycache__') {
|
|
40
|
+
fs.rmSync(full, { recursive: true, force: true });
|
|
41
|
+
} else {
|
|
42
|
+
stripPycache(full);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
stripPycache(path.join(pkg, 'roles'));
|
|
48
|
+
|
|
49
|
+
console.log('prepack: bundled roles/, scripts/evidence.py, NOTICE, LICENSE from repo root (pycache stripped)');
|