Compare commits
158
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df7cb7fa47 | ||
|
|
287f2f8321 | ||
|
|
4672789f2b | ||
|
|
15894f4b04 | ||
|
|
e62b7dfdc2 | ||
|
|
9bd2e062f4 | ||
|
|
948621a65c | ||
|
|
50463ca716 | ||
|
|
4193056bdd | ||
|
|
20bfeb4f71 | ||
|
|
1dda6ea258 | ||
|
|
0a80f1c457 | ||
|
|
eb9294ef42 | ||
|
|
2359a88dba | ||
|
|
69b6c49a60 | ||
|
|
163e090ea5 | ||
|
|
9b26217dec | ||
|
|
ebf5e53c3c | ||
|
|
9783c54b2c | ||
|
|
0f9f7e3409 | ||
|
|
78c9f4a356 | ||
|
|
7996c35933 | ||
|
|
29e708ba2d | ||
|
|
f9fb04f947 | ||
|
|
77d1290258 | ||
|
|
946fc08906 | ||
|
|
7ecf9ec79a | ||
|
|
536559d651 | ||
|
|
c1314cdf90 | ||
|
|
ff8848d32d | ||
|
|
1565aa4ffb | ||
|
|
4e4bf6b859 | ||
|
|
5ec2f198a3 | ||
|
|
e32690799f | ||
|
|
2d889a211b | ||
|
|
50fdd97916 | ||
|
|
9842dcbb0e | ||
|
|
e384418ecc | ||
|
|
0eb37ef59b | ||
|
|
2ed62165b7 | ||
|
|
d46b794ab2 | ||
|
|
d65d3f5c4e | ||
|
|
8e5565d5e0 | ||
|
|
72e56f7ae5 | ||
|
|
4cebd61765 | ||
|
|
1efb32c244 | ||
|
|
f75f36f0e3 | ||
|
|
a23f1dcb6e | ||
|
|
e3601c124d | ||
|
|
615f78e79f | ||
|
|
965da26426 | ||
|
|
e99ea1d013 | ||
|
|
6f056359df | ||
|
|
0cd7e9fb62 | ||
|
|
689a4c93c3 | ||
|
|
d3e9f3732c | ||
|
|
69f2e365bf | ||
|
|
4e97cd05ea | ||
|
|
1f7fc13872 | ||
|
|
0eb2c485cc | ||
|
|
2e21ca4500 | ||
|
|
fae8162c58 | ||
|
|
d03101bb69 | ||
|
|
38faeac685 | ||
|
|
3be371c823 | ||
|
|
686328a085 | ||
|
|
40a4ddcbde | ||
|
|
e50733ba1d | ||
|
|
8df721ac51 | ||
|
|
25cae1d98b | ||
|
|
679203d4b1 | ||
|
|
2fccbc8ee8 | ||
|
|
19b31d51c5 | ||
|
|
b1c8e0e343 | ||
|
|
117f2a70a8 | ||
|
|
a153d0782f | ||
|
|
0b0e002d15 | ||
|
|
b641887274 | ||
|
|
f946364baa | ||
|
|
3846be8fc6 | ||
|
|
b898955603 | ||
|
|
7b54efb0fc | ||
|
|
7a58fa2435 | ||
|
|
0f0d2e566f | ||
|
|
82e010c44f | ||
|
|
6eefe4b332 | ||
|
|
0dc2d64b20 | ||
|
|
bda6d1e3a0 | ||
|
|
ac948bd8b7 | ||
|
|
908c8afc54 | ||
|
|
643ba6ed72 | ||
|
|
ccdecbd8d7 | ||
|
|
da798dd1d8 | ||
|
|
0304612093 | ||
|
|
d76078a81f | ||
|
|
c4cc7d83e7 | ||
|
|
744682835a | ||
|
|
1fe742561f | ||
|
|
8882dc54d0 | ||
|
|
eb9e0dbc60 | ||
|
|
e45a1394fa | ||
|
|
72f4187d3b | ||
|
|
a5ac8ca1c9 | ||
|
|
fe69a16eea | ||
|
|
7696af6814 | ||
|
|
d4eae917ee | ||
|
|
b297058d11 | ||
|
|
48146089cd | ||
|
|
2440cb448a | ||
|
|
9dbfdd67ad | ||
|
|
b1928b61e5 | ||
|
|
541ea70484 | ||
|
|
9a56d98242 | ||
|
|
38b49bd5fa | ||
|
|
9b0f437073 | ||
|
|
8171c7992e | ||
|
|
30760cab9b | ||
|
|
33d18b9efc | ||
|
|
0aac0d1555 | ||
|
|
3b788ec009 | ||
|
|
db4ff64e87 | ||
|
|
c28e290b42 | ||
|
|
8d127799cd | ||
|
|
d32ad1e0a6 | ||
|
|
122f4f04b9 | ||
|
|
dacda11c07 | ||
|
|
490527b92c | ||
|
|
4a35d63cd3 | ||
|
|
0e644b5524 | ||
|
|
675cf38f67 | ||
|
|
89ab288334 | ||
|
|
5030116ee5 | ||
|
|
8719e916ea | ||
|
|
689e7cbe8b | ||
|
|
d89912e579 | ||
|
|
544068e8cc | ||
|
|
e8c39a1b54 | ||
|
|
1655f57e69 | ||
|
|
d18ff0f049 | ||
|
|
355656b5c8 | ||
|
|
cd10cccbf4 | ||
|
|
d044ef1efc | ||
|
|
65b87819a0 | ||
|
|
be62783b98 | ||
|
|
98fc16a3fb | ||
|
|
276d833a4b | ||
|
|
5d45541a11 | ||
|
|
066707ece6 | ||
|
|
c1f4a71963 | ||
|
|
cf2ddf21a1 | ||
|
|
3fd5128c62 | ||
|
|
cdf8fcfba4 | ||
|
|
8036b9b071 | ||
|
|
6985f82e9c | ||
|
|
2856240cf4 | ||
|
|
32144aa2f3 | ||
|
|
1afdfee8c0 | ||
|
|
bc84fbdb3e |
@@ -61,8 +61,15 @@ class InvestmentPortfolioController extends Controller
|
||||
{
|
||||
$management = $request->routeIs('management.portfolio*');
|
||||
$filters = $request->validate(['q' => ['nullable', 'string', 'max:120'], 'kind' => ['nullable', 'in:corridor,cluster,project'],
|
||||
'sector' => ['nullable', 'string', 'max:500'],
|
||||
'province_id' => ['nullable', 'uuid'], 'district_id' => ['nullable', 'uuid'], 'admin_post_id' => ['nullable', 'uuid'], 'locality_id' => ['nullable', 'uuid']]);
|
||||
$query = $management ? InvestmentDossier::query() : self::visible();
|
||||
$sectorOptions = ($management ? InvestmentDossier::query() : self::visible())
|
||||
->whereNotNull('content->sector')->get()->pluck('content.sector')
|
||||
->filter(fn ($sector) => is_string($sector) && trim($sector) !== '')->unique()->sort()->values();
|
||||
if (! empty($filters['sector'])) {
|
||||
$query->where('content->sector', $filters['sector']);
|
||||
}
|
||||
if (! empty($filters['kind'])) {
|
||||
$query->whereNotNull($filters['kind'].'_id');
|
||||
}
|
||||
@@ -76,7 +83,7 @@ class InvestmentPortfolioController extends Controller
|
||||
}
|
||||
|
||||
return Inertia::render('portfolio/index', ['records' => $query->orderBy('title')->paginate(30)->withQueryString(),
|
||||
'management' => $management, 'filters' => $filters, 'territorySelection' => $territorySelection]);
|
||||
'management' => $management, 'filters' => $filters, 'sectors' => $sectorOptions, 'territorySelection' => $territorySelection]);
|
||||
}
|
||||
|
||||
public function show(Request $request, string $id): Response
|
||||
@@ -137,6 +144,13 @@ class InvestmentPortfolioController extends Controller
|
||||
'origin' => $origin ? ['id' => $origin->id, 'title' => $origin->title] : null, 'opportunities' => $opportunities, 'chains' => $chains]);
|
||||
}
|
||||
|
||||
public function resumeInterest(Request $request, string $id): RedirectResponse
|
||||
{
|
||||
self::visible()->findOrFail($id);
|
||||
$data = $request->validate(['catalogue_query' => ['nullable', 'string', 'max:4000']]);
|
||||
return redirect('/carteira/'.$id.'?'.http_build_query([...$data, 'prepare_interest' => '1']));
|
||||
}
|
||||
|
||||
public function save(Request $request, InvestmentDossier $dossier): RedirectResponse
|
||||
{
|
||||
$data = $request->validate(['version_no' => ['required', 'integer', 'min:1'], 'title' => ['required', 'string', 'max:255'], 'source' => ['required', 'string', 'max:2000'],
|
||||
|
||||
@@ -19,12 +19,21 @@ class InvestmentTerritoryController extends Controller
|
||||
$data = $request->validate(['territory_id' => ['required', 'uuid']]);
|
||||
$profile = $request->is('minhas-oportunidades/*');
|
||||
$management = $request->is('management/*') || $profile;
|
||||
$actor = $request->user();
|
||||
$access = app(PortalProfileAccess::class);
|
||||
// The general consumers use this same endpoint while authenticated.
|
||||
// Reuse the read access already granted by the private cadastral routes.
|
||||
$profileAccess = $actor && $actor->hasVerifiedEmail()
|
||||
&& ($access->grants($actor) !== [] || $access->superuser($actor));
|
||||
$internal = $profileAccess || ($actor?->hasVerifiedEmail() && $actor->can('manage-portal'));
|
||||
if ($management) {
|
||||
$access = app(PortalProfileAccess::class);
|
||||
abort_unless($profile ? ($access->grants($request->user()) !== [] || $access->superuser($request->user())) : $request->user()?->can('manage-portal'), 403);
|
||||
abort_unless($profile ? $profileAccess : $internal, 403);
|
||||
}
|
||||
|
||||
return response()->json(app(TerritoryGeometry::class)->context($data['territory_id'], $management));
|
||||
return response()->json([
|
||||
...app(TerritoryGeometry::class)->context($data['territory_id'], $internal),
|
||||
'geometry_scope' => $internal ? 'authorized_internal' : 'public',
|
||||
])->header('Cache-Control', 'private, no-store');
|
||||
}
|
||||
|
||||
private const TABLES = ['opportunities' => 'opportunities', 'projects' => 'projects', 'clusters' => 'economic_clusters', 'corridors' => 'development_corridors', 'zones' => 'investment_zones'];
|
||||
|
||||
@@ -103,12 +103,17 @@ final class InvestorContextController extends Controller
|
||||
if ($kept && ($kept['territory']['key'] ?? null) !== ($entry['territory']['key'] ?? null)) $differences[] = ['title'=>$entry['opportunity']['title'],'saved'=>$kept['territory']['title']??'Por definir','requested'=>$entry['territory']['title']??'Por definir'];
|
||||
}
|
||||
$complements = isset($draft['complements']) ? app(\App\Services\InvestmentComplements::class)->resolve($draft['complements'], $data['context']['complements'] ?? []) : ($data['context']['complements'] ?? []);
|
||||
$entryTerritory = null;
|
||||
if (($source['kind'] ?? null) === 'portfolio') {
|
||||
$path = app(InvestmentGeography::class)->selection($r->validate(['province_id' => 'nullable|uuid', 'district_id' => 'nullable|uuid', 'admin_post_id' => 'nullable|uuid', 'locality_id' => 'nullable|uuid']));
|
||||
if ($path) $entryTerritory = $context->reference('territory:'.$path[array_key_last($path)]->id);
|
||||
}
|
||||
foreach ($this->entryComplements($r) as $entry) {
|
||||
$tag = 'complement:'.hash('sha256', $entry['key'].'@'.($selectionKey ?? ''));
|
||||
$entrySources[] = $tag;
|
||||
if (!in_array($tag, $draft['entry_sources'] ?? [], true)) $complements = collect([...$complements, $entry])->unique('key')->values()->all();
|
||||
}
|
||||
return Inertia::render('investor-path/context', ['entryComplements' => $complements, 'entryLocationDifferences'=>$differences,'entrySources'=>$entrySources,'draft' => $draft, 'requestedChoices' => $choices, 'initial' => $data, 'options' => $context->options(), 'source' => $source, 'territorySelection' => isset($data['context']['selection']['territory']) ? app(InvestmentGeography::class)->path($data['context']['selection']['territory']['id']) : []]);
|
||||
return Inertia::render('investor-path/context', ['entryTerritory' => $entryTerritory, 'entryComplements' => $complements, 'entryLocationDifferences'=>$differences,'entrySources'=>$entrySources,'draft' => $draft, 'requestedChoices' => $choices, 'initial' => $data, 'options' => $context->options(), 'source' => $source, 'territorySelection' => isset($data['context']['selection']['territory']) ? app(InvestmentGeography::class)->path($data['context']['selection']['territory']['id']) : ($entryTerritory ? app(InvestmentGeography::class)->path($entryTerritory['id']) : [])]);
|
||||
}
|
||||
|
||||
public function preview(Request $r, string $id, InvestorContext $context)
|
||||
@@ -125,9 +130,16 @@ final class InvestorContextController extends Controller
|
||||
{
|
||||
$d = $r->validate(['source' => 'nullable|string|max:100', 'step' => ['nullable', 'regex:/^S(0[1-9]|1[0-9])$/']]);
|
||||
$ref = isset($d['source']) ? $context->reference($d['source']) : null;
|
||||
$submissionId = $r->validate(['submission' => 'nullable|uuid'])['submission'] ?? null;
|
||||
$entrySubmission = null;
|
||||
if ($submissionId) {
|
||||
$submission = \App\Models\InvestmentSubmission::where('id', $submissionId)->where('user_id', $r->user()->id)->where('status', 'draft')->firstOrFail();
|
||||
abort_unless(($ref['kind'] ?? null) === 'portfolio' && $submission->dossier_id === $ref['id'], 422, 'Conserve a ficha de origem da manifestação.');
|
||||
$entrySubmission = ['id' => $submission->id, 'version' => $submission->version];
|
||||
}
|
||||
|
||||
$choices = $this->entryChoices($r, $context);
|
||||
return Inertia::render('investor-path/context-start', ['entryComplements' => $this->entryComplements($r), 'entryQuery' => $r->only(['complement_origin', 'complement_code', 'complement_target', 'complement_territory', 'from_dossier', 'province_id', 'district_id', 'admin_post_id', 'locality_id']), 'opportunityChoices' => $choices, 'contexts' => $path->contexts($r->user()), 'source' => $ref, 'step' => $d['step'] ?? null]);
|
||||
return Inertia::render('investor-path/context-start', ['entrySubmission' => $entrySubmission, 'entryComplements' => $this->entryComplements($r), 'entryQuery' => $r->only(['complement_origin', 'complement_code', 'complement_target', 'complement_territory', 'from_dossier', 'province_id', 'district_id', 'admin_post_id', 'locality_id']), 'opportunityChoices' => $choices, 'contexts' => $path->contexts($r->user()), 'source' => $ref, 'step' => $d['step'] ?? null]);
|
||||
}
|
||||
|
||||
public function installation(Request $r, InvestorContextInstallation $install)
|
||||
|
||||
@@ -88,7 +88,8 @@ class InvestorPathController extends Controller
|
||||
|
||||
public function show(Request $request, string $id, InvestorPath $path): JsonResponse|Response
|
||||
{
|
||||
$data = $path->view($request->user(), $id);
|
||||
$choice = $request->validate(['opportunity' => 'nullable|string|max:100'])['opportunity'] ?? null;
|
||||
$data = $path->view($request->user(), $id, $choice);
|
||||
|
||||
return $request->expectsJson() ? response()->json($data) : Inertia::render('investor-path/show', $data);
|
||||
}
|
||||
|
||||
@@ -14,12 +14,13 @@ final class EnsureScopedPortalAdministration
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
$actor = $request->user();
|
||||
abort_unless($actor, 403);
|
||||
abort_unless($actor !== null, 403);
|
||||
$scope = app(ScopedPortalAdministration::class);
|
||||
$path = $request->path();
|
||||
$interests = $request->is('management/interests', 'management/interests/*', 'api/v1/investment/admin/interests/*');
|
||||
// Fiscal maintenance reuses authorised administration; unrelated gates remain unchanged.
|
||||
$catalogue = $request->is('management/territory-geometry-import', 'management/territory-geometry-import/*',
|
||||
$geometryRead = $request->isMethod('GET') && $path === 'management/territory-geometries';
|
||||
$catalogue = $geometryRead || $request->is('management/territory-geometry-import', 'management/territory-geometry-import/*',
|
||||
'management/economic-references/lot-01', 'management/economic-references/lot-01/*',
|
||||
'management/education', 'management/education/*', 'management/investment/references', 'management/investment/references/*', 'api/v1/investment/admin/references', 'api/v1/investment/admin/references/*',
|
||||
'management/investment/zones', 'management/investment/zones/*', 'api/v2/investment/admin/zones', 'api/v2/investment/admin/zones/*',
|
||||
|
||||
@@ -37,7 +37,7 @@ class StoreSimulationFormDraftRequest extends FormRequest
|
||||
'contact_province', 'contact_district', 'preferred_channel',
|
||||
];
|
||||
$economic = [
|
||||
'context_applicability_snapshot', 'investment_regime', 'context_reuse', 'compatible_fields_snapshot', 'published_iva_base', 'published_iva_currency', 'published_iva_date', 'published_iva_scope', 'monthly_iva_settings', 'monthly_iva_snapshot', 'journey_type', 'detail_level', 'business_plan_snapshot', 'financial_tools_snapshot', 'cashflow_snapshot', 'project_team_snapshot', 'project_execution_snapshot', 'purpose', 'manifestation_type', 'preferred_language', 'project_title', 'project_summary', 'project_problem', 'target_customers', 'value_proposition', 'market_assumption', 'market_source', 'project_milestones', 'selection_labels', 'project_type',
|
||||
'context_opportunity', 'context_applicability_snapshot', 'investment_regime', 'context_reuse', 'compatible_fields_snapshot', 'published_iva_base', 'published_iva_currency', 'published_iva_date', 'published_iva_scope', 'monthly_iva_settings', 'monthly_iva_snapshot', 'modelo_a_snapshot', 'journey_type', 'detail_level', 'business_plan_snapshot', 'financial_tools_snapshot', 'cashflow_snapshot', 'project_team_snapshot', 'project_execution_snapshot', 'purpose', 'manifestation_type', 'preferred_language', 'project_title', 'project_summary', 'project_problem', 'target_customers', 'value_proposition', 'market_assumption', 'market_source', 'project_milestones', 'selection_labels', 'project_type',
|
||||
'competitor_assumption', 'sales_channel_assumption', 'marketing_approach', 'location_rationale', 'project_risk_responses_snapshot', 'project_questionnaire_version',
|
||||
'customer_validation_status', 'cost_estimate_status', 'location_assessment_status', 'funding_status', 'receivables_timing_status',
|
||||
'project_type_other', 'sector_id', 'activity_id', 'products_services', 'maturity_stage', 'expected_start_date',
|
||||
@@ -73,6 +73,7 @@ class StoreSimulationFormDraftRequest extends FormRequest
|
||||
'economic_snapshot.financial_tools_snapshot' => ['nullable', 'string', 'max:30000'],
|
||||
'economic_snapshot.cashflow_snapshot' => ['nullable', 'string', 'max:20000'],
|
||||
'economic_snapshot.context_applicability_snapshot' => ['nullable', 'string', 'max:1000000'],
|
||||
'economic_snapshot.context_opportunity' => ['nullable', 'string', 'max:100'],
|
||||
'economic_snapshot.investment_regime' => ['nullable', 'in:general,industrial_park,zee,zfi'],
|
||||
'economic_snapshot.context_reuse' => ['nullable', 'string', 'max:10000'],
|
||||
'economic_snapshot.compatible_fields_snapshot' => ['nullable', 'string', 'max:10000'],
|
||||
@@ -82,6 +83,8 @@ class StoreSimulationFormDraftRequest extends FormRequest
|
||||
'economic_snapshot.published_iva_scope' => ['nullable', 'string', 'in:yes,no'],
|
||||
'economic_snapshot.monthly_iva_settings' => ['nullable', 'string', 'max:2000'],
|
||||
'economic_snapshot.monthly_iva_snapshot' => ['nullable', 'string', 'max:60000'],
|
||||
// Preserve operation books and explicit history as the draft grows.
|
||||
'economic_snapshot.modelo_a_snapshot' => ['nullable', 'string', 'json', 'max:4000000'],
|
||||
'economic_snapshot.project_team_snapshot' => ['nullable', 'string', 'max:30000'],
|
||||
'economic_snapshot.project_execution_snapshot' => ['nullable', 'string', 'max:30000'],
|
||||
'economic_snapshot.project_risk_responses_snapshot' => ['nullable', 'string', 'max:30000'],
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
/** Public read projection authorized by Tempo; source rows and originals stay private. */
|
||||
class ApprovedAdministrativeBoundaries
|
||||
{
|
||||
public const HASH = '06ab905fcf9b19115c3521bf81de03f37873880f7765f229b9e1f79d99df7adc';
|
||||
|
||||
/** @var array<string,array<string,string>>|null */
|
||||
private ?array $items = null;
|
||||
|
||||
/** @return array<string,array<string,string>> */
|
||||
public function snapshots(): array
|
||||
{
|
||||
if ($this->items !== null) {
|
||||
return $this->items;
|
||||
}
|
||||
$contents = file_get_contents(base_path('docs/investmoz/unification/approved-administrative-boundaries-20261024.json'));
|
||||
if ($contents === false || ! hash_equals(self::HASH, hash('sha256', str_replace("\r\n", "\n", $contents)))) {
|
||||
throw new RuntimeException('Approved administrative boundary manifest changed.');
|
||||
}
|
||||
$manifest = json_decode($contents, true, 512, JSON_THROW_ON_ERROR);
|
||||
if (count($manifest['items']) !== 408) {
|
||||
throw new RuntimeException('Exact 408-boundary scope required.');
|
||||
}
|
||||
$this->items = array_column($manifest['items'], null, 'id');
|
||||
|
||||
return $this->items;
|
||||
}
|
||||
|
||||
public function allows(string $id, string $territoryId, string $geometryHash, string $propertiesHash): bool
|
||||
{
|
||||
$item = $this->snapshots()[$id] ?? null;
|
||||
|
||||
return $item !== null && $item['territory_id'] === $territoryId
|
||||
&& hash_equals($item['geometry_sha256'], $geometryHash)
|
||||
&& hash_equals($item['properties_sha256'], $propertiesHash);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use RuntimeException;
|
||||
|
||||
/** Exact replay of the 28 accepted links into the transported project identities. */
|
||||
final class ApprovedAnchorTerritories
|
||||
{
|
||||
public const HASH = 'd2893d0a638d630435aca1890f79a8094dc58eb65bbdd65a470bb685fa075190';
|
||||
|
||||
/** @return array{manifest_sha256:string,projects:list<array<string,mixed>>,links:list<array<string,mixed>>} */
|
||||
public function plan(): array
|
||||
{
|
||||
$file = base_path('docs/investmoz/unification/approved-anchor-territories-20261023.json');
|
||||
$contents = is_file($file) ? file_get_contents($file) : false;
|
||||
if ($contents !== false) {
|
||||
$contents = str_replace("\r\n", "\n", $contents);
|
||||
}
|
||||
if ($contents === false || ! hash_equals(self::HASH, hash('sha256', $contents))) {
|
||||
throw new RuntimeException('Reviewed territorial manifest changed.');
|
||||
}
|
||||
$manifest = json_decode($contents, true, 512, JSON_THROW_ON_ERROR);
|
||||
if (count($manifest['items']) !== 28) {
|
||||
throw new RuntimeException('Exact 28-link scope required.');
|
||||
}
|
||||
$projects = [];
|
||||
$links = [];
|
||||
foreach ($manifest['items'] as $item) {
|
||||
$project = DB::table('projects')->where('id', $item['project_id'])->whereNull('deleted_at')->first();
|
||||
$dossier = DB::table('investment_dossiers')->where('id', $item['dossier_id'])->whereNull('deleted_at')->first();
|
||||
if (! $project || $project->code !== $item['code'] || ! $dossier || $dossier->project_id !== $project->id
|
||||
|| ! hash_equals($item['content_sha256'], hash('sha256', $dossier->content))
|
||||
|| ! hash_equals($item['source_sha256'], hash('sha256', $dossier->source))) {
|
||||
throw new RuntimeException('Project identity or documentary source changed: '.$item['code']);
|
||||
}
|
||||
$original = $item['original_relation'];
|
||||
$geo = DB::table('geo_locations')->where('id', $original['geo_location_id'])->whereNull('deleted_at')->first();
|
||||
foreach (['location_type', 'source_code', 'parent_id', 'data_classification'] as $field) {
|
||||
if (! $geo || $item['territory'][$field] !== $geo->$field) {
|
||||
throw new RuntimeException('Territory identity changed: '.$original['geo_location_id']);
|
||||
}
|
||||
}
|
||||
$metadata = $projects[$project->id]['after_metadata'] ?? json_decode($project->metadata, true, 512, JSON_THROW_ON_ERROR);
|
||||
$key = $geo->id.':'.$original['role'];
|
||||
$evidence = $item['evidence'];
|
||||
// Preserve the original dossier id in evidence and explicitly map the destination.
|
||||
$evidence['transported_dossier_id'] = $dossier->id;
|
||||
if (isset($metadata['documented_location_sources'][$key]) && $metadata['documented_location_sources'][$key] != $evidence) {
|
||||
throw new RuntimeException('Existing territorial evidence differs; no overwrite: '.$item['code']);
|
||||
}
|
||||
$projects[$project->id] ??= ['id' => $project->id, 'code' => $project->code, 'before_version' => (int) $project->version_no, 'before_metadata' => json_decode($project->metadata, true, 512, JSON_THROW_ON_ERROR)];
|
||||
$metadata['documented_location_sources'][$key] = $evidence;
|
||||
$projects[$project->id]['after_metadata'] = $metadata;
|
||||
$existing = DB::table('project_locations')->where('project_id', $project->id)->where('geo_location_id', $geo->id)->where('role', $original['role'])->first();
|
||||
if ($existing && ($existing->deleted_at || $existing->data_classification !== 'public')) {
|
||||
throw new RuntimeException('Archived or restricted territorial relation must not be revived.');
|
||||
}
|
||||
$identity = DB::table('project_locations')->where('id', $original['id'])->first();
|
||||
if ($identity && (! $existing || $identity->id !== $existing->id)) {
|
||||
throw new RuntimeException('Historical relation identity is already occupied.');
|
||||
}
|
||||
$links[] = ['code' => $item['code'], 'already_present' => (bool) $existing, 'row' => [...$original, 'project_id' => $project->id]];
|
||||
}
|
||||
|
||||
return ['manifest_sha256' => self::HASH, 'projects' => array_values($projects), 'links' => $links];
|
||||
}
|
||||
|
||||
/** Caller supplies an authenticated, backed-up transaction; no source publication changes.
|
||||
* @param array{manifest_sha256:string,projects:list<array<string,mixed>>,links:list<array<string,mixed>>} $plan
|
||||
* @return array<string,int>
|
||||
*/
|
||||
public function apply(array $plan): array
|
||||
{
|
||||
if (DB::transactionLevel() < 1 || $this->plan() !== $plan) {
|
||||
throw new RuntimeException('Reviewed transaction and unchanged preview required.');
|
||||
}
|
||||
$inserted = 0;
|
||||
$updated = 0;
|
||||
foreach ($plan['projects'] as $project) {
|
||||
if ($project['before_metadata'] == $project['after_metadata']) {
|
||||
continue;
|
||||
}
|
||||
$count = DB::table('projects')->where('id', $project['id'])->where('version_no', $project['before_version'])->update([
|
||||
'metadata' => json_encode($project['after_metadata'], JSON_THROW_ON_ERROR), 'version_no' => $project['before_version'] + 1, 'updated_at' => now(),
|
||||
]);
|
||||
if ($count !== 1) {
|
||||
throw new RuntimeException('Concurrent project change.');
|
||||
}
|
||||
DB::table('audit_events')->insert(['source_system' => 'approved-anchor-territories-recovery-v1', 'external_id' => self::HASH.':'.$project['id'], 'entity_type' => 'projects', 'entity_id' => $project['id'], 'action' => 'accepted_territories_restored',
|
||||
'data_classification' => 'public', 'before_data' => json_encode(['version_no' => $project['before_version'], 'metadata' => $project['before_metadata']], JSON_THROW_ON_ERROR),
|
||||
'after_data' => json_encode(['version_no' => $project['before_version'] + 1, 'manifest_sha256' => self::HASH, 'metadata' => $project['after_metadata'], 'new_approval' => false], JSON_THROW_ON_ERROR)]);
|
||||
$updated++;
|
||||
}
|
||||
foreach ($plan['links'] as $link) {
|
||||
if ($link['already_present']) {
|
||||
continue;
|
||||
}
|
||||
DB::table('project_locations')->insert($link['row']);
|
||||
$inserted++;
|
||||
}
|
||||
|
||||
return ['relations_restored' => $inserted, 'projects_updated' => $updated, 'new_dossiers' => 0, 'publication_changes' => 0];
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,27 @@ use Illuminate\Support\Arr;
|
||||
/** An identified opportunity within the authorised dossier, never the account's last choice. */
|
||||
final class InvestmentConsumerScope
|
||||
{
|
||||
public function key(array $context, ?string $key, bool $required = false): ?string
|
||||
{
|
||||
$choices = $context['opportunity_choices'] ?? [];
|
||||
$key = $key ?: (count($choices) === 1 ? $choices[0]['opportunity']['key'] : null);
|
||||
abort_if($key && !collect($choices)->contains('opportunity.key', $key), 422, 'Escolha uma oportunidade deste dossier.');
|
||||
abort_if($required && count($choices) > 1 && !$key, 422, 'Escolha a oportunidade em tratamento.');
|
||||
return $key;
|
||||
}
|
||||
|
||||
public function facts(array $payload, array $context, ?string $key): array
|
||||
{
|
||||
$key = $this->key($context, $key);
|
||||
$path = $payload['investor_path'] ?? [];
|
||||
$defaults = ['land_needed' => 'unknown', 'external_funding' => 'unknown', 'viability' => 'unknown'];
|
||||
// A dossier-wide dispensation cannot decide a distinct opportunity's needs.
|
||||
if ($key && count($context['opportunity_choices'] ?? []) > 1) return [...$defaults, ...($path['opportunity_facts'][$key] ?? [])];
|
||||
if ($key && isset($path['opportunity_facts'][$key])) return [...$defaults, ...$path['opportunity_facts'][$key]];
|
||||
if (count($context['opportunity_choices'] ?? []) > 1) return $defaults;
|
||||
return [...$defaults, ...($path['facts'] ?? [])];
|
||||
}
|
||||
|
||||
public function context(array $context, ?string $key): array
|
||||
{
|
||||
$choices = $context['opportunity_choices'] ?? [];
|
||||
@@ -44,6 +65,7 @@ final class InvestmentConsumerScope
|
||||
$context['requirements_assessment']['requirements'] = array_values(array_filter($context['requirements_assessment']['requirements'] ?? [], fn($r) => $r['opportunity_key'] === $key));
|
||||
$context['consumer_opportunity'] = $choice;
|
||||
$context['complements'] = array_values(array_filter($context['complements'] ?? [], fn($c) => ($c['origin']['key'] ?? null) === $key || ($c['target']['key'] ?? null) === $key || in_array(substr($c['origin']['key'] ?? '',10),array_column($choice['portfolio_origins'] ?? [],'id'),true)));
|
||||
$context['dependency_hash'] = app(InvestorContext::class)->dependencyHash(['opportunity_choices'=>[$choice], 'fields'=>Arr::except($context['fields'],['project_title','project_summary']), 'complements'=>$context['complements']]);
|
||||
return $context;
|
||||
}
|
||||
|
||||
|
||||
@@ -122,6 +122,7 @@ final class InvestorContext
|
||||
|
||||
public function dependencyHash(array $selection): string
|
||||
{
|
||||
unset($selection['portfolio'], $selection['selection']['portfolio']);
|
||||
if (isset($selection['opportunity_choices'])) $selection['opportunity_choices'] = array_map(fn($choice)=>Arr::except($choice,['portfolio_origins']),$selection['opportunity_choices']);
|
||||
return hash('sha256', json_encode(Arr::sortRecursive($selection), JSON_THROW_ON_ERROR));
|
||||
}
|
||||
@@ -168,6 +169,18 @@ final class InvestorContext
|
||||
if ($o->primary_territory_id) {
|
||||
$fields = [...$fields, ...$this->territoryFields($o->primary_territory_id)];
|
||||
}
|
||||
} elseif ($kind === 'portfolio') {
|
||||
abort_unless(Str::isUuid($id), 422);
|
||||
$dossier = \App\Http\Controllers\InvestmentPortfolioController::visible()->findOrFail($id);
|
||||
$title = $dossier->title;
|
||||
$href = '/carteira/'.$id;
|
||||
// Documentary coverage is not the investor's chosen implantation.
|
||||
$version = DB::table('investment_dossiers')->where('id', $id)->value('version_no');
|
||||
$fields = ['project_title' => $title, 'project_summary' => $dossier->content['description'] ?? $dossier->content['focus'] ?? ''];
|
||||
$state = 'documented_origin';
|
||||
$zoneAnalysis = ['source' => $dossier->source, 'documented_sector' => $dossier->content['sector'] ?? null,
|
||||
'documented_location' => $dossier->content['location'] ?? $dossier->content['region'] ?? null,
|
||||
'geography' => app(InvestmentRelations::class)->dossier($dossier), 'available_opportunity' => false];
|
||||
} elseif ($kind === 'business') {
|
||||
abort_unless(config('existing-business.enabled') && Str::isUuid($id), 404);
|
||||
$o = ExistingBusiness::published()->with('sector')->findOrFail($id);
|
||||
@@ -354,7 +367,7 @@ final class InvestorContext
|
||||
'opportunity_choices.*.park' => 'sometimes|nullable|string|max:100',
|
||||
'opportunity_choices.*.source' => 'required|string|distinct|max:100', 'opportunity_choices.*.territory' => 'nullable|string|max:100',
|
||||
'opportunity_choices.*.location_reason' => 'nullable|string|max:2000', 'opportunity_choices.*.confirm_location_change' => 'sometimes|boolean',
|
||||
'version' => 'required|integer|min:1', 'selection' => 'present|array:opportunity,sector,territory,park',
|
||||
'version' => 'required|integer|min:1', 'selection' => 'present|array:portfolio,opportunity,sector,territory,park',
|
||||
'selection.*' => 'nullable|string|max:100', 'declarations' => 'nullable|array:project_title,project_summary,currency,expected_start_date,investor_origin,person_type,entity_stage,tax_residency_country,fiscal_residency_country,project_type,maturity_stage,'.implode(',', PrivateInvestmentPreparation::FIELDS), 'declarations.project_title' => 'nullable|string|max:200', 'declarations.project_summary' => 'nullable|string|max:5000',
|
||||
'declarations.currency' => 'nullable|regex:/^[A-Z]{3}$/', 'declarations.expected_start_date' => 'nullable|date_format:Y-m-d', 'declarations.investor_origin' => 'nullable|in:national,foreign,mixed', 'declarations.person_type' => 'nullable|in:singular,collective,sole_trader,consortium', 'declarations.entity_stage' => 'nullable|in:existing,being_formed', 'declarations.tax_residency_country' => ['nullable', 'string', app(CountryCatalogue::class)->rule()], 'declarations.fiscal_residency_country' => ['nullable', 'string', app(CountryCatalogue::class)->rule()], 'declarations.project_type' => 'nullable|string|max:100', 'declarations.maturity_stage' => 'nullable|string|max:100',
|
||||
'replace_fields' => 'nullable|array', 'replace_fields.*' => 'string|in:'.implode(',', self::FIELDS)])->validate();
|
||||
@@ -432,7 +445,7 @@ final class InvestorContext
|
||||
}
|
||||
$proposed = [];
|
||||
$origins = [];
|
||||
foreach (['opportunity', 'sector', 'park', 'territory'] as $slot) {
|
||||
foreach (['portfolio', 'opportunity', 'sector', 'park', 'territory'] as $slot) {
|
||||
if (in_array($slot, ['park', 'territory'], true) && array_intersect(array_keys($selection[$slot]['fields'] ?? []), array_keys(InvestmentGeography::FIELDS))) {
|
||||
foreach (['province_id', 'district_id', 'admin_post_id', 'locality_id', 'province', 'district', 'location'] as $key) {
|
||||
unset($proposed[$key],$origins[$key]);
|
||||
@@ -484,7 +497,7 @@ final class InvestorContext
|
||||
$replaced[] = ['field' => $key, 'before' => $old['fields'][$key] ?? null, 'after' => $fields[$key] ?? null];
|
||||
}
|
||||
}
|
||||
foreach (['opportunity', 'sector', 'territory', 'park'] as $slot) {
|
||||
foreach (['portfolio', 'opportunity', 'sector', 'territory', 'park'] as $slot) {
|
||||
if (($old['selection'][$slot] ?? null) !== ($selection[$slot] ?? null)) {
|
||||
$changed[] = $slot;
|
||||
}
|
||||
@@ -586,8 +599,8 @@ final class InvestorContext
|
||||
$case = $this->desk->case($actor, $id);
|
||||
abort_unless($this->desk->owns($actor, $case, false) || $actor->can('manage-portal'), 403);
|
||||
$ctx = $this->state($case);
|
||||
$ctx['land_preparation'] = $this->landPreparation($case);
|
||||
$path = app(InvestorPath::class)->view($actor, $id);
|
||||
$ctx['land_preparation'] = $this->landPreparation($case, $opportunity);
|
||||
$path = app(InvestorPath::class)->view($actor, $id, $opportunity);
|
||||
$ctx['path_applicability'] = ['definition_id' => $path['definition_id'], 'definition_version' => $path['definition_version'], 'source_sha256' => $path['source_sha256'],
|
||||
'steps' => array_values(array_map(fn ($step) => Arr::only($step, ['code', 'title', 'applicability', 'reason', 'state', 'context_review_required']), array_filter($path['steps'], fn ($step) => ! empty($step['branch']))))];
|
||||
|
||||
@@ -602,12 +615,19 @@ final class InvestorContext
|
||||
}
|
||||
}
|
||||
|
||||
$preparation = app(PrivateInvestmentPreparation::class)->available() ? app(PrivateInvestmentPreparation::class)->assess($ctx, $this->preparationDocuments($id)) : null;
|
||||
$preparation = app(PrivateInvestmentPreparation::class)->available() ? app(PrivateInvestmentPreparation::class)->assess(app(InvestmentConsumerScope::class)->context($ctx, $opportunity), $this->preparationDocuments($id)) : null;
|
||||
$ctx['preparation_assessment'] = $preparation;
|
||||
|
||||
$prefill = $this->prefill($ctx, $opportunity);
|
||||
$saved = $this->desk->decode($case->payload);
|
||||
if (!empty($saved['reuse_consent'])) {
|
||||
$contacts = array_filter(['email' => $saved['email'] ?? null, 'phone' => $saved['profile']['phone'] ?? null], fn($v) => is_string($v) && $v !== '');
|
||||
$prefill['simulator'] = [...$contacts, ...$prefill['simulator']];
|
||||
$prefill['land'] = [...$contacts, ...(!empty($saved['name']) ? ['full_name' => $saved['name']] : []), ...$prefill['land']];
|
||||
}
|
||||
return ['private_investment' => $preparation, 'preparation_documents' => $this->preparationDocuments($id), 'simulator_context_revision' => $simulatorRevision, 'case' => $path['case'], 'context' => $ctx, 'steps' => array_map(fn ($s) => Arr::only($s, ['code', 'title', 'state', 'context_review_required']), $path['steps']),
|
||||
'can_write' => $path['canWrite'], 'next' => $path['next'], 'results' => $path['results'], 'requests' => $path['requests'],
|
||||
'prefill' => $this->prefill($ctx, $opportunity), 'notice' => 'A seleção apoia a preparação e não confirma benefícios, licenças, direitos ou disponibilidade.'];
|
||||
'prefill' => $prefill, 'notice' => 'A seleção apoia a preparação e não confirma benefícios, licenças, direitos ou disponibilidade.'];
|
||||
}
|
||||
|
||||
public function preparationDocuments(string $id): array
|
||||
@@ -615,18 +635,21 @@ final class InvestorContext
|
||||
return DB::table('desk_documents as l')->join('documents as d', 'd.id', '=', 'l.document_id')->where('l.case_id', $id)->whereNull('d.deleted_at')->get(['l.id', 'l.document_id', 'd.file_name', 'd.status', 'd.malware_scan_status', 'd.version_no', 'd.sha256'])->map(fn ($row) => (array) $row)->all();
|
||||
}
|
||||
|
||||
public function landPreparation(\stdClass $case): array
|
||||
public function landPreparation(\stdClass $case, ?string $opportunity = null): array
|
||||
{
|
||||
$path = $this->desk->decode($case->payload)['investor_path'] ?? [];
|
||||
$need = $path['facts']['land_needed'] ?? 'unknown';
|
||||
$payload = $this->desk->decode($case->payload);
|
||||
$ctx = $this->state($case);
|
||||
$key = app(InvestmentConsumerScope::class)->key($ctx, $opportunity);
|
||||
$path = $payload['investor_path'] ?? [];
|
||||
$need = app(InvestmentConsumerScope::class)->facts($payload, $ctx, $key)['land_needed'];
|
||||
|
||||
return ['need' => in_array($need, ['yes', 'no'], true) ? $need : 'unknown', 'reason' => $path['fact_reasons']['land_needed'] ?? ''];
|
||||
return ['need' => in_array($need, ['yes', 'no'], true) ? $need : 'unknown', 'reason' => $key ? ($path['opportunity_fact_reasons'][$key]['land_needed'] ?? '') : ($path['fact_reasons']['land_needed'] ?? '')];
|
||||
}
|
||||
|
||||
public function prefill(array $ctx, ?string $opportunity = null): array
|
||||
{
|
||||
$original = $ctx;
|
||||
if ($opportunity) $ctx = app(InvestmentConsumerScope::class)->context($ctx, $opportunity);
|
||||
$ctx = app(InvestmentConsumerScope::class)->context($ctx, $opportunity);
|
||||
$f = $ctx['fields'];
|
||||
$sim = Arr::except(Arr::only($f, self::FIELDS), ['sector', 'province', 'district', 'location', ...array_diff(PrivateInvestmentPreparation::FIELDS, ['total_investment', 'area_required', 'area_unit'])]);
|
||||
// Entering this tool from an investment dossier selects the existing investment-analysis route.
|
||||
@@ -646,6 +669,8 @@ final class InvestorContext
|
||||
$zone = $ctx['selection']['park'] ?? null;
|
||||
$sim['context_applicability_snapshot'] = json_encode([
|
||||
'version' => 1, 'context_revision' => $ctx['revision'],
|
||||
'consumer_opportunity' => $ctx['consumer_opportunity']['opportunity']['key'] ?? null,
|
||||
'portfolio_origin' => $ctx['selection']['portfolio'] ?? null,
|
||||
'zone' => $zone ? Arr::only($zone, ['id', 'title', 'href', 'version', 'sha256', 'fields', 'analysis']) : null,
|
||||
'provenance' => $ctx['provenance'],
|
||||
'opportunity_choices' => $ctx['opportunity_choices'] ?? [],
|
||||
|
||||
@@ -68,7 +68,7 @@ final class InvestorPath
|
||||
}
|
||||
|
||||
/** @return array<string,mixed> */
|
||||
public function view(User $actor, string $id): array
|
||||
public function view(User $actor, string $id, ?string $opportunity = null): array
|
||||
{
|
||||
abort_unless($this->available(), 404);
|
||||
$case = $this->desk->case($actor, $id);
|
||||
@@ -79,18 +79,26 @@ final class InvestorPath
|
||||
$payload = $this->desk->decode($case->payload);
|
||||
$path = $payload['investor_path'] ?? [];
|
||||
$context = app(InvestorContext::class)->state($case);
|
||||
$facts = $path['facts'] ?? ['land_needed' => 'unknown', 'external_funding' => 'unknown', 'viability' => 'unknown'];
|
||||
$scope = app(InvestmentConsumerScope::class);
|
||||
$opportunity = $scope->key($context, $opportunity);
|
||||
$allChoices = $context['opportunity_choices'] ?? [];
|
||||
$facts = $scope->facts($payload, $context, $opportunity);
|
||||
$factReasons = $opportunity ? ($path['opportunity_fact_reasons'][$opportunity] ?? []) : ($path['fact_reasons'] ?? []);
|
||||
$context = $scope->context($context, $opportunity);
|
||||
$records = DB::table('journey_steps')->where('journey_id', $journey->id)->whereNull('deleted_at')->get()->keyBy('step_code');
|
||||
$steps = [];
|
||||
foreach ($definition['steps'] as $step) {
|
||||
$row = $records->get($step['code']);
|
||||
abort_unless($row !== null, 409, 'Etapa em falta; reparar a instalação sem reconstruir o histórico.');
|
||||
$detail = $this->desk->decode($row->path_detail);
|
||||
if ($opportunity && (count($allChoices) > 1 || isset($detail['opportunities'][$opportunity]))) {
|
||||
$detail = $detail['opportunities'][$opportunity] ?? ['state' => 'not_started'];
|
||||
}
|
||||
$value = $step['branch'] ? ($facts[$step['branch']] ?? 'unknown') : 'yes';
|
||||
$applicable = $value === 'unknown' ? 'undetermined' : ($value === 'no' ? 'not_needed_for_preparation' : 'applicable');
|
||||
$state = $value === 'no' ? 'dispensed' : $detail['state'];
|
||||
$steps[] = [...$step, 'id' => $row->id, 'version' => $row->version_no, 'state' => $state, 'saved_state' => $detail['state'],
|
||||
'applicability' => $applicable, 'reason' => $value === 'no' ? ($path['fact_reasons'][$step['branch']] ?? '') : ($detail['reason'] ?? ''),
|
||||
'applicability' => $applicable, 'reason' => $value === 'no' ? ($factReasons[$step['branch']] ?? '') : ($detail['reason'] ?? ''),
|
||||
'detail' => $detail, 'preparation_allowed' => $value !== 'no',
|
||||
'action_gaps' => []];
|
||||
}
|
||||
@@ -143,7 +151,8 @@ final class InvestorPath
|
||||
|
||||
$landCase = (int) $case->user_id === $actor->id
|
||||
? LandAssistanceCase::where('user_id', $actor->id)->latest('updated_at')->get()
|
||||
->first(fn ($land) => ($land->payload['investor_path_case_id'] ?? null) === $id) : null;
|
||||
->first(fn ($land) => ($land->payload['investor_path_case_id'] ?? null) === $id
|
||||
&& (!$allChoices || ($opportunity && ($land->payload['context_opportunity'] ?? null) === $opportunity))) : null;
|
||||
|
||||
$preparation = ($owner || $manager) && app(PrivateInvestmentPreparation::class)->available() ? app(PrivateInvestmentPreparation::class)->assess($context, $documents->map(fn ($d) => (array) $d)->all()) : null;
|
||||
if ($preparation && $preparation['enabled']) {
|
||||
@@ -152,11 +161,12 @@ final class InvestorPath
|
||||
|
||||
return ['private_investment' => $preparation, 'case' => ['id' => $id, 'title' => $case->title, 'version' => $case->version, 'closed' => $case->closed_at !== null],
|
||||
'journey_id' => $journey->id, 'definition_id' => $version->id, 'definition_version' => $version->version_no, 'source_sha256' => $definition['source_sha256'],
|
||||
'phases' => $definition['phases'], 'steps' => $steps, 'facts' => $facts, 'fact_reasons' => $path['fact_reasons'] ?? [],
|
||||
'phases' => $definition['phases'], 'steps' => $steps, 'facts' => $facts, 'fact_reasons' => $factReasons,
|
||||
'context_opportunity' => $opportunity, 'opportunity_options' => $allChoices,
|
||||
'fintech' => ($owner || $manager) && (isset($path['fintech']) || collect($path['sector_contexts'] ?? [])->contains(fn ($s) => in_array($s['slug'], ['fintech', 'tecnologias-de-informacao', 'mercado-financeiro'], true)) || collect($path['content_sources'] ?? [])->contains('return_href', '/tech-fintech')) ? app(FintechInvestment::class)->view($payload, $steps) : null,
|
||||
'canWrite' => $owner && ! $case->closed_at, 'canReview' => $manager && (int) $case->user_id !== $actor->id && ! $case->closed_at,
|
||||
'next' => $next ? ['code' => $next['code'], 'title' => $next['title'], 'action' => 'Preparar', 'href' => $next['href'] ?? '#'.$next['code']] : null,
|
||||
'investment_context' => ($owner || $manager) ? $context : null,
|
||||
'investment_context' => ($owner || $manager) ? [...$context, 'opportunity_choices' => $opportunity ? $context['opportunity_choices'] : $allChoices] : null,
|
||||
'results' => $results, 'requests' => $requests, 'documents' => $documents,
|
||||
'zone_contexts' => ($owner || $manager) ? ($path['zone_contexts'] ?? []) : [],
|
||||
'sector_contexts' => ($owner || $manager) ? ($path['sector_contexts'] ?? []) : [],
|
||||
@@ -167,25 +177,31 @@ final class InvestorPath
|
||||
->get(['id', 'title', 'status', 'version_no', 'due_at', 'assignee_user_id']),
|
||||
'services' => DB::table('desk_service_versions')->where('status', 'published')->orderByDesc('version')->get(['id', 'code', 'definition'])
|
||||
->unique('code')->values()->map(fn ($s) => ['id' => $s->id, 'title' => json_decode($s->definition, true)['title']]),
|
||||
'tools' => ['simulator' => (int) $case->user_id === $actor->id ? '/simulador-fiscal?context='.$id.($case->simulation_id ? '&draft='.$case->simulation_id : '') : null,
|
||||
'desk' => '/balcao-virtual/dossiers/'.$id, 'guidance' => '/balcao-virtual/dossiers/'.$id.'/orientacao',
|
||||
'tools' => ['simulator' => (int) $case->user_id === $actor->id ? '/simulador-fiscal?context='.$id.($case->simulation_id ? '&draft='.$case->simulation_id : '').($opportunity ? '&opportunity='.urlencode($opportunity) : '') : null,
|
||||
'desk' => '/balcao-virtual/dossiers/'.$id.($opportunity ? '?opportunity='.urlencode($opportunity) : ''), 'guidance' => '/balcao-virtual/dossiers/'.$id.'/orientacao',
|
||||
'library' => '/documentos?context='.$id, 'opportunities' => '/oportunidades?context='.$id, 'territory' => '/zonas?context='.$id, 'partners' => '/parcerias/painel?context='.$id,
|
||||
'land' => ($facts['land_needed'] ?? 'unknown') !== 'no' && (int) $case->user_id === $actor->id ? ($landCase ? '/investidor/terra-duat/'.$landCase->id : '/investidor/terra-duat/novo?context='.$id) : null]];
|
||||
'land' => ($facts['land_needed'] ?? 'unknown') !== 'no' && (int) $case->user_id === $actor->id ? ($landCase ? '/investidor/terra-duat/'.$landCase->id : '/investidor/terra-duat/novo?context='.$id.($opportunity ? '&opportunity='.urlencode($opportunity) : '')) : null]];
|
||||
}
|
||||
|
||||
/** @param array<string,mixed> $input */
|
||||
public function facts(User $actor, string $id, array $input): void
|
||||
{
|
||||
$data = Validator::make($input, ['version' => 'required|integer|min:1',
|
||||
$data = Validator::make($input, ['version' => 'required|integer|min:1', 'context_opportunity' => 'nullable|string|max:100',
|
||||
'land_needed' => ['required', Rule::in(['yes', 'no', 'unknown'])], 'external_funding' => ['required', Rule::in(['yes', 'no', 'unknown'])],
|
||||
'viability' => ['required', Rule::in(['unknown', 'proceed', 'reformulate', 'archive'])],
|
||||
'reason' => 'required|string|min:3|max:3000'])->validate();
|
||||
DB::transaction(function () use ($actor, $id, $data): void {
|
||||
$case = $this->writable($actor, $id, $data['version']);
|
||||
$payload = $this->desk->decode($case->payload);
|
||||
$choice = app(InvestmentConsumerScope::class)->key(app(InvestorContext::class)->state($case), $data['context_opportunity'] ?? null, true);
|
||||
foreach (['land_needed', 'external_funding', 'viability'] as $key) {
|
||||
$payload['investor_path']['facts'][$key] = $data[$key];
|
||||
$payload['investor_path']['fact_reasons'][$key] = $data['reason'];
|
||||
if ($choice) {
|
||||
$payload['investor_path']['opportunity_facts'][$choice][$key] = $data[$key];
|
||||
$payload['investor_path']['opportunity_fact_reasons'][$choice][$key] = $data['reason'];
|
||||
} else {
|
||||
$payload['investor_path']['facts'][$key] = $data[$key];
|
||||
$payload['investor_path']['fact_reasons'][$key] = $data['reason'];
|
||||
}
|
||||
}
|
||||
$this->savePayload($case, $payload);
|
||||
$this->desk->event($this->desk->case($actor, $id), $actor, 'path_applicability_declared', $data);
|
||||
@@ -195,7 +211,7 @@ final class InvestorPath
|
||||
/** @param array<string,mixed> $input */
|
||||
public function stage(User $actor, string $id, string $code, array $input): void
|
||||
{
|
||||
$data = Validator::make($input, ['version' => 'required|integer|min:1', 'state' => ['required', Rule::in(array_diff(InvestorPathDefinition::STATES, ['dispensed']))],
|
||||
$data = Validator::make($input, ['version' => 'required|integer|min:1', 'context_opportunity' => 'nullable|string|max:100', 'state' => ['required', Rule::in(array_diff(InvestorPathDefinition::STATES, ['dispensed']))],
|
||||
'reason' => 'required|string|min:3|max:3000', 'action' => ['required', Rule::in(['prepare', 'submit', 'execute', 'operate', 'review', 'record_external'])],
|
||||
'document_id' => 'nullable|uuid', 'authority' => 'nullable|string|max:200', 'reference' => 'nullable|string|max:300',
|
||||
'context_revision' => 'nullable|integer|min:0', 'context_reviewed' => 'nullable|boolean', 'decision_date' => 'nullable|date_format:Y-m-d|before_or_equal:today'])->validate();
|
||||
@@ -203,7 +219,8 @@ final class InvestorPath
|
||||
$case = $this->desk->case($actor, $id, false, true);
|
||||
abort_if($case->closed_at, 409);
|
||||
abort_unless((int) $case->version === $data['version'], 409, 'O dossier mudou; recupere a versão actual.');
|
||||
$view = $this->view($actor, $id);
|
||||
$key = app(InvestmentConsumerScope::class)->key(app(InvestorContext::class)->state($case), $data['context_opportunity'] ?? null, true);
|
||||
$view = $this->view($actor, $id, $key);
|
||||
$step = $this->findStep($view, $code);
|
||||
abort_unless($step !== null && $step['preparation_allowed'], 422, 'Etapa dispensada de preparação; altere os pressupostos com fundamento.');
|
||||
$state = $data['state'];
|
||||
@@ -238,7 +255,10 @@ final class InvestorPath
|
||||
}
|
||||
abort_if($state === 'completed' && ($step['context_review_required'] ?? false) && (! (bool) ($data['context_reviewed'] ?? false) || ($data['context_revision'] ?? -1) !== ($view['investment_context']['revision'] ?? 0)), 422, 'O contexto desta etapa exige nova conferência fundamentada; o registo anterior permanece no histórico.');
|
||||
$detail = [...$data, 'context_dependency_hash' => $view['investment_context']['dependency_hash'] ?? null, 'fintech_fingerprint' => $view['fintech']['review_fingerprints'][$code] ?? null, 'scope' => $scope, 'actor_id' => $actor->id, 'recorded_at' => now()->toIso8601String()];
|
||||
DB::table('journey_steps')->where('id', $step['id'])->update(['path_detail' => $this->desk->encode($detail),
|
||||
$stored = $this->desk->decode(DB::table('journey_steps')->where('id', $step['id'])->value('path_detail'));
|
||||
if ($key) $stored['opportunities'][$key] = $detail;
|
||||
else $stored = [...$stored, ...$detail];
|
||||
DB::table('journey_steps')->where('id', $step['id'])->update(['path_detail' => $this->desk->encode($stored),
|
||||
'status' => in_array($state, ['completed', 'approved'], true) ? 'completed' : ($state === 'not_started' ? 'pending' : 'active'),
|
||||
'version_no' => $step['version'] + 1, 'updated_at' => now()]);
|
||||
DB::table('desk_cases')->where('id', $id)->update(['version' => $case->version + 1, 'updated_at' => now()]);
|
||||
@@ -267,11 +287,12 @@ final class InvestorPath
|
||||
abort_unless(is_array($parsed) && ($parsed['version'] ?? null) === 1 && is_array($parsed['data'] ?? null), 422, 'Snapshot financeiro incompatível.');
|
||||
$payload = $this->desk->decode($case->payload);
|
||||
$context = app(InvestorContext::class)->state($case);
|
||||
$opportunity = app(InvestmentConsumerScope::class)->key($context, $economic['context_opportunity'] ?? null, true);
|
||||
if ($context['revision'] > 0) {
|
||||
abort_unless(($data['context_revision'] ?? -1) === $context['revision'], 409, 'O contexto mudou; recupere e confira os pressupostos antes de devolver o resultado.');
|
||||
abort_unless($data['context_reviewed'] ?? false, 422, 'Confirme a revisão dos pressupostos financeiros para este contexto.');
|
||||
}
|
||||
$resultKey = hash('sha256', $draft->id.':'.$draft->version_no.':'.$snapshot.':context:'.$context['revision']);
|
||||
$resultKey = hash('sha256', $draft->id.':'.$draft->version_no.':'.$snapshot.':context:'.$context['revision'].($opportunity ? ':'.$opportunity : ''));
|
||||
foreach ($payload['investor_path']['results'] ?? [] as $result) {
|
||||
if ($result['source_key'] === $resultKey) {
|
||||
return $result;
|
||||
@@ -280,6 +301,7 @@ final class InvestorPath
|
||||
abort_unless((int) $case->version === $data['version'], 409, 'Recupere a versão actual do dossier.');
|
||||
$result = ['id' => (string) Str::uuid(), 'source_key' => $resultKey, 'draft_id' => $draft->id, 'draft_version' => $draft->version_no,
|
||||
'snapshot_sha256' => $draft->snapshot_sha256, 'financial_snapshot' => $snapshot,
|
||||
'context_opportunity' => $opportunity,
|
||||
'currency' => $economic['currency'] ?? null, 'engine' => 'financial-calculators:v1',
|
||||
'kind' => 'local_calculation_inputs', 'context_state' => 'current', 'context_revision' => $context['revision'], 'context_dependency_hash' => $context['dependency_hash'] ?? app(InvestorContext::class)->dependencyHash([]), 'recorded_at' => now()->toIso8601String()];
|
||||
$payload['investor_path']['results'][] = $result;
|
||||
|
||||
@@ -470,7 +470,10 @@ final class SimulationFormDrafts
|
||||
|
||||
private function landContext(array $economic, \stdClass $case, ?array $previous = null): array
|
||||
{
|
||||
$decision = app(InvestorContext::class)->landPreparation($case);
|
||||
$snapshot = json_decode($economic['context_applicability_snapshot'] ?? $previous['context_applicability_snapshot'] ?? '', true);
|
||||
$key = $economic['context_opportunity'] ?? $snapshot['consumer_opportunity'] ?? null;
|
||||
$key = app(InvestmentConsumerScope::class)->key(app(InvestorContext::class)->state($case), is_string($key) ? $key : null);
|
||||
$decision = app(InvestorContext::class)->landPreparation($case, $key);
|
||||
if ($decision['need'] !== 'yes' && $previous !== null) {
|
||||
if (array_key_exists('land_status', $previous)) $economic['land_status'] = $previous['land_status'];
|
||||
else unset($economic['land_status']);
|
||||
@@ -482,6 +485,8 @@ final class SimulationFormDrafts
|
||||
$snapshot = ['version' => 1, 'context_revision' => app(InvestorContext::class)->state($case)['revision']];
|
||||
}
|
||||
$snapshot['land_preparation'] = $decision;
|
||||
$snapshot['consumer_opportunity'] = $key;
|
||||
if ($key) $economic['context_opportunity'] = $key;
|
||||
$economic['context_applicability_snapshot'] = json_encode($snapshot, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
|
||||
|
||||
return $economic;
|
||||
|
||||
@@ -14,16 +14,31 @@ final class TerritoryGeometry
|
||||
abort_unless($geography->references($management)->where('id', $id)->exists(), 404);
|
||||
$path = $geography->path($id, $management);
|
||||
$ids = array_map(fn ($node) => $node->id, $path);
|
||||
$approved = app(ApprovedAdministrativeBoundaries::class);
|
||||
$rows = DB::table('geo_geometries as g')->join('geo_locations as l', 'l.id', '=', 'g.geo_location_id')
|
||||
->whereIn('g.geo_location_id', $ids)->whereNull('g.deleted_at')->whereNull('l.deleted_at')
|
||||
->whereIn('g.data_classification', $management ? ['internal', 'public'] : ['public'])
|
||||
->where(function ($query) use ($management, $approved) {
|
||||
$query->where('g.data_classification', 'public');
|
||||
$query->orWhere(function ($internal) use ($management, $approved) {
|
||||
$internal->where('g.data_classification', 'internal');
|
||||
if (! $management) {
|
||||
$internal->whereIn('g.id', array_keys($approved->snapshots()));
|
||||
}
|
||||
});
|
||||
})
|
||||
->whereRaw("g.properties->>'purpose' = 'administrative_boundary'")
|
||||
->whereIn('g.geometry_type', ['polygon', 'multipolygon'])
|
||||
->whereRaw('ST_IsValid(g.geom) AND NOT ST_IsEmpty(g.geom) AND ST_SRID(g.geom)=4326')
|
||||
->orderBy('g.geo_location_id')->orderBy('g.id')->limit(101)
|
||||
->get(['g.id', 'g.geo_location_id', 'l.name', 'l.location_type', 'g.properties', 'g.data_classification',
|
||||
DB::raw('ST_AsGeoJSON(ST_SimplifyPreserveTopology(g.geom,0.0001),6) as geometry')]);
|
||||
$areas = $rows->take(100)->map(function ($row) use ($id) {
|
||||
DB::raw('ST_AsGeoJSON(ST_SimplifyPreserveTopology(g.geom,0.0001),6) as geometry'),
|
||||
DB::raw("encode(sha256(ST_AsEWKB(g.geom)),'hex') as geometry_sha256"),
|
||||
DB::raw("encode(sha256(convert_to(g.properties::text,'UTF8')),'hex') as properties_sha256")]);
|
||||
if (! $management) {
|
||||
$rows = $rows->filter(fn ($row) => $row->data_classification === 'public'
|
||||
|| $approved->allows($row->id, $row->geo_location_id, $row->geometry_sha256, $row->properties_sha256))->values();
|
||||
}
|
||||
$areas = $rows->take(100)->map(function ($row) use ($id, $management) {
|
||||
$source = json_decode($row->properties, true, 512, JSON_THROW_ON_ERROR);
|
||||
|
||||
return ['id' => $row->id, 'territory_id' => $row->geo_location_id, 'location_type' => $row->location_type,
|
||||
@@ -31,7 +46,7 @@ final class TerritoryGeometry
|
||||
'title' => 'Limite administrativo: '.$row->name, 'purpose' => 'administrative_boundary',
|
||||
'source_reference' => $source['authority'] ?? null, 'source_date' => $source['source_version'] ?? null,
|
||||
'source_url' => $source['source_url'] ?? null, 'source_sha256' => $source['source_sha256'] ?? null,
|
||||
'data_classification' => $row->data_classification, 'legal_currentness' => $source['legal_currentness'] ?? 'not_determined', 'url' => ''];
|
||||
'data_classification' => $management ? $row->data_classification : 'public', 'legal_currentness' => $source['legal_currentness'] ?? 'not_determined', 'url' => ''];
|
||||
})->all();
|
||||
|
||||
return ['territory_id' => $id, 'territory_registered' => true,
|
||||
|
||||
@@ -78,3 +78,6 @@
|
||||
"Cópia privada ou derivado";"C:\laragon\www\portal-investidor\storage\app\private\portal-documents\b0ea969a-30ec-477b-8b8b-b7af82a11bfe";"b0ea969a-30ec-477b-8b8b-b7af82a11bfe";"67067";"5C69B6F189A1D3F5307E0CF7DD8224554705158A682637D3105AFAD615DB26E2";"b0ea969a-30ec-477b-8b8b-b7af82a11bfe";"C:\laragon\www\portal-investidor\storage\app\private\geo-ine-review-20260928\original.pdf + C:\laragon\www\portal-investidor\storage\app\private\geo-ine-review-20260928-v2\original.pdf + C:\laragon\www\portal-investidor\storage\app\private\portal-documents\b0ea969a-30ec-477b-8b8b-b7af82a11bfe";"Private stored copy already represented by its document record";"Acessível em armazenamento privado";"Inventariado por caminho, tamanho e SHA-256; não publicado nem aberto nesta revisão."
|
||||
"Formulario fornecido Tempo";"\\Mac\Home\Documents\TEMPO\Portal Tempo\Servicos Tempo\portal do investidor\Notas\Novo Modelo A.docx";"Novo Modelo A.docx";"532008";"62C198E90D8C6792F7D5CCEFC6386DF2E4B6089573067D3A6E1EAE7FC2B9572B";"IVA Modelo A - exemplar Tempo";"";"Original privado na biblioteca QA; sem publicacao ou activacao";"Acessivel / importado QA / privado / scan limpo";"Imagem incorporada lida visualmente; edicao/vigencia nao certificada. Correspondencia na reconciliacao Modelo A, AUD-SIM-INT02. Variante de bytes preservada, nao duplicado por nome."
|
||||
"Formulario fornecido Tempo";"\\Mac\Home\Documents\TEMPO\Portal Tempo\Servicos Tempo\portal do investidor\Notas\Novo Modelo A v1.docx";"Novo Modelo A v1.docx";"532100";"63D45FA80DB17A60B43619D55A25813229D670D14C758273F86316285DB8E02B";"IVA Modelo A - exemplar Tempo";"";"Original privado na biblioteca QA; sem publicacao ou activacao";"Acessivel / importado QA / privado / scan limpo";"Imagem incorporada lida visualmente; edicao/vigencia nao certificada. Correspondencia na reconciliacao Modelo A, AUD-SIM-INT02. Variante de bytes preservada, nao duplicado por nome."
|
||||
"Documento oficial localizado para consultaQA";"C:\laragon\www\portal-investidor\outputs\iva-l1-g5d-offer-drafts-20261024\BR-11-I-2010-03-17-despacho-modelos.pdf";"BR-11-I-2010-03-17-despacho-modelos.pdf";"376928";"384fb46354e1888df43f72288dfed7933e30c7534211e0dcb6994f43b10e0059";"BR11/I Série17/03/2010,DespachoMF06/01/2010,ModelosRCBFDecreto56/2009";"";"Preservar original e origem;sem publicação/importação/activação de regra";"Acessível";"PDF1–5 lidos;ModeloI.1versoPDF3 localizado;âmbito ligação14(3)/alterações por conferir,sem nova autenticação da fonte oficial"
|
||||
"Fonte oficial localizada para cotejoQA";"C:\laragon\www\portal-investidor\outputs\iva-l1-g6e-supplies-20261024\Decreto56-2009-BR40.pdf";"Decreto56-2009-BR40.pdf";"422005";"6ea1b8d93daed48c6d590481d874010fa1708211d8f27c319dc9a31328456017";"Decreto56/2009/CBFLei4/2009 — originalBR40 ecompilaçãoMIREME";"";"Preservar original/origem;sem publicação ou activação de cálculo";"Acessível";"CotejoModeloI.1;âmbitoCBF não demonstra remissãoCIVA14(3);não autenticação adicional"
|
||||
"Fonte oficial localizada para cotejoQA";"C:\laragon\www\portal-investidor\outputs\iva-l1-g6e-supplies-20261024\MIREME-legislacao-investimentos.pdf";"MIREME-legislacao-investimentos.pdf";"1674566";"df50f6a489ffb35a4252fddec0ffa1f9c58d7b8cb4e54c9f25b7904bd39218b7";"Decreto56/2009/CBFLei4/2009 — originalBR40 ecompilaçãoMIREME";"";"Preservar original/origem;sem publicação ou activação de cálculo";"Acessível";"CotejoModeloI.1;âmbitoCBF não demonstra remissãoCIVA14(3);não autenticação adicional"
|
||||
|
||||
|
@@ -24,3 +24,6 @@
|
||||
"docs/investmoz/simulations/official-source-register.md";"sumário oficial INM do BR 134/2024";"https://www.inm.gov.mz/pt-br/content/sum%C3%A1rio-br-n%C2%BA-134-de-110724-boletim-da-rep%C3%BAblica-i-serie-p%C3%A1g-2827";"Não identificado por esta referência; URL registada";"Referência de pesquisa/documentação; não conta como ficheiro importado";"Manter como fonte externa a obter/conferir; não activa regra fiscal"
|
||||
"docs/investmoz/simulations/official-source-register.md";"ficha oficial INM do aviso";"https://www.inm.gov.mz/pt-br/content/assembleia-da-rep%C3%BAblica-br-n%C2%BA-89-de-080617-boletim-da-rep%C3%BAblica-i-serie-p%C3%A1g-569";"Não identificado por esta referência; URL registada";"Referência de pesquisa/documentação; não conta como ficheiro importado";"Manter como fonte externa a obter/conferir; não activa regra fiscal"
|
||||
"docs/investmoz/simulations/official-source-register.md";"reprodução integral de terceiro, auxiliar";"https://www.lexlink.eu/FileGet.aspx?FileId=2999523";"Não identificado por esta referência; URL registada";"Referência de pesquisa/documentação; não conta como ficheiro importado";"Manter como fonte externa a obter/conferir; não activa regra fiscal"
|
||||
"docs/investmoz/simulations/iva-l1-p084-p085-draft-preparation-qa-20261024.json";"BR11/2010,DespachoMF06/01/2010,ModeloI.1versoPDF3";"https://www.cipmoz.org/wp-content/uploads/2023/parcerias-publico-privadas/9PP%29%20Despacho_Mecanismos%20Implementacao%20do%20Regulamento%20do%20Codigo%20dos%20Beneficios%20Fiscais.pdf";"C:\laragon\www\portal-investidor\outputs\iva-l1-g5d-offer-drafts-20261024\BR-11-I-2010-03-17-despacho-modelos.pdf";"Original oficialBR obtido/hash;âmbito específico ainda por conferir";"Consulta autorizada;sem publicação ou activação fiscal"
|
||||
"docs/investmoz/simulations/iva-l1-p084-p085-model-i1-cotejo-20261024.json";"Decreto56/2009/RegCBFLei4/2009,origemModeloI.1";"https://fracessoriasa.co.mz/wp-content/uploads/2021/03/10-Decreto-n_56.2009-REGULAMENTO-DOS-BENEFICIOS-FISCAIS.pdf";"C:\laragon\www\portal-investidor\outputs\iva-l1-g6e-supplies-20261024\Decreto56-2009-BR40.pdf";"OriginalBR ecompilaçãooficial obtidos/hash,âmbito cotejado";"Sem correspondênciaCIVA14(3)demonstrada;sem publicação ou activação fiscal"
|
||||
"docs/investmoz/simulations/iva-l1-p084-p085-model-i1-cotejo-20261024.json";"Decreto56/2009/RegCBFLei4/2009,origemModeloI.1";"https://mireme.gov.mz/wp-content/uploads/2022/03/Lei-e-Regualamento-das-zonas-francas-industriais-investimentos.pdf";"C:\laragon\www\portal-investidor\outputs\iva-l1-g6e-supplies-20261024\MIREME-legislacao-investimentos.pdf";"OriginalBR ecompilaçãooficial obtidos/hash,âmbito cotejado";"Sem correspondênciaCIVA14(3)demonstrada;sem publicação ou activação fiscal"
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"key": "iva_l1_g4e_beneficiaries_code_API_QA_visual_pending_20261024",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"base": "3be371c8",
|
||||
"group": "G4E",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P061": "export_nonresident_buyer",
|
||||
"AUD-SIM-L1-P069": "export_diplomatic_mission",
|
||||
"AUD-SIM-L1-P070": "export_international_organisation",
|
||||
"AUD-SIM-L1-P071": "export_humanitarian_organisation"
|
||||
},
|
||||
"branch_count": 4,
|
||||
"treatment_count": 4,
|
||||
"source": "CIVA13(1)(b/j/k/l),PDF12/p1426(270),19(1)(b)(i),PDF15/p1426(273); alterações2022/2025 reutilizadas",
|
||||
"preservation": {
|
||||
"initial_worktree": "clean at3be371c8",
|
||||
"accepted_delivered": 58,
|
||||
"prior_books": 18,
|
||||
"prior_books_identical_current": true,
|
||||
"confirmed_losses": [],
|
||||
"active": "No remote changes; accepted G4D inventory reused, not freshly re-read"
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 3,
|
||||
"frontend_delta_with_G4D": 7,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 39,
|
||||
"database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"rollback": true,
|
||||
"types": "passed",
|
||||
"production": "built successfully; plugin timings warning; PowerShell classified native stderr as nonzero",
|
||||
"visual": false,
|
||||
"report_visual": false,
|
||||
"Word_PDF": "accepted exporter proofs reused; no pagination claim",
|
||||
"QA_build": "built successfully; existing future Vite config compatibility warning",
|
||||
"QA_storage": "save/recover/reject passed in temporary directory",
|
||||
"QA_HTTP": "200 HTML and module entrypoints; no visual claim"
|
||||
},
|
||||
"limits": "2026/MZN; projecção sob condições/documento ou pressuposto expresso, sem certificar exportação, acordo, reconhecimento ou despacho. Sem isenção geral do destinatário, dedução automática de compras, apuramento integral IVA ou submissãoAT. Bebidas permanecemL2/L3; P001só05/06; Estatísticas/IAadiadas.",
|
||||
"counts": {
|
||||
"delivered": 62,
|
||||
"QA_ready_for_delivery": 0,
|
||||
"functional_pending": 70,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"candidate": "38faeac6",
|
||||
"manual_visual_completion": {
|
||||
"status": "demonstrated_QA_not_installed",
|
||||
"candidate": "38faeac6",
|
||||
"prior_code_record": "d03101bb",
|
||||
"group": "G4E",
|
||||
"branches": [
|
||||
"P061",
|
||||
"P069",
|
||||
"P070",
|
||||
"P071"
|
||||
],
|
||||
"visual": {
|
||||
"actor": "Tempo",
|
||||
"method": "manual",
|
||||
"url": "http://127.0.0.1:18639/g4e.html",
|
||||
"request": "Quatro tratamentos; condição em falta sem apagar preço; Guardar → Recuperar → Relatório",
|
||||
"reply_exact": "ja efectuado",
|
||||
"tool_visual_observation": false,
|
||||
"no_repeat_of_accepted_proofs": true
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 58,
|
||||
"QA": 4,
|
||||
"functional_pending": 70,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation": "686328a0/3be371c8",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
"beverages": "L2/L3; not closed",
|
||||
"statistics_AI": "deferred"
|
||||
},
|
||||
"visual_pending_historical": {
|
||||
"url": "http://127.0.0.1:18639/g4e.html",
|
||||
"reason": "Browser inventory empty; Edge reports Browser is not available. No security setting changed or workaround.",
|
||||
"request": "Quatro tratamentos; retirar condição de acordo/reconhecimento torna apuramento indeterminado sem apagar preço; Guardar → Recuperar → Relatório; comparar G4D preservado."
|
||||
},
|
||||
"delivery_followup": {
|
||||
"served_commit": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"record": "iva_l1_g4e_homologation_20261024",
|
||||
"receipt": "l1-g4e-delivery-20261024.json"
|
||||
},
|
||||
"qa_acceptance_counts": {
|
||||
"delivered": 58,
|
||||
"QA_ready_for_delivery": 4,
|
||||
"functional_pending": 70,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"qa_acceptance_status": "demonstrated_QA_not_installed"
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"key": "iva_l1_g5a_special_regimes_QA_demonstrated_20261024",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"candidate": "1f7fc13872bd706f583a6f4d29024cd3c22ec265",
|
||||
"base": "0eb2c485",
|
||||
"homologation": "2e21ca45/0eb2c485",
|
||||
"group": "G5A",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P081": [
|
||||
"regime_dispatch_goods",
|
||||
"regime_dispatch_transport"
|
||||
],
|
||||
"AUD-SIM-L1-P082": [
|
||||
"regime_internal_goods",
|
||||
"regime_internal_services"
|
||||
],
|
||||
"AUD-SIM-L1-P083": [
|
||||
"regime_transit_goods",
|
||||
"regime_transit_transport"
|
||||
]
|
||||
},
|
||||
"branch_count": 3,
|
||||
"treatment_count": 6,
|
||||
"source": "CIVA14(1)(b/c/d),PDF13/p1426(271),19(1)(b)(iv),PDF15/p1426(273);Lei22/2022art1;Lei10/2025art1/PDF12–13; fontes aceites, texto/remissões conferidos",
|
||||
"new_field": "specialRegime opcional nos livros anteriores,obrigatório nos seis tratamentos; selecção apenas do regime compatível com a alínea; escolha não comprova as condições",
|
||||
"preservation": {
|
||||
"delivered": 62,
|
||||
"prior_books": 19,
|
||||
"prior_books_identical_current_without_recalculation": true,
|
||||
"UI_prior_books_identical": true,
|
||||
"confirmed_losses": [],
|
||||
"active_inventory": "Accepted G4E receipt reused; no fresh active query/mutation claimed"
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 4,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 44,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed; existing plugin timing warnings",
|
||||
"QA_build": "passed; existing future config/chunk size warnings",
|
||||
"QA_storage": "save/recover/reject passed in temporary directory",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge extension/CUA observed actions",
|
||||
"URL": "http://127.0.0.1:18640/g5a.html",
|
||||
"observed": [
|
||||
"six distinct treatments initially visible",
|
||||
"no-final-use condition unchecked -> indeterminate; price100MZN retained",
|
||||
"unknown regime -> indeterminate; price/currency/period retained",
|
||||
"restore regime and explicitly recheck conditions ->600MZN/05",
|
||||
"Guardar -> Recuperar -> Relatório with context/regime/source and totals",
|
||||
"three previous results in history;19priorbooks unchanged"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "outputs/iva-l1-g5-regimes-20261024/qa-recovered-report.png",
|
||||
"screenshot_sha256": "ec68a1287ade198f34544fed0e5b1f49a6c15c2e6855fcaf13dc34ceb45c8772"
|
||||
},
|
||||
"Word_PDF": "accepted exporter/numeric proofs reused; no new pagination claim"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 65,
|
||||
"QA": 0,
|
||||
"functional_pending": 67,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G5": {
|
||||
"delivered": 3,
|
||||
"QA": 0,
|
||||
"functional_pending": 4
|
||||
},
|
||||
"limits": "2026/MZN; condição inicial14(1),regime/destino/permanência e ligação directa próprios; preço distinto dos bens/serviços. Sem isenção pelo mapa, certificação de regime, cálculo da própria importação/saída, aquisições14(2),dedução automática ou submissãoAT. P080/P084/P085/P086 continuam pendentes. L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"G4E_summary_reused": {
|
||||
"P061": "export_nonresident_buyer",
|
||||
"P069": "export_diplomatic_mission",
|
||||
"P070": "export_international_organisation",
|
||||
"P071": "export_humanitarian_organisation"
|
||||
},
|
||||
"qa_acceptance_status": "demonstrated_QA_not_installed",
|
||||
"qa_acceptance_counts": {
|
||||
"delivered": 62,
|
||||
"QA": 3,
|
||||
"functional_pending": 67,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"delivery_followup": {
|
||||
"served_commit": "69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75",
|
||||
"record": "iva_l1_g5a_homologation_20261024",
|
||||
"receipt": "l1-g5a-delivery-20261024.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
{
|
||||
"key": "iva_l1_g5b_P086_acquisition_continuity_QA_demonstrated_20261024",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"candidate": "689a4c93c33cd737c6fc90823533b34b5219b5d3",
|
||||
"base": "d3e9f373",
|
||||
"homologation": "69f2e365/d3e9f373",
|
||||
"group": "G5B",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P086": "former_exploration_exemption -> explicit normal acquisition continuation"
|
||||
},
|
||||
"branch_count": 1,
|
||||
"scope": "nonapplication and continuation;not a newly active exemption",
|
||||
"source": {
|
||||
"rectification": {
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-89-I-Serie-2017-06-08.pdf",
|
||||
"bytes": 9456358,
|
||||
"sha256": "11f0cab15eb6e51010952203ffa24fdc533a24fd642e19525fe4f46b17a1f5e5",
|
||||
"pages": 16
|
||||
},
|
||||
"page": "PDF1/p569,visual inspected",
|
||||
"CIVA_original": "14(2)(c),PDF13/p1426(271)",
|
||||
"2022_2025": "art1 lists checked;no reintroduction14(2)(c)",
|
||||
"acceptance": "Tempo08/10/2026;no generic provenance/legal revalidation added"
|
||||
},
|
||||
"inventory": {
|
||||
"archive_files": [
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-16-I-Serie-2008-04-16.pdf",
|
||||
"bytes": 2267865,
|
||||
"sha256": "fc373ff5637edf75ec6a9595dec8763a8503d4ee786e3b7d8f1c742eae9d80ee",
|
||||
"pages": 28
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-248-I-Suplemento-1-2025.pdf",
|
||||
"bytes": 440018,
|
||||
"sha256": "ccf2a8deeca820f2dd076b4b2141b1efe3f6a806568c3a587ca59a8e92f4c251",
|
||||
"pages": 21
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-89-I-Serie-2017-06-08.pdf",
|
||||
"bytes": 9456358,
|
||||
"sha256": "11f0cab15eb6e51010952203ffa24fdc533a24fd642e19525fe4f46b17a1f5e5",
|
||||
"pages": 16
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-95-I-Suplemento-2025-05-21.pdf",
|
||||
"bytes": 329070,
|
||||
"sha256": "e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358",
|
||||
"pages": 2
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-13-2016-CIVA-BR-156-10-suplemento.pdf",
|
||||
"bytes": 2127554,
|
||||
"sha256": "b90dc7c14ecea2e378c4a62e8e5a47d54a5644c457baeb8b8053b92fd2a5710b",
|
||||
"pages": 32
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-22-2022-IVA-republicada-BR-250-2-suplemento.pdf",
|
||||
"bytes": 1834284,
|
||||
"sha256": "ea1b0dc6f5cf6e595f6d9a19e7042f398999e0087caef1785f6e8fac571b5f53",
|
||||
"pages": 18
|
||||
}
|
||||
],
|
||||
"existing_corpus_references": [
|
||||
{
|
||||
"path": "docs/investmoz/document-corpus-inventory-2026-10-06.csv",
|
||||
"sha256": "3a24442558ad2b9d4ac9b58cc6d281bd0db83b4c93d4696e30a6f8981d9eaa7b",
|
||||
"usage": "existing corpus/source inventory reused; no claim of newly reviewing every source"
|
||||
},
|
||||
{
|
||||
"path": "docs/investmoz/fiscal-source-references-2026-10-06.csv",
|
||||
"sha256": "f2fde2257fd481f984e59bdfc62ce209c849b350961111616d2c2927c1421d6f",
|
||||
"usage": "existing corpus/source inventory reused; no claim of newly reviewing every source"
|
||||
}
|
||||
]
|
||||
},
|
||||
"preservation": {
|
||||
"delivered": 65,
|
||||
"sales_books": 20,
|
||||
"sales_books_identical_current_without_recalculation": true,
|
||||
"purchase_books_in_frozen_fixture": 0,
|
||||
"UI_previous_sales_identical": true,
|
||||
"new_purchase_context": "opportunity:329",
|
||||
"UI_history_count": 3,
|
||||
"confirmed_losses": [],
|
||||
"active": "Accepted G5A receipt reused;no fresh active query/mutation"
|
||||
},
|
||||
"implementation": {
|
||||
"optional_fields": [
|
||||
"acquisitionTreatment",
|
||||
"acquisitionTreatmentOrigin",
|
||||
"AcquisitionBook.history"
|
||||
],
|
||||
"legacy_fields": "No new mandatory keys on previous rows/books;scoped continuity version only on new chosen treatment",
|
||||
"manual_periods": "calculate only explicit purchase-book months;budget reuse still verifies existing source;no sales month required for direct entries",
|
||||
"period_change_impact": "Report includes declared purchase months rather than implicit financial-plan months;previous accepted4-month scenarios pass;no frozen result recalculated",
|
||||
"history": "Previous result snapshots retained when explicitly recalculating;old reference/document/values/answers conserved",
|
||||
"not_applicable_UI": "Normal deduction controls hidden while former eliminated reference selected;no deleted data"
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 4,
|
||||
"existing_changed_acquisition_suite": 8,
|
||||
"frontend_total": 12,
|
||||
"latest_delta": 4,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 45,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin timing warnings",
|
||||
"QA_build": "passed;existing config/chunk warnings",
|
||||
"QA_storage": "save/recover/reject passed in temporary directory",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18641/g5b.html",
|
||||
"observed": [
|
||||
"former14(2)(c) selected -> eliminated notice;deduction indeterminate,100/16/116MZN retained",
|
||||
"normal deduction controls hidden while nonapplicable",
|
||||
"explicit continue ->normal controls/facts restored;calculate ->16MZN field10 under normal declared conditions",
|
||||
"Guardar -> Recuperar -> Relatório with document,source,period/context;17/18 remain indeterminate",
|
||||
"three results in history and20salesbooks unchanged in saved file"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "outputs/iva-l1-g5b-acquisitions-20261024/qa-recovered-report.png",
|
||||
"screenshot_sha256": "e29df1a8daf66f43ab7aaab9f78f472cf331272860aaac0edcde6ff40fd3a9d5"
|
||||
},
|
||||
"Word_PDF": "Existing exporter/numeric proofs reused;no new pagination claim"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 66,
|
||||
"QA": 0,
|
||||
"functional_pending": 66,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G5": {
|
||||
"delivered": 4,
|
||||
"QA": 0,
|
||||
"functional_pending": 3
|
||||
},
|
||||
"limits": "2026/MZN;P086 é não aplicação da antiga14(2)(c),eliminada pelo Aviso2017,e continuidade deliberada na aquisição normal; não é isenção nova/activa nem cálculo retroactivo. Sem taxa presumida,dedução automática,importação,apuramento integral ou submissãoAT. P080/P084/P085 pendentes. L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"qa_acceptance_status": "demonstrated_QA_not_installed",
|
||||
"qa_acceptance_counts": {
|
||||
"delivered": 65,
|
||||
"QA": 1,
|
||||
"functional_pending": 66,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"delivery_followup": {
|
||||
"served_commit": "6f056359df4231f9e1802922782b21263a8dae0b",
|
||||
"record": "iva_l1_g5b_homologation_20261024",
|
||||
"receipt": "l1-g5b-delivery-20261024.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
{
|
||||
"candidate": "9842dcbb0e570bc9af6d4f0d20b76f67bee30178",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"coverage": {
|
||||
"P080": [
|
||||
"special_economic_zone_import",
|
||||
"free_zone_import",
|
||||
"free_warehouse_import",
|
||||
"general_free_warehouse_import",
|
||||
"customs_warehouse_import",
|
||||
"duty_free_shop_import"
|
||||
]
|
||||
},
|
||||
"source": "Lei13/2016,CIVA14(1)(a),initial condition14(1),PDF13/p1426(271);no14change in consulted2022/2025 amendments",
|
||||
"source_reused": "Existing six-file source archive and general corpus/reference inventories;official source acceptanceTempo08/10;not reauthenticated",
|
||||
"legal_interpretation_limits": "P080 own import,not sale;not mere geography;all six regimes,customs control,applicable provisions,permanence,no final use/consumption;no automatic field11/duties/normalVAT",
|
||||
"tests": {
|
||||
"frontend": {
|
||||
"passed": 20,
|
||||
"failed": 0,
|
||||
"new": 3,
|
||||
"record": "node:test tool output this session;no separately saved stdout claimed"
|
||||
},
|
||||
"API": {
|
||||
"tests": 1,
|
||||
"assertions": 26,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g5c-review-20261024\\api-tests.xml",
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transactions": "rollback"
|
||||
},
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin/chunk warnings",
|
||||
"UI": "Codex Edge/CUA,real component;unknown->indeterminate,no->nonapplication,yes->exempt;save/recover/report;not manualTempo acceptance",
|
||||
"synthetic_QA_storage": "1 test passed;UTF8 multibyte buffer decoding preserved"
|
||||
},
|
||||
"preservation": {
|
||||
"base": "e384418ecc76ed77fe34a30814c4737a96887b00",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"preservation": "Reuse accepted G6C installed receipt d46b794a/2ed62165; no active code/schema/data/config/permissions changes in this QA task",
|
||||
"frozen": "tests/frontend/fixtures/iva-g6d-inputs.json",
|
||||
"frozen_sha256": "26f9b75b4b436bfd2e21487b8eed12e8db62e9ebfc46e3ace9c92271994fc80b",
|
||||
"books": {
|
||||
"sales": 20,
|
||||
"acquisitions": 1,
|
||||
"imports": 4
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 72,
|
||||
"QA": 1,
|
||||
"pending": 59,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6D": "P048 remains QA, not installed"
|
||||
},
|
||||
"UI_book": {
|
||||
"rows": 6,
|
||||
"history": 5,
|
||||
"opportunity": "334",
|
||||
"province": "Manica",
|
||||
"period": "2026-12",
|
||||
"document_date": "2026-11-14"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 2,
|
||||
"functional_pending": 58,
|
||||
"documentary_P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"active": "unchanged d46b794a/2ed62165;no push,installation,migration or active data change",
|
||||
"other_QA": "P048 G6D candidate0eb37ef5 preserved,not delivered",
|
||||
"pending": {
|
||||
"P084": {
|
||||
"source": "14(2)(a),14(3),samePDF13",
|
||||
"treatment": "Acquisition/import of goods for gifts to national public-interest/relevant-social institutions;goods wholly suitable and used in evident public-interest activities;no services",
|
||||
"documentary": "Application procedure referred to in14(3) not located in consulted sources;not declared nonexistent",
|
||||
"development": "Specific acquisition/import flow absent;common persistence/report reused",
|
||||
"verification": "Not performed for this branch",
|
||||
"action": "Locate applicable implementing provision and amendments/scope,then implement only express conditions and verify save/recover/report",
|
||||
"estimate": "6–10h preliminary development/verification after documentary delimitation;unmeasured;document retrieval ETA unknown"
|
||||
},
|
||||
"P085": {
|
||||
"source": "14(2)(b),14(3),samePDF13",
|
||||
"treatment": "Acquisition of goods for gifts mitigating effects of natural disasters;no automatic extension to import/services",
|
||||
"documentary": "Application procedure referred to in14(3) not located in consulted sources;not declared nonexistent",
|
||||
"development": "Specific acquisition/goods/disaster-purpose flow absent",
|
||||
"verification": "Not performed for this branch",
|
||||
"action": "Locate applicable implementation procedure;reuse P084 common fields while keeping own scope;verify complete flow",
|
||||
"estimate": "4–8h preliminary after documentary delimitation,reusingP084;unmeasured;retrieval ETA unknown"
|
||||
}
|
||||
},
|
||||
"limits": "72delivered remainclosed;L1open;P001only05/06;beveragesL2/L3;Statistics/AIdeferred;L1closure doesnot requireL2/L3/alltaxes",
|
||||
"qa_status_preserved": "P080 demonstrated QA,not delivered;P084/P085 individually diagnosed and still pending",
|
||||
"delivery_followup": {
|
||||
"served_commit": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"record": "iva_l1_P048_P080_joint_homologation_20261024",
|
||||
"receipt": "l1-g6d-g5c-delivery-20261024.json",
|
||||
"counts": {
|
||||
"delivered": 74,
|
||||
"QA": 0,
|
||||
"functional_pending": 58,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
{
|
||||
"key": "iva_l1_g6a_P049_P051_import_exemptions_QA_demonstrated_20261024",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"candidate": "965da2642627ad1e484d52587e07b4a60cae6af2",
|
||||
"base": "e99ea1d0",
|
||||
"homologation": "6f056359/e99ea1d0",
|
||||
"group": "G6A",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P049": "reimport_same_state",
|
||||
"AUD-SIM-L1-P051": "central_bank_gold"
|
||||
},
|
||||
"branch_count": 2,
|
||||
"source": {
|
||||
"reference": "CIVA12(1)(d/f),Lei13/2016PDF11/p1426(269),visual inspected;2022PDF2/p2252(26) and2025PDF12–13/p2180(12–13) retain d/f",
|
||||
"acceptance": "Tempo08/10/2026;no new generic authenticity/legal approval",
|
||||
"archive": [
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-16-I-Serie-2008-04-16.pdf",
|
||||
"sha256": "fc373ff5637edf75ec6a9595dec8763a8503d4ee786e3b7d8f1c742eae9d80ee",
|
||||
"pages": 28
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-248-I-Suplemento-1-2025.pdf",
|
||||
"sha256": "ccf2a8deeca820f2dd076b4b2141b1efe3f6a806568c3a587ca59a8e92f4c251",
|
||||
"pages": 21
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-89-I-Serie-2017-06-08.pdf",
|
||||
"sha256": "11f0cab15eb6e51010952203ffa24fdc533a24fd642e19525fe4f46b17a1f5e5",
|
||||
"pages": 16
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-95-I-Suplemento-2025-05-21.pdf",
|
||||
"sha256": "e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358",
|
||||
"pages": 2
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-13-2016-CIVA-BR-156-10-suplemento.pdf",
|
||||
"sha256": "b90dc7c14ecea2e378c4a62e8e5a47d54a5644c457baeb8b8053b92fd2a5710b",
|
||||
"pages": 32
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-22-2022-IVA-republicada-BR-250-2-suplemento.pdf",
|
||||
"sha256": "ea1b0dc6f5cf6e595f6d9a19e7042f398999e0087caef1785f6e8fac571b5f53",
|
||||
"pages": 18
|
||||
}
|
||||
],
|
||||
"existing_corpus_references": [
|
||||
"docs/investmoz/document-corpus-inventory-2026-10-06.csv",
|
||||
"docs/investmoz/fiscal-source-references-2026-10-06.csv"
|
||||
]
|
||||
},
|
||||
"preservation": {
|
||||
"base": "e99ea1d0137543ca3fc37cb2c79732f3bb7c3edf",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_active_receipt": "l1-g5b-delivery-20261024.json;6f056359/e99ea1d0;174tables/369files/29published/28relations/408geometries;no schema/content/permissions changes",
|
||||
"frozen_fixture_sha256": "96f239cd9edd6d522447ce16e7b6dc32610f836a9d25dc8ea8789fb3042cf6f2",
|
||||
"sales_books": 20,
|
||||
"purchase_books": 1,
|
||||
"preserved_open": [
|
||||
"P080",
|
||||
"P084",
|
||||
"P085"
|
||||
],
|
||||
"counts": {
|
||||
"delivered": 66,
|
||||
"QA": 0,
|
||||
"functional_pending": 66,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 5,
|
||||
"affected_report_tests": 14,
|
||||
"frontend_total": 19,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 20,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject passed,temporary file only",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18642/g6a.html",
|
||||
"observed": [
|
||||
"unknown condition ->indeterminate",
|
||||
"failed condition ->nonapplication,normal tax unknown",
|
||||
"affirmative conditions ->exempt import VAT0.00",
|
||||
"switch treatment ->only applicable questions;answers,document,1000MZN retained",
|
||||
"save/recover/report ->P049/P051,Manica,2026-12,documents,sources",
|
||||
"three previous UI results;20salesbooks and1purchasebook identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6a-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "e6914778f6513e2ea22850d1b30a79ff3592e0c8085cb09c38f1ffb23541cf9c"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"implementation": {
|
||||
"optional_snapshot_key": "importExemptions",
|
||||
"no_schema_change": true,
|
||||
"legacy_books": "no additional required fields;20sales and1purchase unchanged/current",
|
||||
"data_conditions": "per branch;unknown != false;no ordinary rate inferred",
|
||||
"value": "declared/previsional value preserved,optional;no invented customs taxable base",
|
||||
"period": "explicit import period independent from supporting document date and sales calendar",
|
||||
"history": "explicit classification archives previous result;edits keep historical state;reports show only applicable conditions",
|
||||
"roll_back": "l1-g6a-readonly-rollback-20261024.patch checked,not applied;readers/history/reports retained"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 68,
|
||||
"QA": 0,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 2,
|
||||
"QA": 0,
|
||||
"functional_pending": 13
|
||||
},
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(d/f),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"qa_acceptance_status": "demonstrated_QA_not_installed",
|
||||
"qa_acceptance_counts": {
|
||||
"delivered": 66,
|
||||
"QA": 2,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"delivery_followup": {
|
||||
"served_commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"record": "iva_l1_g6a_homologation_20261024",
|
||||
"receipt": "l1-g6a-delivery-20261024.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
{
|
||||
"key": "iva_l1_g6b_P055_P057_import_exemptions_QA_demonstrated_20261024",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"candidate": "f75f36f0e36a5d9981f631b6e22f3c9e723ee454",
|
||||
"base": "a23f1dcb",
|
||||
"homologation": "e3601c12/a23f1dcb",
|
||||
"group": "G6B",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P055": "author_art_import",
|
||||
"AUD-SIM-L1-P057": "fire_brigade_vehicle"
|
||||
},
|
||||
"branch_count": 2,
|
||||
"source": {
|
||||
"reference": "CIVA12(1)(j/l),Lei13/2016PDF11/p1426(269),visual inspected;2022PDF2/p2252(26) and2025PDF12–13/p2180(12–13) retain j/l",
|
||||
"acceptance": "Tempo08/10/2026;no new generic authenticity/legal approval",
|
||||
"archive": [
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-16-I-Serie-2008-04-16.pdf",
|
||||
"sha256": "fc373ff5637edf75ec6a9595dec8763a8503d4ee786e3b7d8f1c742eae9d80ee",
|
||||
"pages": 28
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-248-I-Suplemento-1-2025.pdf",
|
||||
"sha256": "ccf2a8deeca820f2dd076b4b2141b1efe3f6a806568c3a587ca59a8e92f4c251",
|
||||
"pages": 21
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-89-I-Serie-2017-06-08.pdf",
|
||||
"sha256": "11f0cab15eb6e51010952203ffa24fdc533a24fd642e19525fe4f46b17a1f5e5",
|
||||
"pages": 16
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-95-I-Suplemento-2025-05-21.pdf",
|
||||
"sha256": "e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358",
|
||||
"pages": 2
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-13-2016-CIVA-BR-156-10-suplemento.pdf",
|
||||
"sha256": "b90dc7c14ecea2e378c4a62e8e5a47d54a5644c457baeb8b8053b92fd2a5710b",
|
||||
"pages": 32
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-22-2022-IVA-republicada-BR-250-2-suplemento.pdf",
|
||||
"sha256": "ea1b0dc6f5cf6e595f6d9a19e7042f398999e0087caef1785f6e8fac571b5f53",
|
||||
"pages": 18
|
||||
}
|
||||
],
|
||||
"existing_corpus_references": [
|
||||
"docs/investmoz/document-corpus-inventory-2026-10-06.csv",
|
||||
"docs/investmoz/fiscal-source-references-2026-10-06.csv"
|
||||
]
|
||||
},
|
||||
"preservation": {
|
||||
"base": "a23f1dcb6e886a6de75917f17f2da4b9ab94599e",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_active_receipt": "l1-g6a-delivery-20261024.json;e3601c12/a23f1dcb;174tables/369files/29published/28relations/408geometries;no schema/content/permissions changes",
|
||||
"frozen_fixture_sha256": "6765354faf917282ea03bed31cee071d1a44cf008a7560171048adb8ffa6debf",
|
||||
"sales_books": 20,
|
||||
"purchase_books": 1,
|
||||
"import_books": 1,
|
||||
"import_history": 3,
|
||||
"preserved_open": [
|
||||
"P080",
|
||||
"P084",
|
||||
"P085"
|
||||
],
|
||||
"counts": {
|
||||
"delivered": 68,
|
||||
"QA": 0,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suite": 5,
|
||||
"frontend_total": 9,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 23,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and UTF8 split-multibyte boundary passed;Buffer concatenation before decoding;temporary file only",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18643/g6b.html",
|
||||
"observed": [
|
||||
"unknown condition ->indeterminate",
|
||||
"failed condition ->nonapplication,normal tax unknown",
|
||||
"affirmative conditions ->exempt import VAT0.00",
|
||||
"switch treatment ->only applicable questions;answers,document,2500MZN retained",
|
||||
"save/recover/report ->P055/P057,Manica,2026-12,documents,sources",
|
||||
"four previous UI results;20salesbooks,1purchase and1importbook identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6b-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "7f6ef7c5a3ee5aca026ad29279510b2ab9fa63d76d13b878007a5c58f4163a7e"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"implementation": {
|
||||
"existing_snapshot_key": "importExemptions",
|
||||
"scoped_version": "import-beneficiaries/1 only when new treatment selected;legacy keys/source preserved",
|
||||
"no_schema_change": true,
|
||||
"legacy_books": "no additional required fields;20sales,1purchase and1importbook unchanged/current",
|
||||
"data_conditions": "per branch;unknown != false;no ordinary rate inferred",
|
||||
"value": "declared/previsional value preserved,optional;no invented customs taxable base",
|
||||
"period": "explicit import period independent from supporting document date and sales calendar",
|
||||
"history": "explicit classification archives previous result;edits keep historical state;reports show only applicable conditions",
|
||||
"roll_back": "l1-g6b-readonly-rollback-20261024.patch checked,not applied;readers/history/reports retained"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 70,
|
||||
"QA": 0,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 4,
|
||||
"QA": 0,
|
||||
"functional_pending": 11
|
||||
},
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(j/l),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"QA_auxiliary_encoding_correction": {
|
||||
"cause": "Demo middleware decoded each incoming byte chunk separately;one split UTF8 character changed in a prior-history key",
|
||||
"scope": "local synthetic QA file only;private API and accepted active data unchanged",
|
||||
"before": "ui-saved-before-utf8-fix.json preserved",
|
||||
"fix": "Concatenate buffers before UTF8 decoding;boundary regression test passed",
|
||||
"verification": "Reset from exact private API recovery via explicit QA button;save/recover/report repeated;all20sales+1purchase+1importbooks identical to frozen baseline",
|
||||
"helper_sha256": "3cbaac752269c91c6675a10e95646292cc8191949c23700b37805ed46a49672f"
|
||||
},
|
||||
"qa_acceptance_status": "demonstrated_QA_not_installed",
|
||||
"qa_acceptance_counts": {
|
||||
"delivered": 68,
|
||||
"QA": 2,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"delivery_followup": {
|
||||
"served_commit": "4cebd617651ca877bd4715c661973873e69f05e1",
|
||||
"record": "iva_l1_g6b_homologation_20261024",
|
||||
"receipt": "l1-g6b-delivery-20261024.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
{
|
||||
"key": "iva_l1_g6c_P053_P054_import_assets_QA_demonstrated_20261024",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"candidate": "8e5565d5e0501ecd2a40ae684f4948b867308c54",
|
||||
"base": "72e56f7a",
|
||||
"homologation": "4cebd617/72e56f7a",
|
||||
"group": "G6C",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P053": [
|
||||
"eligible_ship_import",
|
||||
"ship_operation_object_import"
|
||||
],
|
||||
"AUD-SIM-L1-P054": [
|
||||
"eligible_aircraft_import",
|
||||
"aircraft_operation_object_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 2,
|
||||
"treatment_count": 4,
|
||||
"source": {
|
||||
"reference": "CIVA12(1)(h/i),Lei13/2016PDF11/p1426(269),by reference13(1)(f/g) and13(1)(c/d),PDF12/p1426(270);full-page visual proofs G6A/G4B reused;2022PDF2/p2252(26) and2025PDF13/p2180(13) retain h/i and do not change13",
|
||||
"acceptance": "Tempo08/10/2026;no generic authenticity/legal revalidation",
|
||||
"archive": [
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-16-I-Serie-2008-04-16.pdf",
|
||||
"sha256": "fc373ff5637edf75ec6a9595dec8763a8503d4ee786e3b7d8f1c742eae9d80ee",
|
||||
"pages": 28
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-248-I-Suplemento-1-2025.pdf",
|
||||
"sha256": "ccf2a8deeca820f2dd076b4b2141b1efe3f6a806568c3a587ca59a8e92f4c251",
|
||||
"pages": 21
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-89-I-Serie-2017-06-08.pdf",
|
||||
"sha256": "11f0cab15eb6e51010952203ffa24fdc533a24fd642e19525fe4f46b17a1f5e5",
|
||||
"pages": 16
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-95-I-Suplemento-2025-05-21.pdf",
|
||||
"sha256": "e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358",
|
||||
"pages": 2
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-13-2016-CIVA-BR-156-10-suplemento.pdf",
|
||||
"sha256": "b90dc7c14ecea2e378c4a62e8e5a47d54a5644c457baeb8b8053b92fd2a5710b",
|
||||
"pages": 32
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-22-2022-IVA-republicada-BR-250-2-suplemento.pdf",
|
||||
"sha256": "ea1b0dc6f5cf6e595f6d9a19e7042f398999e0087caef1785f6e8fac571b5f53",
|
||||
"pages": 18
|
||||
}
|
||||
],
|
||||
"existing_corpus_references": [
|
||||
"docs/investmoz/document-corpus-inventory-2026-10-06.csv",
|
||||
"docs/investmoz/fiscal-source-references-2026-10-06.csv"
|
||||
]
|
||||
},
|
||||
"preservation": {
|
||||
"base": "72e56f7ae5b3c5d8c0f22b61778ec291b2bca2f6",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_active_receipt": "l1-g6b-delivery-20261024.json;4cebd617/72e56f7a;174tables/369files/29published/28relations/408geometries;no schema/content/permissions changes",
|
||||
"frozen_fixture_sha256": "acbd2187c64bf4952b90117d247e5d8440b71cf094aad36ffe147e2098ef9d17",
|
||||
"sales_books": 20,
|
||||
"purchase_books": 1,
|
||||
"import_books": 2,
|
||||
"import_histories": {
|
||||
"opportunity:330": 3,
|
||||
"opportunity:331": 4
|
||||
},
|
||||
"preserved_open": [
|
||||
"P080",
|
||||
"P084",
|
||||
"P085"
|
||||
],
|
||||
"counts": {
|
||||
"delivered": 70,
|
||||
"QA": 0,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suites": 9,
|
||||
"frontend_total": 13,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 24,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin timing warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and split-multibyte UTF8 boundary passed;inherited Buffer concatenation preserved",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18644/g6c.html",
|
||||
"observed": [
|
||||
"four treatments mapped to two IDs",
|
||||
"object link unknown ->indeterminate;negative ->nonapplication;affirmative ->exempt0.00",
|
||||
"switch object to principal aircraft ->own condition unknown,object response retained;return ->response restored",
|
||||
"4000MZN/document/2026-12 conserved",
|
||||
"save/recover/report ->P053/P054/four treatments,Manica,opportunity332,source12h/i and13f/g",
|
||||
"four previous new-book UI results;all23acceptedbooks identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6c-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "d09a98c6a6c73a526c8803358eef6448cdc634a8a430c6ab8fe691ecdbd32bf4"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"implementation": {
|
||||
"existing_snapshot_key": "importExemptions",
|
||||
"no_schema_change": true,
|
||||
"scoped_version": "import-assets/1 only for selected asset treatments;G6A/G6B keys/source remain unchanged",
|
||||
"shared_definitions": "internationalShipEligibility/internationalAircraftEligibility export existing G4B strings without changing sale treatments",
|
||||
"legacy_books": "20sales,1purchase and2importbooks identical/current without recalculation",
|
||||
"history": "explicit classification archives previous result;edits keep earlier version",
|
||||
"not_applicable_UI": "only conditions for selected principal asset/object;hidden answers retained",
|
||||
"field11": "no deduction or ModeloA totals populated by classification",
|
||||
"rollback": "l1-g6c-readonly-rollback-20261024.patch checked,not applied;readers/history/reports retained"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 0,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 6,
|
||||
"QA": 0,
|
||||
"functional_pending": 9
|
||||
},
|
||||
"limits": "2026/MZN;classificação12(1)(h/i),bem principal ou objecto da exploração identificado,sem baseaduaneira,direitosL13,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não encerraP052/abastecimentos. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"qa_acceptance_status": "demonstrated_QA_not_installed",
|
||||
"qa_acceptance_counts": {
|
||||
"delivered": 70,
|
||||
"QA": 2,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"delivery_followup": {
|
||||
"served_commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"record": "iva_l1_g6c_homologation_20261024",
|
||||
"receipt": "l1-g6c-delivery-20261024.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,230 @@
|
||||
{
|
||||
"key": "iva_l1_g6d_P048_import_customs_QA_demonstrated_20261024",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"candidate": "0eb37ef59b9b65837e6791518b378fe4e64ca112",
|
||||
"base": "2ed62165",
|
||||
"homologation": "d46b794a/2ed62165",
|
||||
"group": "G6D",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P048": [
|
||||
"customs_transit_import",
|
||||
"customs_temporary_import",
|
||||
"customs_drawback_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 3,
|
||||
"source": {
|
||||
"reference": "CIVA12(1)(c),Lei13/2016PDF11/p1426(269),full-page visual proof G6A reused;2022PDF2/p2252(26) and2025PDF13/p2180(13) retain c by reference;no new expanded wording used",
|
||||
"acceptance": "Tempo08/10/2026;no generic authenticity/legal revalidation",
|
||||
"archive": [
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-16-I-Serie-2008-04-16.pdf",
|
||||
"sha256": "fc373ff5637edf75ec6a9595dec8763a8503d4ee786e3b7d8f1c742eae9d80ee",
|
||||
"pages": 28
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-248-I-Suplemento-1-2025.pdf",
|
||||
"sha256": "ccf2a8deeca820f2dd076b4b2141b1efe3f6a806568c3a587ca59a8e92f4c251",
|
||||
"pages": 21
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-89-I-Serie-2017-06-08.pdf",
|
||||
"sha256": "11f0cab15eb6e51010952203ffa24fdc533a24fd642e19525fe4f46b17a1f5e5",
|
||||
"pages": 16
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\BR-95-I-Suplemento-2025-05-21.pdf",
|
||||
"sha256": "e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358",
|
||||
"pages": 2
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-13-2016-CIVA-BR-156-10-suplemento.pdf",
|
||||
"sha256": "b90dc7c14ecea2e378c4a62e8e5a47d54a5644c457baeb8b8053b92fd2a5710b",
|
||||
"pages": 32
|
||||
},
|
||||
{
|
||||
"file": "docs\\investmoz\\simulations\\source-archive\\Lei-22-2022-IVA-republicada-BR-250-2-suplemento.pdf",
|
||||
"sha256": "ea1b0dc6f5cf6e595f6d9a19e7042f398999e0087caef1785f6e8fac571b5f53",
|
||||
"pages": 18
|
||||
}
|
||||
],
|
||||
"existing_corpus_references": [
|
||||
"docs/investmoz/document-corpus-inventory-2026-10-06.csv",
|
||||
"docs/investmoz/fiscal-source-references-2026-10-06.csv"
|
||||
],
|
||||
"scope_lookup_2020": {
|
||||
"URL": "https://www.inm.gov.mz/pt-br/content/assembleia-da-rep%C3%BAblica-suplemento-n%C2%BA-1-de-231220-pag-2414-1-20-br-n%C2%BA-246-boletim-da",
|
||||
"scope": "Official INM index identifies Lei16/2020 as altering9(13),not12(1)(c)",
|
||||
"retrieval": "Index search text read;direct page timeout and two official PDF download attempts failed;no fullPDF obtained or claimed",
|
||||
"use": "scope lookup for an existing reference;not a second authenticity approval and not the operative text of12(1)(c)"
|
||||
}
|
||||
},
|
||||
"preservation": {
|
||||
"base": "2ed62165b7a5b7e0a836db350fb39ace6453fed5",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_active_receipt": "l1-g6c-delivery-20261024.json;d46b794a/2ed62165;174tables/369files/29published/28relations/408geometries;no schema/content/permissions changes",
|
||||
"frozen_fixture_sha256": "ac5f1b23de6b3e13c9b0e116b435c389d8147d5f4145b19dc234bf79596c5db6",
|
||||
"sales_books": 20,
|
||||
"purchase_books": 1,
|
||||
"import_books": 3,
|
||||
"import_histories": {
|
||||
"opportunity:330": 3,
|
||||
"opportunity:331": 4,
|
||||
"opportunity:332": 4
|
||||
},
|
||||
"preserved_open": [
|
||||
"P080",
|
||||
"P084",
|
||||
"P085"
|
||||
],
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 0,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
},
|
||||
"tests": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suites": 13,
|
||||
"frontend_total": 17,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 25,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin timing warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and split-multibyte UTF8 boundary passed;inherited Buffer concatenation preserved",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18645/g6d.html",
|
||||
"observed": [
|
||||
"three treatments mapped to one ID",
|
||||
"full customs duty exemption unknown ->indeterminate;negative ->nonapplication;affirmative with own regime ->exempt0.00",
|
||||
"switch transit to temporary import ->own regime condition unknown,previous answers retained;return ->transit response restored",
|
||||
"5000MZN/document/2026-12 conserved",
|
||||
"save/recover/report ->P048/three treatments,Manica,opportunity333,source12(1)(c)",
|
||||
"four previous new-book UI results;all24acceptedbooks identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6d-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "fadcff5be7c2a7a768a87531fefab15d189f87c9181e60fc2c794b4a5a01ae8c"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"implementation": {
|
||||
"existing_snapshot_key": "importExemptions",
|
||||
"no_schema_change": true,
|
||||
"scoped_version": "import-customs-regimes/1 only for selected customs import treatments;G6A/G6B/G6C keys/source remain unchanged",
|
||||
"regime_confirmations": "transit/temporary/drawback have distinct keys;fullCustomsExemption differs from P049 customsExempt;partial relief or suspension cannot satisfy total exemption",
|
||||
"legacy_books": "20sales,1purchase and3importbooks identical/current without recalculation",
|
||||
"history": "explicit classification archives previous result;edits keep earlier version",
|
||||
"not_applicable_UI": "only conditions for selected customs regime;hidden answers retained",
|
||||
"field11": "no deduction or ModeloA totals populated by classification",
|
||||
"rollback": "l1-g6d-readonly-rollback-20261024.patch checked,not applied;readers/history/reports retained"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 72,
|
||||
"QA": 1,
|
||||
"functional_pending": 59,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"G6": {
|
||||
"delivered": 6,
|
||||
"QA": 1,
|
||||
"functional_pending": 8
|
||||
},
|
||||
"limits": "2026/MZN;P048/12(1)(c),trânsito/importação temporária/draubaque com isenção total de direitos,sem baseaduaneira,cálculo de direitosL13,saída de regime,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não confundir com vendas em regimeG5/P083. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"qa_status_preserved": "demonstrated_QA_not_installed",
|
||||
"delivery_followup": {
|
||||
"served_commit": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"record": "iva_l1_P048_P080_joint_homologation_20261024",
|
||||
"receipt": "l1-g6d-g5c-delivery-20261024.json",
|
||||
"counts": {
|
||||
"delivered": 74,
|
||||
"QA": 0,
|
||||
"functional_pending": 58,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
{
|
||||
"candidate": "1565aa4ffb13fae75e925ccdb2b7553a9b111dd5",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P052": [
|
||||
"ship_provisions_import",
|
||||
"ship_fuel_import",
|
||||
"ship_technical_products_import",
|
||||
"ship_cargo_accessories_import",
|
||||
"aircraft_provisions_import",
|
||||
"aircraft_fuel_import",
|
||||
"aircraft_technical_products_import",
|
||||
"aircraft_cargo_accessories_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 8,
|
||||
"source": "Lei13/2016,CIVA12(1)(g),12(3)(a)(i–iv)/(b),PDF11–12/p1426(269–270),13(3);2022PDF2/2025PDF13g/3 maintainedbyreference",
|
||||
"source_scope": "Ship maritime/fluvial/lacustrine international navigation;aircraft international navigation,not requirement of principallyinternationalcompany fromP054. Provisions,fuel,technicalproducts,cargoaccessories;ownexclusions only. No deduction/field11,customsduties/base ornormalVAT assumed.",
|
||||
"new_checks": {
|
||||
"frontend": {
|
||||
"passed": 3,
|
||||
"failed": 0,
|
||||
"record": "node:test outputthissession,no savedstdoutclaimed;acceptedoldproofs reused,not rerun"
|
||||
},
|
||||
"API": {
|
||||
"tests": 2,
|
||||
"assertions": 32,
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"rollback": true,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6e-supplies-20261024\\api-tests.xml"
|
||||
},
|
||||
"types": "passed",
|
||||
"production_build": "passed;existingplugin/chunkwarnings",
|
||||
"QA_storage": "1testpassed,save/recover/reject,multibyteUTF8bufferboundary",
|
||||
"UI": "CodexEdgeCUArealcomponent:coastalfishingexclusion unknown/nonapplication/exempt states,fueltanksconditiononlyfuel,save/recover/report8rows,5historyversions;notmanualTempoacceptance"
|
||||
},
|
||||
"technical_obstacle_resolved": {
|
||||
"origin": "Implementationchoice,notTempobusinessrule",
|
||||
"old_limit_characters": 1000000,
|
||||
"observed_preserved_draft_characters": 1040665,
|
||||
"new_limit_characters": 4000000,
|
||||
"why": "Do not discardacceptedbooks/explicit history tofitnewbranch;allowcurrentdraftwithboundedJSONstringvalidation",
|
||||
"evidence": "InitialAPI422 recorded intooloutput;afterfix exactprivate recoveryand4millionboundnegative testpassed;no activechange"
|
||||
},
|
||||
"preservation": {
|
||||
"base": "4e4bf6b8595f1b92d5a9de1b90be8d639f34feb5",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P048",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P080",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_delivery": "P048/P0802d889a21/e3269079;174tables/369files/29published/28relations/408geometries,postgres equivalent;reuse accepted code/schema/data/config/permission delta proof",
|
||||
"frozen_fixture": "tests\\frontend\\fixtures\\iva-offers-inputs.json",
|
||||
"sha256": "98e7e77d3ed4bd0151b8192f190b3ed1eba4e2174385c8d0aa613be04331023e",
|
||||
"preserved": "26fiscalbooks+1offerpreparationbook(2rows,histories,deliberatepurposeedit);no recalculation",
|
||||
"counts_before": {
|
||||
"delivered": 74,
|
||||
"QA": 0,
|
||||
"functional_pending": 58,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"active_changes": 0
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 74,
|
||||
"QA": 1,
|
||||
"functional_pending": 57,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"active": "2d889a21/e3269079unchanged;no push/install/migration",
|
||||
"P084_P085": "ModelI.1diploma checked jointly;Despacho06/01/2010->Decreto56/2009art2->CBFLei4/2009;no direct14(3)correspondence found inreadRegulation1–16;scenario mapping recorded separately;drafts5ec2f198preservedexactly",
|
||||
"limits": "L1open;P001only05/06;beveragesL2/L3;Statistics/AIdeferred;closingL1doesnotrequireL2/L3/alltaxes",
|
||||
"qa_status_preserved": "P052 demonstratedQA;notinstalled;P084/P085 drafts preserved,benefits pending",
|
||||
"delivery_followup": {
|
||||
"served_commit": "c1314cdf90c368b51489aaf04c2cdbe59cfb88e6",
|
||||
"receipt": "l1-g6e-delivery-20261024.json",
|
||||
"record": "iva_l1_g6e_P052_homologation_20261024",
|
||||
"counts": {
|
||||
"delivered": 75,
|
||||
"QA": 0,
|
||||
"functional_pending": 57,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
{
|
||||
"candidate": "29e708ba2dca2450eaff8eff6f5e19079ffc7f8e",
|
||||
"implementation_commit": "f9fb04f9",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P050": [
|
||||
"service_in_customs_value",
|
||||
"accessory_service_first_destination"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 2,
|
||||
"source": "CIVA12(1)(e),Lei13/2016PDF11/p1426(269);16(1)/16(1)(b)/16(2),PDF14/p1426(272);2022PDF1–2/2025PDF12–13maintain12e byreference,notchange16;2020/2025May9(13)scopes reused",
|
||||
"meaning": "Servicefullvalueincluded in importtaxbase,eitheralreadyincustomsvalue oraddedaccessorycharge untilfirstdestination;destinationfromtransportdocument or,initsabsence,firstbreakbulk inland. Two technicalprofiles,notnewbusinessconditions.",
|
||||
"tax_separation": "serviceVat0.00 onlywhenownconditions;importVat remainsnull forP050,no customsbase/duties/importedgoodstaxcalculation,normalratepresumption,invoicecorrection orfield11deduction",
|
||||
"new_inputs": "OptionalserviceImportRef,serviceBaseRef,serviceFirstDestination(onlyaccessoryprofile),serviceProvider. Servicevalue/reference/context requiredforclassification;not newmandatoryfields onoldgoods. HidegoodsCode/originCountry forservices;preserve hiddenanswers across profilechange.",
|
||||
"reference_reuse": "P050services filteredout from importedgoods references ofP084/P085;no newtaxbenefit or goodsconversion",
|
||||
"verification": {
|
||||
"frontend": {
|
||||
"new_tests": 4,
|
||||
"passed": 4,
|
||||
"failed": 0,
|
||||
"scope": "allownconditions,missing/failednotzero,ownfirstdestination,switchpreservation,service/importVATseparation,27priorfiscalbooks+946fc089drafts exact,currentoldkeys,report,malformedservicewriteguard,no service-as-goods reuse",
|
||||
"record": "latestnode:test outputthissession;acceptedoldproofs reused,not rerun"
|
||||
},
|
||||
"privateAPI": {
|
||||
"tests": 1,
|
||||
"assertions": 30,
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"rollback": true,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6f-services-20261024\\api-tests.xml"
|
||||
},
|
||||
"types_final": "passed",
|
||||
"production_build_final": "passed,existingplugin/chunkwarnings",
|
||||
"synthetic_QA_storage": "1passed includingmultibyteUTF8bufferboundary",
|
||||
"UI": "CodexEdgeCUArealcomponent:inclusionunknown->indeterminate,no->nonapplication,yes->serviceexemption;servicefieldsownrefs;goodsfields hidden,firstdestination onlyaccessory;save/recover/report2rows/opportunity336/Manica/2026-12/document14Nov2026/5historyversions;notmanualTempoacceptance"
|
||||
},
|
||||
"integrity_fix": "Newmalformedoptionalreference test initially detected savepath lacked validating newencodedbook;now validatesbefore returning/onChange,no original overwritten;validoldbooks/keys preserved",
|
||||
"preservation": {
|
||||
"base": "77d1290258a925a104b616dc4648db33d43064ea",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P048",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P052",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P080",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"preservation": "Reuse acceptedG6Ec1314cdf/536559d6:174tables/369files/29published/28relations/408geometries;code/schema/data/config/permissions delta accepted;no active query/write in this QA task",
|
||||
"frozen": "tests\\frontend\\fixtures\\iva-offer-paths-inputs.json",
|
||||
"sha256": "78125d82172cda05c16b10e74ac2fdfd4eaaa25bd99cd3bde33281c2bfdd01e6",
|
||||
"books": "27fiscalbooks+offerbook;requeststates/scopes/normal-conditionalscenarios/history946fc089preservedexactly",
|
||||
"counts_before": {
|
||||
"delivered": 75,
|
||||
"QA": 0,
|
||||
"functional_pending": 57,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
}
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 75,
|
||||
"QA": 1,
|
||||
"functional_pending": 56,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"active": "Unchangedc1314cdf/536559d6;no push/install/activequeries/schema/data/config/permissionchange",
|
||||
"P084_P085": {
|
||||
"authorized_partial_candidate": "946fc089",
|
||||
"next_delivery_scope": "Preparation/requeststates/scopeddecisions/humanitarianpurpose/normalandconditionalhypotheticalscenarios,notconfirmedbenefit/notclosing2branches",
|
||||
"documentary_scope": "IdentifyexpressapplicableCIVA14(3)procedure/link and amendments;distinguishP084internal/import andP085acquisition. ModelI.1/Despacho/CBFcotejo reused,not repeated;do notinventcertificates/approvers orclaimregulation nonexistent",
|
||||
"preserved": "Allrows,scopeversions,deliberateedits,normal/conditionalinputs andhistory exactlyequalfrozenfixture"
|
||||
},
|
||||
"limits": "L1open;P001only05/06;beveragesL2/L3;classificationseparatefromfield11;Statistics/AIdeferred;L1closuredoesnotrequireL2/L3/alltaxes",
|
||||
"qa_status_preserved": "P050 demonstratedQA,notinstalled;P084/P085 partialpreparation/scenarios includedinancestry andauthorizedfornextdelivery,notbenefitclosure",
|
||||
"delivery_followup": {
|
||||
"served_commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633",
|
||||
"receipt": "l1-g6f-delivery-20261024.json",
|
||||
"record": "iva_l1_g6f_P050_with_partial_P084_P085_homologation_20261024",
|
||||
"counts": {
|
||||
"delivered": 76,
|
||||
"QA": 0,
|
||||
"functional_pending": 56,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
{
|
||||
"implementation_commit": "9783c54b2c70b2d91fefd08a394a21b0690af5ba",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P056": [
|
||||
"authorized_investment_equipment"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 1,
|
||||
"condition_count": 4,
|
||||
"source": "CIVA12(1)(k),Lei13/2016PDF11/p1426(269);Lei22/2022PDF2/p2252(26),Lei10/2025PDF13/p2180(13)maintain k by remissão;2017rectificationPDF1 concerns6/14/annexes,not12k",
|
||||
"meaning": "Imported equipment classified K,destined to investment in undertaking authorized under InvestmentLaw/regulation;authorization reference and applicable scope,not authorization request or automatic class lookup",
|
||||
"source_links": [
|
||||
"https://www.inm.gov.mz/pt-br/content/suplemento-n%C2%BA-10-de-301216-pag-1426-259-290-br-n%C2%BA-156-boletim-da-rep%C3%BAblica-i-serie",
|
||||
"https://pt.apiex.gov.mz/investir/"
|
||||
],
|
||||
"technical_choices": "Dedicated optional reference/scope fields required only for newP056 classification;traceability of statutory conditions,not additional certificate/approver or official-source revalidation;reuse importer,documents,value,period,evidence and opportunity",
|
||||
"scope": "2026/MZN,classification of import VAT only;no customsbase/duties,automatic authorization or goodsclassification,domestic purchaseexemption,deduction/field11/ModeloA totals",
|
||||
"result": "0.00 only ownconditions yes+reference/scope;projected assumption expressly labelled;missing=indeterminate;no=notapplicable and no presumed ordinaryrate",
|
||||
"verification": {
|
||||
"frontend": {
|
||||
"tests": 3,
|
||||
"passed": 3,
|
||||
"failed": 0,
|
||||
"scope": "own conditions,mistyped writes,switch retention,context invalidation,all delivered books unchanged,serviceVAT separate,partial offers unchanged,history,report"
|
||||
},
|
||||
"privateAPI": {
|
||||
"tests": 1,
|
||||
"assertions": 25,
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6g-investment-20261024\\api-tests.xml"
|
||||
},
|
||||
"types": "passed",
|
||||
"build": "passed,existing plugin timing warnings",
|
||||
"UI": "Real component in Edge/CUA:unknown/no/yes authorization triad,own fields,save/recover/report one row,5 prior versions;synthetic only,not manual Tempo acceptance",
|
||||
"UI_screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6g-investment-20261024\\qa-recovered-report.png"
|
||||
},
|
||||
"preservation": {
|
||||
"base": "0f9f7e3409bdea1d4d6c351a572e7c37b3a09b4e",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P048",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P050",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P052",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P080",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_delivery": "78c9f4a3/0f9f7e34;174 tables/369 files;29 published fiches/28 relations/408 geometries;code/schema/data/config/permissions compared at delivery",
|
||||
"frozen": "tests\\frontend\\fixtures\\iva-g6g-preserved-inputs.json",
|
||||
"sha256": "43b5060803730e940bc1afa5e75dac16e634da2cf3ea80ce71cab9ef6185e51d",
|
||||
"counts_before": {
|
||||
"delivered": 76,
|
||||
"QA": 0,
|
||||
"functional_pending": 56,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"scope": "P056 only; preserve P050 service VAT separately and P084/P085 preparation/conditional simulation without closing benefits; no active query/write"
|
||||
},
|
||||
"runtime_delta": {
|
||||
"resources/js/lib/iva-import-exemptions.ts": "1b4fda4e7e363e68f951eca14a415a93d08b06aaa49b41e639b44fc5c9cee488",
|
||||
"resources/js/components/simulation-import-exemptions.tsx": "c6f36defc756eac0bb21f17e7165bb84efbbbfd120ea3be83787ffe368b7f1b1"
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 76,
|
||||
"QA": 1,
|
||||
"functional_pending": 55,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation_unchanged": "78c9f4a3",
|
||||
"remaining": "Integrate/deliver by existingGit process with manifest,fresh backup/isolatedrestore and installeddelta;no push in this QA task",
|
||||
"limits": "P084/P085 partial only,pending;P00105/06;L1open;beveragesL2/L3;Stats/AIdeferred",
|
||||
"sources_inventory": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6g-investment-20261024\\source-archive-inventory.json",
|
||||
"qa_status_preserved": "QA_complete_not_delivered",
|
||||
"delivery_followup": {
|
||||
"served_commit": "9b26217dec945fe07b665c6ad7638a965bf104a9",
|
||||
"receipt": "l1-g6g-delivery-20261024.json",
|
||||
"record": "iva_l1_g6g_P056_homologation_20261024",
|
||||
"counts": {
|
||||
"delivered": 77,
|
||||
"QA": 0,
|
||||
"functional_pending": 55,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"implementation_commit": "69b6c49a600c02352fdb9d10b0f756dca6c500a5",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P060": [
|
||||
"un_development_exemption",
|
||||
"un_development_reduction"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 2,
|
||||
"conditions": "Seven common statutory conditions and one own customs-relief condition per treatment;not16 treatments",
|
||||
"source": "CIVA12(2)(c),Lei13/2016PDF11/p1426(269),12(4)PDF12/p1426(270);Lei22/2022PDF2–3 andLei10/2025PDF13 maintain2/4 by remissão;2017rectification does notchange12(2)c/4",
|
||||
"source_links": [
|
||||
"https://www.parlamento.mz/?post_documents=boletim-da-republica-i-serie-nr-250-quarta-feira-28-de-dezembro-de-2022",
|
||||
"https://www.inm.gov.mz/pt-br/content/suplemento-n%C2%BA-10-de-301216-pag-1426-259-290-br-n%C2%BA-156-boletim-da-rep%C3%BAblica-i-serie"
|
||||
],
|
||||
"meaning": "Materials/equipment for development projects funded by UN agencies/specialized institutions accredited with MozambiqueGovernment;exclusive project implementation;favourableFinanceMinisterdecision following priorrequest/list/importplan and customsconformity with approvedlist/plan;request is not grant",
|
||||
"technical_choices": "Dedicated optional document references shown/required only for P060 classification;reuse importer,goods,document,date,period,evidence,opportunity;keep all answers across treatment switches. Reference fields trace statutory conditions,not newcertificate/approver or revalidation of officialsources. Exact decimal arithmetic via integers with up to6inputfractiondigits/14outputfractiondigits,no assumed fiscalrounding;negative/malformed/unknown inputs not zero. Newversion only books containingP060,oldkeys exactlycurrent.",
|
||||
"scope": "2026/MZN,classification of own import VAT and application of expressly supplied rights-relief proportion to expressly supplied normalVAT. No customsbase/duties/normalVAT-rate calculation;no deduction/field11/ModeloA totals/serviceVAT alteration. Not automatically extend decisions/list/plan scope.",
|
||||
"formula": "normalVAT × (100 − rightsReductionPercent)/100;partial percentage strictly between0and100;100requires ownfull-exemptiontreatment;0notapplicable;explicitnormalVAT0 distinctfrommissing",
|
||||
"result": "Full customs exemption plus ownconditions -> importVat0.00;partial reduction -> statusreduced and exactresult;missing=indeterminate,no=notapplicable,no presumedordinarytax. Effective-declared versus projected-assumptions explicit.",
|
||||
"verification": {
|
||||
"frontend": {
|
||||
"tests": 4,
|
||||
"passed": 4,
|
||||
"failed": 0,
|
||||
"scope": "Every owncondition missing/no;references and full/partial boundaries;exact fractions/large numbers/zero;malformedwriteguard;switch/context/referenceinvalidation;history;priorbooks/partialoffers exactlypreserved;report"
|
||||
},
|
||||
"privateAPI": {
|
||||
"tests": 1,
|
||||
"assertions": 34,
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6h-development-20261024\\api-tests.xml"
|
||||
},
|
||||
"types": "passed",
|
||||
"build": "passed,existing plugin timing warnings",
|
||||
"UI": "Realcomponent Edge/CUA:decision unknown/no/assumed;normalVATmissing indeterminate;800with25%=600,50%=400;full0.00;save/recover/report2rows and5priorversions;scope/list/plan/decision/references retained. Synthetic only,not manualTempoacceptance.",
|
||||
"UI_screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6h-development-20261024\\qa-recovered-report.png"
|
||||
},
|
||||
"preservation": {
|
||||
"base": "163e090ea547d0c046bddecc0b4f5db150910d7d",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P048",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P050",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P052",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P056",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P080",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_delivery": "9b26217d/163e090e;174tables/369files;29published/28relations/408geometries;code/schema/data/config/permissions verified at delivery",
|
||||
"frozen": "tests\\frontend\\fixtures\\iva-g6h-preserved-inputs.json",
|
||||
"sha256": "0eec529d197507a74d63a046761604fa31d10d8908d4d27b79719a1d116524d8",
|
||||
"counts_before": {
|
||||
"delivered": 77,
|
||||
"QA": 0,
|
||||
"functional_pending": 55,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"scope": "P060 only;preserve P056 authorization scope,P050 serviceVAT,and partial P084/P085;no active query/write"
|
||||
},
|
||||
"runtime_delta": {
|
||||
"resources/js/lib/iva-import-exemptions.ts": "799e9a0020e805af9f67387bfa36608c4973f15c4427d1b82c3f6b6398aed129",
|
||||
"resources/js/components/simulation-import-exemptions.tsx": "89ab431fa6810c1f56897f203a817a41722c4a9df0cb075561dee6208e8730d1"
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 77,
|
||||
"QA": 1,
|
||||
"functional_pending": 54,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation_unchanged": "9b26217d",
|
||||
"remaining": "Integrate/deliver by existingGit with manifest,freshbackup/realisolatedrestore and installeddelta;no push in QA task",
|
||||
"limits": "P084/P085 partial,pending;P00105/06;L1open;beveragesL2/L3;Stats/AI deferred",
|
||||
"sources_inventory": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6h-development-20261024\\source-archive-inventory.json",
|
||||
"qa_status_preserved": "QA_complete_not_delivered",
|
||||
"delivery_followup": {
|
||||
"served_commit": "eb9294ef42c2cfc97eb8c2553d545e3bff7c0add",
|
||||
"receipt": "l1-g6h-delivery-20261024.json",
|
||||
"record": "iva_l1_g6h_P060_homologation_20261024",
|
||||
"counts": {
|
||||
"delivered": 78,
|
||||
"QA": 0,
|
||||
"functional_pending": 54,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"implementation_commit": "1dda6ea25858f9fd35304458b09b8e6ab899ebb8",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P090": [
|
||||
"public_authority_indemnity",
|
||||
"public_authority_compensation"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 2,
|
||||
"source": "CIVA15(2)(d),Lei13/2016PDF13/p1426(271);15(3)/(4)/(5)/(6),PDF14/p1426(272);Lei22/2022PDF3maintains2d/3–6,Lei10/2025doesnotamend15. Statutory public-act compensation distinct from judicial contract-breach indemnity15(6)(a).",
|
||||
"source_links": [
|
||||
"https://www.inm.gov.mz/pt-br/content/suplemento-n%C2%BA-10-de-301216-pag-1426-259-290-br-n%C2%BA-156-boletim-da-rep%C3%BAblica-i-serie",
|
||||
"https://www.parlamento.mz/?post_documents=boletim-da-republica-i-serie-nr-250-quarta-feira-28-de-dezembro-de-2022"
|
||||
],
|
||||
"meaning": "Determine the tax base for an identified taxable domestic supply of goods/services resulting from a public-authority act,using indemnity or other compensation;do not infer taxability from compensation/publicentity alone. Judicial contract-breach indemnity is not included by analogy.",
|
||||
"technical_choices": "New opportunity-scoped publicAuthorityBases book inside existing modelo_a_snapshot;no schema/API/permissions change. Existing dossier/report and monthlyIVA components extended incrementally. Cash/nonmonetary/mixed form hides irrelevant fields but retains edits. Exact decimal sums with integers,up to6fractiondigits per input;no fiscalrounding assumption. Normalvalue explicitly supplied with valuationreference,not appraised by portal. References/conditions trace source,not newcertificate/approver or revalidation of officialsource.",
|
||||
"scope": "2026/MZN;P090baseonly. BaseAmount independent from vat/rate,which alwaysremainnull. No determination of incidence,rate,exemption,tax,customsbase,deduction/field11/ModeloA totals orautomaticposting toother fiscalbooks. Components supplied netofIVA with applicable15(5)/(6)composition identified.",
|
||||
"formula": "base = applicable net monetary component + applicable net nonmonetary normalvalue;form explicitly selects applicablecomponents;missing/invalid applicableamount orvaluationref staysnull,explicitzero is allowed;hiddenvalues not erased.",
|
||||
"verification": {
|
||||
"frontend": {
|
||||
"tests": 4,
|
||||
"passed": 4,
|
||||
"failed": 0,
|
||||
"scope": "Ownconditions unknown/no;judicialexclusion;money/in-kind/mixed;exactlarge/fractionalamounts/zero;missingrefs;context/version/history;malformedwriteguard;allpriorbooks unchanged;report"
|
||||
},
|
||||
"privateAPI": {
|
||||
"tests": 1,
|
||||
"assertions": 29,
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7a-public-base-20261024\\api-tests.xml"
|
||||
},
|
||||
"types": "passed",
|
||||
"build": "passed,existing plugin timing warnings;final build after Portuguese report-label adjustment",
|
||||
"UI": "Realcomponent Edge/CUA:unknownact/missingvaluation indeterminate;judicialcontractbreach notapplicable;switchmoney->mixed retains250.20and1500.25,base1750.45;finalbases1500.25/1250.30withVATnull;save/recover/report2rows+5priorversions;documents/act/value/compositionrefs retained. Synthetic only,not manualTempoacceptance.",
|
||||
"UI_screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7a-public-base-20261024\\qa-recovered-report.png"
|
||||
},
|
||||
"preservation": {
|
||||
"base": "0a80f1c457cd5670110d153e90962671c73535f4",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P048",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P050",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P052",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P056",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P060",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P080",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_delivery": "eb9294ef/0a80f1c4;174tables/369files;29published/28relations/408geometries;code/schema/data/config/permissions checked at delivery",
|
||||
"frozen": "tests\\frontend\\fixtures\\iva-g7a-preserved-inputs.json",
|
||||
"sha256": "418c1825be1cb6e0851d3bc9b8a6c03335349645bda5e73792fc3ff2c3bf28da",
|
||||
"counts_before": {
|
||||
"delivered": 78,
|
||||
"QA": 0,
|
||||
"functional_pending": 54,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"scope": "P090 only;preserve P060decision/list/plan/scope and proportional results,P056authorization/P050serviceVAT/partialP084P085;no active query/write"
|
||||
},
|
||||
"runtime_delta": {
|
||||
"resources/js/lib/iva-public-authority-base.ts": "667704ba8c2d26421993f5e7e2c6599afb2912e052b27a96e423cb8d01a21d85",
|
||||
"resources/js/components/simulation-public-authority-base.tsx": "7aa05785fdb6fcb7de4c0345e9c09073ebdbb3a8b39f1bd2610da08abc8c8a89",
|
||||
"resources/js/components/simulation-monthly-iva.tsx": "db5b4431351766f8f86b4e60195381dab17c077ca3db72de48f2fb7e0f2a320b",
|
||||
"resources/js/lib/project-dossier.ts": "60a9dd9f4eed5884b16c7097906bc438958b3b1407976e10f4699d35c1c68b19"
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 78,
|
||||
"QA": 1,
|
||||
"functional_pending": 53,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation_unchanged": "eb9294ef",
|
||||
"remaining": "Integrate/deliver by existingGit with manifest,freshbackup/realisolatedrestore and installeddelta;no push in QA task",
|
||||
"limits": "P084/P085partial,pending;P00105/06;L1open;beveragesL2/L3;Stats/AIdeferred",
|
||||
"sources_inventory": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7a-public-base-20261024\\source-archive-inventory.json",
|
||||
"qa_status_preserved": "QA_complete_not_delivered",
|
||||
"delivery_followup": {
|
||||
"served_commit": "4193056bdd69b48cf61c25a9a7404af4f0957f3c",
|
||||
"receipt": "l1-g7a-delivery-20261024.json",
|
||||
"record": "iva_l1_g7a_P090_homologation_20261024",
|
||||
"counts": {
|
||||
"delivered": 79,
|
||||
"QA": 0,
|
||||
"functional_pending": 53,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
{
|
||||
"implementation_commit": "948621a65caf1395230bfed3ddfab59e94cddda0",
|
||||
"status": "delivered_with_QA_proofs_preserved",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P091": [
|
||||
"commission_sale_transfer",
|
||||
"commission_purchase_transfer"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 2,
|
||||
"source": "CIVA15(2)(e),Lei13/2016PDF13/p1426(271);3(3)(c)PDF6/p1426(264);15(5)/(6)PDF14/p1426(272);Lei22/2022PDF3maintains15e,Lei10/2025PDF12maintains3c byremissão anddoesnotamend15;2017rectification doesnotamendthoseprovisions. Specialauction15(2)(g)notreplaced.",
|
||||
"source_links": [
|
||||
"https://www.inm.gov.mz/pt-br/content/suplemento-n%C2%BA-10-de-301216-pag-1426-259-290-br-n%C2%BA-156-boletim-da-rep%C3%BAblica-i-serie",
|
||||
"https://www.parlamento.mz/?post_documents=boletim-da-republica-i-serie-nr-250-quarta-feira-28-de-dezembro-de-2022"
|
||||
],
|
||||
"meaning": "Goods transferred under commissioncontract,includingconsignment whereapplicable;principal-to-agent sale commission usesagentagreed saleprice minuscommission;agent-to-principal purchase commission usesagentagreed purchaseprice pluscommission. Notanycommissionpayment orautonomousbrokerageservice.",
|
||||
"technical_choices": "Newopportunity-scoped commissionBases bookinside existingmodelo_a_snapshot;incrementalexistingmonthlyIVA/dossier/report/API integration,no schema/permissionschange. Price/commission/compositionreferences netofIVA,beforeoneadjustment. Exactdecimalintegerarithmetic,upto6inputfractiondigits,noassumedfiscalrounding. Directionchange retainsallvalues/parties/documents but clearsdirectionconfirmation asintegritychoice,notneworganizationalrule. Negativedifference isdisplayed arithmetically with fiscalbaseindeterminate inthisrecorte,nozero-floor/absolutevalue,newtaxrate orapprover. Unknownamount/commissionpercentage notdefaultzero.",
|
||||
"scope": "2026/MZN;P091baseonly. BaseAmount separatefromvat/rate(alwaysnull);no incidence,rate,tax,commissionserviceVAT,exemption,deduction/field11/ModeloAtotals orautomaticposting intootherfiscalbooks. Statutorycondition references notnewcertificates/approvers orrevalidationofacceptedofficialsources.",
|
||||
"formula": {
|
||||
"commission_sale_transfer": "agent agreed sale price − commission",
|
||||
"commission_purchase_transfer": "agent agreed purchase price + commission"
|
||||
},
|
||||
"verification": {
|
||||
"frontend": {
|
||||
"tests": 4,
|
||||
"passed": 4,
|
||||
"failed": 0,
|
||||
"scope": "Everyowncondition missing/no;references;subtract/addonce;fractional/large/zero/negativearithmetic;directionchangeconfirmation;missingamount;context/version/history;malformedwriteguard;allpriorbooks/currentkeys preserved;report"
|
||||
},
|
||||
"privateAPI": {
|
||||
"tests": 1,
|
||||
"assertions": 29,
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7b-commissions-20261024\\api-tests.xml"
|
||||
},
|
||||
"types": "passed",
|
||||
"build": "passed,existingplugin timingwarnings",
|
||||
"UI": "Realcomponent Edge/CUA:unknowncontract/missingcommission indeterminate;directionswitchchangesprice label/clearsconfirmation while retaining1000.25/100.10androles/references;specialauctionnotapplicable;finalsale900.15/purchase1100.35,VATnull;save/recover/report2rows+5priorversions. Syntheticonly,notmanualTempoacceptance.",
|
||||
"UI_screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7b-commissions-20261024\\qa-recovered-report.png"
|
||||
},
|
||||
"preservation": {
|
||||
"base": "50463ca716b74a669f8e1e72354ac0dfdc80d030",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P048",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P050",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P052",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P056",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P060",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P080",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086",
|
||||
"AUD-SIM-L1-P090"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_delivery": "4193056b/50463ca7;174tables/369files;29published/28relations/408geometries;code/schema/data/config/permissions checked at delivery",
|
||||
"frozen": "tests\\frontend\\fixtures\\iva-g7b-preserved-inputs.json",
|
||||
"sha256": "2f8e5c92cc3ce422af09631e717eaaee31b8427ada60493f0f18aeda97596a78",
|
||||
"counts_before": {
|
||||
"delivered": 79,
|
||||
"QA": 0,
|
||||
"functional_pending": 53,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"scope": "P091only;preserve P090base/VATseparation/history,P060decision/list/plan/scope/proportion,P056authorization/P050serviceVAT/partialP084P085;no active query/write"
|
||||
},
|
||||
"runtime_delta": {
|
||||
"resources/js/lib/iva-commission-base.ts": "3be1331f4da40e6292fa7f5dcfba28355af6d931a7d24f44eb081c6f16c8efb2",
|
||||
"resources/js/components/simulation-commission-base.tsx": "5bfbb95d2dd22106d7d416fd3af0f7ae0778f22ae9d23da15ba9dd45882cfc94",
|
||||
"resources/js/components/simulation-monthly-iva.tsx": "16c95f5eaf5d5a308c93b30523292e52ccafed9d4e7f897f8559459116fbf4ae",
|
||||
"resources/js/lib/project-dossier.ts": "945a9e2a4a9aa6a26f7108f95d4fd237c0551dbf884cec41bcaa3eba592acc4a"
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 79,
|
||||
"QA": 1,
|
||||
"functional_pending": 52,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation_unchanged": "4193056b",
|
||||
"remaining": "Integrate/deliver by existingGit withmanifest,freshbackup/realisolatedrestore andinstalleddelta;no pushinQAtask",
|
||||
"limits": "P084/P085partial,pending;P00105/06;L1open;beveragesL2/L3;Statistics/AIdeferred",
|
||||
"sources_inventory": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7b-commissions-20261024\\source-archive-inventory.json",
|
||||
"qa_status_preserved": "QA_complete_not_delivered",
|
||||
"delivery_followup": {
|
||||
"served_commit": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177",
|
||||
"receipt": "l1-g7b-delivery-20261024.json",
|
||||
"record": "iva_l1_g7b_P091_homologation_20261024",
|
||||
"counts": {
|
||||
"delivered": 80,
|
||||
"QA": 0,
|
||||
"functional_pending": 52,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
{
|
||||
"implementation_commit": "4672789f2bf1fcce0726936e9e5bec05fb18c448",
|
||||
"status": "QA_complete_not_delivered",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P094": [
|
||||
"act_sale_amount",
|
||||
"act_normal_value"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 2,
|
||||
"source": "CIVA15(2)(h),Lei13/2016PDF13/p1426(271);15(4)/(5)/(6)PDF14/p1426(272). Lei22/2022PDF3maintains15h/4–6 by remissão;Lei10/2025doesnotamend15. Rectificação2017doesnotamend15h.",
|
||||
"meaning": "Goods transferred as result of auction,judicial/administrative sale,conciliation or settlement;value at which auction/sale effected or,where applicable,normal value. Five act kinds are contexts,not five branches. No automatic lower value or normal-value fallback.",
|
||||
"technical_choices": "New opportunity-scoped actSaleBases book in existing modelo_a_snapshot/API/dossier;no schema/permissions change. Chosen net value and composition references,up to6fractiondigits exactly preserved,no assumed fiscal rounding. Changing act/valuation retains both values/documents and clears corresponding applicability confirmation as integrity choice,not new organizational requirement. Reuse existing documents or explicit projection assumptions;no invented certificate,appraiser or approver.",
|
||||
"scope": "2026/MZN,P094baseonly;normal value supplied with identified basis/scope,not appraised automatically. No incidence,rate,VAT,deduction/field11/ModeloAtotals or substitution of special auctioncommission15g. Unknown values remain indeterminate,explicit zero distinguished.",
|
||||
"verification": {
|
||||
"frontend": {
|
||||
"tests": 4,
|
||||
"passed": 4,
|
||||
"failed": 0,
|
||||
"scope": "All5actkinds and2valuations;ownconditions missing/no;references/date/currency;no minimum/fallback;exactdecimal/zero;switch retention/cleared confirmation;context/history;corruptwriteguard;old books/currentkeys preserved;report"
|
||||
},
|
||||
"privateAPI": {
|
||||
"tests": 1,
|
||||
"assertions": 28,
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7c-act-bases-20261024\\api-tests.xml"
|
||||
},
|
||||
"types": "passed",
|
||||
"build": "passed,existing plugin timing warnings",
|
||||
"UI": "Realcomponent Edge/CUA:missing applicability and valuation reference yield indeterminate;switch to normal retains2200.50;confirming yields2200.50 instead of1500.25;specialauction condition no yields notapplicable/noIVAzero;finalact1500.25/normal2200.50,VATnull;save/recover/report2rows+5priorversions. Synthetic QA,not manual Tempo acceptance.",
|
||||
"UI_screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7c-act-bases-20261024\\qa-recovered-report.png"
|
||||
},
|
||||
"preservation": {
|
||||
"base": "15894f4b0493423fda5edde7d016a270fd137a30",
|
||||
"delivered_ids": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P048",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P050",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P052",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P056",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P060",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P080",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P086",
|
||||
"AUD-SIM-L1-P090",
|
||||
"AUD-SIM-L1-P091"
|
||||
],
|
||||
"confirmed_losses": [],
|
||||
"accepted_delivery": "e62b7dfd/15894f4b;174tables/369files;29published/28relations/408geometries;code/schema/data/config/permissions checked at delivery",
|
||||
"frozen": "tests\\frontend\\fixtures\\iva-g7c-preserved-inputs.json",
|
||||
"sha256": "2ffcdb0f42ac1011aa29fde5b72532c99a3c75210e754442e38af587489d542c",
|
||||
"counts_before": {
|
||||
"delivered": 80,
|
||||
"QA": 0,
|
||||
"functional_pending": 52,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"scope": "P094only;preserve P091directions/references/baseVAT,P090,P060scope,P056,P050,partialP084P085;no active query/write"
|
||||
},
|
||||
"runtime_delta": {
|
||||
"resources/js/lib/iva-act-sale-base.ts": "ed555c826427a0964995144c59d4e801bfeebce5219a63a612f31bb977788d00",
|
||||
"resources/js/components/simulation-act-sale-base.tsx": "384e17aa18ed5ed9a8c6c47773577e87f211c2bccb3acbe3943269a08de1485a",
|
||||
"resources/js/components/simulation-monthly-iva.tsx": "3b2a24fde6db625c350f7366ec789b5aa7e86aa08645409203b5e96d02dc1ff3",
|
||||
"resources/js/lib/project-dossier.ts": "852ceaf59b95d92ff57d3b711dc2bc13eb4b547e7d9f1516eb543ece83247c09"
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 80,
|
||||
"QA": 1,
|
||||
"functional_pending": 51,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation_unchanged": "e62b7dfd",
|
||||
"remaining": "Integrate/deliver through existingGit withmanifest,freshbackup/real isolatedrestore and installeddelta;no push in QA task",
|
||||
"limits": "P084/P085partial,pending;P00105/06;L1open;beveragesL2/L3;Statistics/AIdeferred",
|
||||
"sources_inventory": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g7c-act-bases-20261024\\source-archive-inventory.json"
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"candidate": "946fc089066fa7c7b71648da0de4035f3b8b592f",
|
||||
"status": "partial_preparation_and_conditional_simulation_delivered_benefits_pending",
|
||||
"authorization": "ExplicitTempo:distinctP085emergency/humanitarianpurpose andP084requeststates;presentingdoesnotgrant;decisionspreservegoods/operation/period/conditions;normalandconditionalhypotheticalscenarios;documentaryconference stillrequired",
|
||||
"P084": {
|
||||
"states": [
|
||||
"preparation",
|
||||
"presented",
|
||||
"granted",
|
||||
"denied"
|
||||
],
|
||||
"scope": "Immutable explicitrequestRecords retain state,goods,operation,period,conditions,decisionreference/date;allrecordedscopes showninUI/report;edits/currentrequest donot replace prior decisions or extend them toother goods/operations/periods/opportunities",
|
||||
"precision": "Months,exact calendardates,or literaloperation/temporalscope including untilrevocation/withoutend;no artificialenddate orsingleoperation restriction when thedocumentstatesotherwise",
|
||||
"incomplete": "Draft can save incomplete;recording scopeddecision requires fouruserrequested scopeelements,not a new certificate/approver;document/date optional ifnotavailable",
|
||||
"not_submission": "No request sent to authority;declaredrecordstate isnot a grant bysimulator"
|
||||
},
|
||||
"P085": {
|
||||
"fields": "Emergency/disaster,nature,humanitarianpurpose,goods,recipient,availabledocuments,mitigation",
|
||||
"procedure": "Only applyemergency/donation procedurewhen correspondence demonstrated;not appliednow;P085acquisition scope retained,no automaticimport extension orP084status requirement"
|
||||
},
|
||||
"scenarios": {
|
||||
"normal": "User-indicated VAT with documentorprojectionpremise;missing/invalidamountororigin remainsindeterminate,no inferrednormalrate/base",
|
||||
"conditional": "Explicit hypotheticalassumption+materialconditions/context required;unknown/contradictedconditions giveindeterminate;0.00 onlylabelledhypotheticalconditionalexemption,notgrantedorapplied",
|
||||
"application": "Never modifies VATresults,field11,ModeloAtotals orrequeststatus;evenrecordeddeferido doesnotautoapply"
|
||||
},
|
||||
"reuse": "Existingper-opportunity reference reuse fills emptyfields only;optional availabledocuments canappend primaryreference without overwriting otherdocuments;all27priorfiscalbooks andoldofferhistory/deliberatepurpose preservedexactly",
|
||||
"verification": {
|
||||
"frontend": {
|
||||
"passed": 4,
|
||||
"failed": 0,
|
||||
"scope": "requestnotgrant,scopeddecisionhistory includingexact/literalperiods,P085ownpurpose,scenariopremises,save/recover/reportpreservation",
|
||||
"record": "latestnode:test outputthissession;acceptedoldproofs not rerun"
|
||||
},
|
||||
"privateAPI": {
|
||||
"tests": 1,
|
||||
"assertions": 31,
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"rollback": true,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-offer-paths-20261024\\api-tests.xml"
|
||||
},
|
||||
"types_final": "passed",
|
||||
"production_build_final": "passed;existingplugin/chunkwarnings",
|
||||
"UI": "CodexEdgeCUA:presentedstate,priorpartialgrantNovemberonly,normal800/conditional0hypothesis;withdrawassumption->indeterminate;incompletescopecannotreplacepriorrecord;P085humanitarianpurpose/normal160;version/save/recover/reportwithallrecords,4historicalversions. Exact/literalperiodvariants coveredbyunit tests,not separateUIclaim;notmanualTempoacceptance"
|
||||
},
|
||||
"regulatory_correspondence": {
|
||||
"status": "Still not demonstrated;not closed or declarednonexistent",
|
||||
"established_chain": "ModelI.1/Despacho06Jan2010->Decreto56/2009art2->CBFLei4/2009;not demonstrated implementinglinkCIVA14(3)",
|
||||
"this_session": "Jointtargetedqueries foundno newlyestablishedprimarylink;directATfiscal listing returnedno readabletoolcontent,whichisnot evidenceofabsence;no unreadsources adopted",
|
||||
"next": "Locate/read specific14(3) implementinglink or expressly applicable procedure,withinternalacquisition/import scope and amendments;onlythenapplyrespectivebenefit",
|
||||
"no_invented_requirements": "No certificate,taxclearance,projectapproval,newauthorityorapprover created;Tempo productclarification isnotdocumentaryproof"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 75,
|
||||
"QA_complete_branches": 0,
|
||||
"functional_pending": 57,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"installed": "G6E/P052c1314cdf,receipt536559d6;thisclarification946fc089QAonly,nopush/install",
|
||||
"preservation_before_tests": {
|
||||
"frozen": "tests\\frontend\\fixtures\\iva-g6e-inputs.json",
|
||||
"sha256": "f1ac7bd08994dfcf34f8567dffca98acf945f722093791ce8bbe94d679ac3af5",
|
||||
"accepted_delivered_before_install": 74,
|
||||
"accepted_QA": [
|
||||
"P052"
|
||||
],
|
||||
"preserved": "27fiscalbooks+offerbook(2rows,deliberateedits,histories)",
|
||||
"confirmed_losses": [],
|
||||
"scope": "Tempo explicitP084requeststates/scopeddecision,P085emergency/humanitarianpurpose,normal/conditionalhypotheticalscenarios;no automaticbenefit/activechange",
|
||||
"installation_in_progress": "c1314cdf;separateverifiedreceipt"
|
||||
},
|
||||
"limits": "L1open;P001only05/06;beveragesL2/L3;Statistics/AIdeferred;classificationdistinctfromdeduction/field11;L1closuredoesnotrequireL2/L3/alltaxes",
|
||||
"qa_status_preserved": "partial offer-path clarification demonstratedQA,not installed;P084/P085benefits remainpending",
|
||||
"delivery_followup": {
|
||||
"served_commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633",
|
||||
"receipt": "l1-g6f-delivery-20261024.json",
|
||||
"record": "iva_l1_g6f_P050_with_partial_P084_P085_homologation_20261024",
|
||||
"counts": {
|
||||
"delivered": 76,
|
||||
"QA": 0,
|
||||
"functional_pending": 56,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"candidate": "5ec2f198a35fd09e1e027f1db6fdf0b6d960114a",
|
||||
"status": "draft_preparation_only_demonstrated_QA;P084/P085 benefits and complete branches remain pending;not installed",
|
||||
"authorization": "ExplicitTempo24/10 joint documentary research,distinctconditions,fields/reuse/draftpreparation while research proceeds",
|
||||
"scope": {
|
||||
"P084": "Acquisition/import,beneficiary,purpose,national/public-social institution,goods suitability,public-interest use",
|
||||
"P085": "Acquisition only,goods,recipient/purpose,disaster/nature and mitigation;no import extension"
|
||||
},
|
||||
"reuse": "Only selected opportunity,explicitreference,fill empty fields only;preserve deliberate edits,originalbooks,provenance;no currencyconversion",
|
||||
"persistence": "Existing private API opaque modelo_a_snapshot.offerPreparations per opportunity;incomplete drafts accepted;explicit saved versions/history",
|
||||
"no_benefit_application": "No VAT calculation,exemption,result,zero,field11 or ModeloA totals;otherbranches unaffected",
|
||||
"documentary_research": {
|
||||
"document": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g5d-offer-drafts-20261024\\BR-11-I-2010-03-17-despacho-modelos.pdf",
|
||||
"sha256": "384fb46354e1888df43f72288dfed7933e30c7534211e0dcb6994f43b10e0059",
|
||||
"source_url": "https://www.cipmoz.org/wp-content/uploads/2023/parcerias-publico-privadas/9PP%29%20Despacho_Mecanismos%20Implementacao%20do%20Regulamento%20do%20Codigo%20dos%20Beneficios%20Fiscais.pdf",
|
||||
"identity": "BR11/I Série17/03/2010;DespachoMinistroFinanças06/01/2010;art1/2 modelos de implementaçãoRCBFDecreto56/2009",
|
||||
"pages": 17,
|
||||
"read_scope": "PDF1-5;ModelI.1/I.1A/I.2,includingI.1verso PDF3",
|
||||
"findings": [
|
||||
"ModelI.1verso lists emergency request viaINGC and other requests with legal provision/import invoices/donation certificate",
|
||||
"This is customs application documentation,not demonstrated to be the complete application regulation for CIVA14(2)(a/b) under14(3)",
|
||||
"Do not infer these instructions apply to domestic purchases,P085 imports,or all beneficiaries;do not turn oldINGC name/form or timelines into current portal mandatory requirements without applicable scope/amendments",
|
||||
"Source officialBR accepted;host is a mirror,not a second provenance approval"
|
||||
],
|
||||
"next": "Locate specific CIVA14(3) implementing provisions and later customs/INGD changes;compare domestic acquisition vs import applicability;draft preparation can proceed independently",
|
||||
"no_rule_activation": true
|
||||
},
|
||||
"remaining": "Locate and read applicable implementation of CIVA14(3),including domestic acquisition vs import scope and later customs/INGD changes;then complete respective benefit application and verify;do not infer that regulation doesnotexist",
|
||||
"estimate": "10–18h was conditional forP084/P085 only,notallL1;preliminary before draftpreparation,no new measured remaining estimate or documentary deadline claimed",
|
||||
"verification": {
|
||||
"frontend": {
|
||||
"new_tests": 4,
|
||||
"passed": 4,
|
||||
"failed": 0,
|
||||
"evidence": "node:test output this session;no saved stdout claimed"
|
||||
},
|
||||
"privateAPI": {
|
||||
"tests": 1,
|
||||
"assertions": 23,
|
||||
"target": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"rollback": true,
|
||||
"xml": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g5d-offer-drafts-20261024\\api-tests.xml"
|
||||
},
|
||||
"types": "passed",
|
||||
"production_build": "passed,existing plugin/chunk warnings",
|
||||
"UI": "Codex Edge/CUA realcomponent;distinctconditions,explicitreuse preserved deliberately editedpurpose,saveversion/save/recover/report,unknown amounts preserved;notmanualTempo acceptance",
|
||||
"QA_harness_correction": "Syntheticprefix mismatch rejected firstlocal save;fixed helper toaccept inheritedSYNTHETICQAG5Cseed;afterViterestart browserlocaledits andtwohistoricalversions preserved;successful save/recover/report verified"
|
||||
},
|
||||
"preservation": {
|
||||
"prior_books": 26,
|
||||
"prior_snapshot_keys_values": "exactlyequal,frozenG5Cinputs",
|
||||
"active": "unchanged installed2d889a21;receipt e3269079;no push/install of draft code"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 74,
|
||||
"QA_complete_branches": 0,
|
||||
"functional_pending": 58,
|
||||
"P001": 1,
|
||||
"total": 133
|
||||
},
|
||||
"limits": "L1open;P001only05/06;beveragesL2/L3;Statistics/AIdeferred;classification separatefromfield11;L1closure doesnotdepend onL2/L3/alltaxes",
|
||||
"draft_delivery_followup": {
|
||||
"served_commit": "c1314cdf90c368b51489aaf04c2cdbe59cfb88e6",
|
||||
"receipt": "l1-g6e-delivery-20261024.json",
|
||||
"status": "Originaldraftpreparationavailable;notfullbenefitclosure",
|
||||
"new_request_states_scenarios": "Not included;separateQAafterthisrelease"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"status": "diploma and formal basis of model identified;not demonstrated CIVA14(3) implementing correspondence",
|
||||
"chain": [
|
||||
"DespachoMF06/01/2010,BR11/I17/03/2010,art1(a)/art2 approvesModelI.1 and publishes attachedforms",
|
||||
"Express empowerment:art2Decreto56/2009",
|
||||
"Decreto56/2009,preamble/art1,implementsCBFLei4/2009;Regulationart1sameobject;art3investmentbeneficiaries;art6importrecognition,art7ruralinvestments,art8internaltaxes",
|
||||
"No expressCIVA14(3) or its gift conditions located in the readDecreto/Regulationarts1–16;do not treat form as sufficient correspondence"
|
||||
],
|
||||
"exact_citations": "BR40/I07/10/2009:PDF2/p303 decree1/2 and regulation1;PDF3/p304 regulation3/5/6/7/8;PDF4/p305 remaining9–16. MIREMEcompilationPDF86–92 contextualread,not new approval",
|
||||
"scenario_mapping": {
|
||||
"P084_internal_acquisition": "ModelI.1 titled/customs import instructions;doesnotdemonstrate domestic purchase procedure. Regulation8 concerns internal taxes underCBFobject,not automatically gifts14(2)(a).",
|
||||
"P084_import": "ModelI.1 may document customs exemption request only with identified legalbasis;othercases instruction asks provision/importinvoice/donationcertificate. Itdoesnotitself establish14(2)(a) entitlement or impose allCBFconditions on gifts.",
|
||||
"P085_internal_acquisition": "CIVA14(2)(b) acquisition;customs emergency instruction doesnot establish internal acquisition procedure.",
|
||||
"P085_import": "Not automatically covered by14(2)(b). Emergency request viaINGC appears inI.1verso,but requires own applicable legalbasis;no branchscope extension or mandatorycurrentINGCworkflow inferred."
|
||||
},
|
||||
"remaining": "Locate CIVA14(3) specific implementing link or expressly applicable procedure and later amendments/INGD/customs scope;preserve existing drafts and continue independent branches",
|
||||
"no_new_restrictions": "No mandatoryprojectapproval,NUIT/accounting,taxclearance,certificate or five/thirtyday deadlines added to P084/P085 by this cotejo;officialsources accepted,not reauthenticated",
|
||||
"sources": [
|
||||
{
|
||||
"file": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6e-supplies-20261024\\Decreto56-2009-BR40.pdf",
|
||||
"url": "https://fracessoriasa.co.mz/wp-content/uploads/2021/03/10-Decreto-n_56.2009-REGULAMENTO-DOS-BENEFICIOS-FISCAIS.pdf",
|
||||
"sha256": "6ea1b8d93daed48c6d590481d874010fa1708211d8f27c319dc9a31328456017",
|
||||
"pages": 5
|
||||
},
|
||||
{
|
||||
"file": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6e-supplies-20261024\\MIREME-legislacao-investimentos.pdf",
|
||||
"url": "https://mireme.gov.mz/wp-content/uploads/2022/03/Lei-e-Regualamento-das-zonas-francas-industriais-investimentos.pdf",
|
||||
"sha256": "df50f6a489ffb35a4252fddec0ffa1f9c58d7b8cb4e54c9f25b7904bd39218b7",
|
||||
"pages": 136
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,258 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"base_remote_main": "490527b92cf1ca18122679440ff3a38933b7e0c2",
|
||||
"candidate": "c28e290b42a2a96c68b16dab59871581633a471e",
|
||||
"compatibility": "fresh fetch;origin/main ancestor of candidate;no concurrent change;local stale main not used",
|
||||
"coverage": {
|
||||
"G2C": {
|
||||
"P013": [
|
||||
"cultural_visits_public",
|
||||
"cultural_visits_nonprofit"
|
||||
],
|
||||
"P014": [
|
||||
"religious_personnel_public",
|
||||
"religious_personnel_nonprofit"
|
||||
],
|
||||
"P015": [
|
||||
"statutory_membership"
|
||||
]
|
||||
},
|
||||
"G2D": {
|
||||
"P024": [
|
||||
"author_rights"
|
||||
],
|
||||
"P025": [
|
||||
"cultural_publications"
|
||||
]
|
||||
},
|
||||
"new_branches": 5,
|
||||
"new_treatments": 7,
|
||||
"conditional_treatments_total": 32
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 12,
|
||||
"QA": 5,
|
||||
"functional_pending": 115,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 17,
|
||||
"QA": 0,
|
||||
"functional_pending": 115,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "577a029e24580d9c4dba0e4c19ce57da6273fe6f44185b3a32bd02fd7573578c"
|
||||
}
|
||||
],
|
||||
"activation": "Existing Git FF/webhook installer;catalogue available in existing L1 component;no migration/import/server fiscal rule activation/permissions changes",
|
||||
"preservation": "12delivered+G2C/G2Dproofs reused;four frozen books unchanged/current without recalculation;newrules scoped keys only",
|
||||
"rollback": "Existing compatible readonly containment patch apply-check passed;keep catalogue/readers/snapshots/reports;prior release and fresh verified backup required;no active rollback executed",
|
||||
"QA": "G2C2frontend+API1/14;G2D2frontend+API1/11;UI?API?report;types/build passed;acceptedWord/PDFunchanged",
|
||||
"P001_blocks_independent": false,
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": "confirmed490527b9;installed/current/revisionagree;serviceinactive;pipelinehashunchanged",
|
||||
"backup_restore": {
|
||||
"verified": true,
|
||||
"tables": 174,
|
||||
"files": 369,
|
||||
"dump_sha256": "c11ba51e60cb3ac1cad5411c2aeefcb0adaeadd6fd2c16cd42fd6b63b1449fff",
|
||||
"backup": "/var/backups/investmoz-l1-g2cd-delivery-20261024/backup",
|
||||
"restore": "l1_g2cd_restore_20261024:55441;networknone;174checksumsagree;containerremoved;zeroactiveDBwrites"
|
||||
},
|
||||
"installed_delta": "verified",
|
||||
"served_commit": "3b788ec0098d84dcc154239651a35c685dfc2ebd",
|
||||
"installation": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g2cd-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "c11ba51e60cb3ac1cad5411c2aeefcb0adaeadd6fd2c16cd42fd6b63b1449fff",
|
||||
"files_sha256": "21fc80e45eaa289b67e2d2ce6bcc538b51330a3fa7cfb7e9cd64367201389b5e",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g2cd_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "c11ba51e60cb3ac1cad5411c2aeefcb0adaeadd6fd2c16cd42fd6b63b1449fff",
|
||||
"active_database_writes": 0
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "3b788ec0098d84dcc154239651a35c685dfc2ebd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/3b788ec0098d84dcc154239651a35c685dfc2ebd-56825c6e",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/490527b92cf1ca18122679440ff3a38933b7e0c2-d41ae12f",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "3b788ec0098d84dcc154239651a35c685dfc2ebd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/3b788ec0098d84dcc154239651a35c685dfc2ebd-56825c6e",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/490527b92cf1ca18122679440ff3a38933b7e0c2-d41ae12f",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"3b788ec0098d84dcc154239651a35c685dfc2ebd"
|
||||
],
|
||||
"finished_at": "2026-10-24T12:48:10.504292+00:00"
|
||||
},
|
||||
"log_file": "1792846007466003663.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 23.88s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 251",
|
||||
"# pass 251",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 101223
|
||||
},
|
||||
"protected_preservation": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "3b788ec0098d84dcc154239651a35c685dfc2ebd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/3b788ec0098d84dcc154239651a35c685dfc2ebd-56825c6e",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/490527b92cf1ca18122679440ff3a38933b7e0c2-d41ae12f",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 1,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"audit_events": {
|
||||
"before": {
|
||||
"rows": 645,
|
||||
"checksum": "88c2047620eb3fad4d2a2837ed3daef5"
|
||||
},
|
||||
"after": {
|
||||
"rows": 646,
|
||||
"checksum": "cf24e81547ee23d812ccaadaccc387b6"
|
||||
}
|
||||
},
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "ef2967a3b3174300a6509d3013c1823d"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "6dfe16f04a406749beaf0a189897106b"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 5,
|
||||
"checksum": "2a932f661c46631221bec768a4a23574"
|
||||
},
|
||||
"after": {
|
||||
"rows": 8,
|
||||
"checksum": "6d7f01315a1de04eadaddc0b90e0526c"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"audit_delta": {
|
||||
"historical_audit_unchanged": true,
|
||||
"historical_rows": 645,
|
||||
"new_events": 1,
|
||||
"new_event_metadata": {
|
||||
"source_system": "virtual-desk",
|
||||
"entity_type": "desk_cases",
|
||||
"action": "consulted",
|
||||
"created_at": "2026-10-24T12:47:35.31492+00:00"
|
||||
},
|
||||
"verification_writes": 0
|
||||
},
|
||||
"public_delta": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "3b788ec0098d84dcc154239651a35c685dfc2ebd",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T12:48:08.073225+00:00",
|
||||
"manifest_sha256": "b00f59904a5709fbcd8eaa6b51ac8dc421ddfc8dfd2e0ce18d133240150c8810"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"cultural_visits_": [
|
||||
"assets/project-dossier-BDWSVUNs.js"
|
||||
],
|
||||
"religious_personnel_": [
|
||||
"assets/project-dossier-BDWSVUNs.js"
|
||||
],
|
||||
"statutory_membership": [
|
||||
"assets/project-dossier-BDWSVUNs.js"
|
||||
],
|
||||
"author_rights": [
|
||||
"assets/project-dossier-BDWSVUNs.js"
|
||||
],
|
||||
"cultural_publications": [
|
||||
"assets/project-dossier-BDWSVUNs.js"
|
||||
],
|
||||
"iva-operations-l1/2": [
|
||||
"assets/project-dossier-BDWSVUNs.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-BVqhDRN3.js",
|
||||
"status": 200,
|
||||
"sha256": "56076c99222527ecc453bd245e21830618d07d26a874eede4f07cd597587922a"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-BDWSVUNs.js",
|
||||
"status": 200,
|
||||
"sha256": "574235d0a55380d1a0a4044b46bed1c9f47aca0ec4f61b1356ac7216b8fcc85d"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-CJfVMeO3.js",
|
||||
"status": 200,
|
||||
"sha256": "ae0b9fda96068b6179b16d0b7d121d4d840ba82d6763253821bb6b9ac03a3686"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-B0KlTmxs.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"Git": "freshfetch;branchpush;mainfastforward;noforce;existingwebhook",
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,289 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "9b0f4370737f340b7fca606728f5ca281f6b5dfd",
|
||||
"base_remote_main": "3b788ec0098d84dcc154239651a35c685dfc2ebd",
|
||||
"fresh_fetch": "confirmed main3b788ec0;ancestor;no concurrent changes detected;localmainnotused",
|
||||
"coverage": {
|
||||
"G2E": {
|
||||
"P033": "industrial_feed",
|
||||
"P034": "industrial_feed_inputs",
|
||||
"P036": "veterinary_goods",
|
||||
"P044": "agricultural_services"
|
||||
},
|
||||
"G2F": {
|
||||
"P023": "special_tax_games",
|
||||
"P028": "stamped_values",
|
||||
"P037": "public_passenger_transport"
|
||||
},
|
||||
"new_branches": 7,
|
||||
"new_treatments": 7,
|
||||
"conditional_treatments_total": 39
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 17,
|
||||
"QA": 7,
|
||||
"functional_pending": 108,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 24,
|
||||
"QA": 0,
|
||||
"functional_pending": 108,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "dcb141a4d0a1edb0d2b2c8f63a20a076b8362c02d652baad673e652c133c64ce"
|
||||
}
|
||||
],
|
||||
"activation": "ExistingGitFF/webhook/installer;catalogueexistingcomponent;no migrations/imports/server fiscal rule activation/permissions changes",
|
||||
"preservation": "17delivered closed;G2E/G2FacceptedQAproofsreused;sixfrozenbookscurrentwithoutrecalculation",
|
||||
"rollback": "Keepcataloguereaderssnapshotsresultsreports;existingreadonlycontainmentpatchapplycheckrequired;backuprestorebeforepush;no rollback executed",
|
||||
"P001": "Stilldocumentary05/06;05/07doesnotresolveit;doesnotblockindependent",
|
||||
"QA": "G2E2frontend+API1/14;G2F2frontend+API1/13;UItoAPIreport;types/buildpassed;WordPDFunchanged",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "3b788ec0098d84dcc154239651a35c685dfc2ebd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/3b788ec0098d84dcc154239651a35c685dfc2ebd-56825c6e",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/490527b92cf1ca18122679440ff3a38933b7e0c2-d41ae12f",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/3b788ec0098d84dcc154239651a35c685dfc2ebd-56825c6e",
|
||||
"release_revision": {
|
||||
"commit": "3b788ec0098d84dcc154239651a35c685dfc2ebd",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T12:48:08.073225+00:00",
|
||||
"manifest_sha256": "b00f59904a5709fbcd8eaa6b51ac8dc421ddfc8dfd2e0ce18d133240150c8810"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g2ef-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "e23ea1909ede1cb3be7a5e5751f5580e8b8c0b2452c53772c8e28d06ec999b20",
|
||||
"files_sha256": "c56f7ac804b0d4f0c69a2f53a23b00cc34fa067888e62e13444192b3d41c52cf",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g2ef_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "e23ea1909ede1cb3be7a5e5751f5580e8b8c0b2452c53772c8e28d06ec999b20",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"installed_delta": "verified",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"rollback_compatibility": "gitapplycheckpassed;notapplied;keepcatalogueandreaders;previousreleaseandverifiedbackupavailable",
|
||||
"served_commit": "9a56d982423d0c244850f8638290a1ce8a968619",
|
||||
"installation": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g2ef-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "e23ea1909ede1cb3be7a5e5751f5580e8b8c0b2452c53772c8e28d06ec999b20",
|
||||
"files_sha256": "c56f7ac804b0d4f0c69a2f53a23b00cc34fa067888e62e13444192b3d41c52cf",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g2ef_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "e23ea1909ede1cb3be7a5e5751f5580e8b8c0b2452c53772c8e28d06ec999b20",
|
||||
"active_database_writes": 0
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "9a56d982423d0c244850f8638290a1ce8a968619",
|
||||
"release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/3b788ec0098d84dcc154239651a35c685dfc2ebd-56825c6e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "9a56d982423d0c244850f8638290a1ce8a968619",
|
||||
"release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/3b788ec0098d84dcc154239651a35c685dfc2ebd-56825c6e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"9a56d982423d0c244850f8638290a1ce8a968619"
|
||||
],
|
||||
"finished_at": "2026-10-24T13:01:02.426859+00:00"
|
||||
},
|
||||
"log_file": "1792846776358374658.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.68s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 255",
|
||||
"# pass 255",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 102308
|
||||
},
|
||||
"protected_preservation": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "9a56d982423d0c244850f8638290a1ce8a968619",
|
||||
"release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/3b788ec0098d84dcc154239651a35c685dfc2ebd-56825c6e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 1,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "17b5d816f82ab932dca814a8e76c1211"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "316356979dc340fc5f141679bdee5c0d"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 8,
|
||||
"checksum": "d1df0268b1343c91b756052e39ca7930"
|
||||
},
|
||||
"after": {
|
||||
"rows": 11,
|
||||
"checksum": "787de58f2b0436566c2ad27161a8a759"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public_delta": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "9a56d982423d0c244850f8638290a1ce8a968619",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T13:00:59.831259+00:00",
|
||||
"manifest_sha256": "b92bc7b64176675274dd934bb683f09c4a4ca3c4fe690dfce06425e89a7f3e04"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"industrial_feed": [
|
||||
"assets/project-dossier-DSFHX342.js"
|
||||
],
|
||||
"industrial_feed_inputs": [
|
||||
"assets/project-dossier-DSFHX342.js"
|
||||
],
|
||||
"veterinary_goods": [
|
||||
"assets/project-dossier-DSFHX342.js"
|
||||
],
|
||||
"agricultural_services": [
|
||||
"assets/project-dossier-DSFHX342.js"
|
||||
],
|
||||
"special_tax_games": [
|
||||
"assets/project-dossier-DSFHX342.js"
|
||||
],
|
||||
"stamped_values": [
|
||||
"assets/project-dossier-DSFHX342.js"
|
||||
],
|
||||
"public_passenger_transport": [
|
||||
"assets/project-dossier-DSFHX342.js"
|
||||
],
|
||||
"iva-operations-l1/2": [
|
||||
"assets/project-dossier-DSFHX342.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/project-dossier-DSFHX342.js",
|
||||
"status": 200,
|
||||
"sha256": "9083729b212d85c15164545718f7813f1a843627eb7dffbfa398bd8ce4a35afb"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-CfCgVoiZ.js",
|
||||
"status": 200,
|
||||
"sha256": "4e3c1d5d90b642e4face01d05ab47f73cc9e3e7c4286fb7b638319d8d71dc96a"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-7BExzGRH.js",
|
||||
"status": 200,
|
||||
"sha256": "3e925451351648c1dd2f7323c15e1881ba09dd3f0f27092a153958537476583f"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-CHL9O0-A.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"Git": "freshfetch;branchpush;mainfastforward;noforce;existingwebhook",
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,371 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "b297058d11aee206530492a65f86e3d58eb5ba15",
|
||||
"base_remote_main": "9a56d982423d0c244850f8638290a1ce8a968619",
|
||||
"fresh_fetch": "main9a56d982;ancestor;no concurrent advance detected",
|
||||
"coverage": {
|
||||
"G2G": {
|
||||
"P010": [
|
||||
"public_security"
|
||||
],
|
||||
"P027": [
|
||||
"official_military_supplies"
|
||||
],
|
||||
"P031": [
|
||||
"sisa_subject_operation"
|
||||
],
|
||||
"P032": [
|
||||
"exempt_activity_asset_sale",
|
||||
"no_deduction_right_asset_sale",
|
||||
"excluded_deduction_asset_sale"
|
||||
]
|
||||
},
|
||||
"G2H": {
|
||||
"P026": [
|
||||
"listed_maize",
|
||||
"listed_maize_flour",
|
||||
"listed_rice",
|
||||
"listed_bread",
|
||||
"listed_iodised_salt",
|
||||
"listed_infant_powdered_milk",
|
||||
"listed_wheat",
|
||||
"listed_wheat_flour",
|
||||
"listed_fresh_chilled_tomato",
|
||||
"listed_potato",
|
||||
"listed_onion",
|
||||
"listed_frozen_horse_mackerel",
|
||||
"listed_lighting_kerosene",
|
||||
"listed_domestic_lpg",
|
||||
"listed_jet_fuel",
|
||||
"listed_eligible_bicycles",
|
||||
"listed_condoms",
|
||||
"listed_insecticides"
|
||||
]
|
||||
},
|
||||
"new_branches": 5,
|
||||
"new_treatments": 24,
|
||||
"conditional_treatments_total": 63
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 24,
|
||||
"QA": 5,
|
||||
"functional_pending": 103,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 29,
|
||||
"QA": 0,
|
||||
"functional_pending": 103,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "f18941067a82d18f43af4252c11b7ff26e001212e1e6cb5bff62c9b4ba48f855"
|
||||
}
|
||||
],
|
||||
"activation": "ExistingGitFF/webhook/installer;catalogueexistingcomponent;no migrations/imports/server rule activation/permissions/other tax calculations",
|
||||
"QA": "G2G2frontend+API1/16;G2H2frontend+API1/28;UItoAPIreport;types/buildpassed;acceptedWordPDFreused",
|
||||
"preservation": "24delivered andeightfrozencontextscurrentwithoutrecalculation;G2G/G2Hproofsreused;G2Ftraceabilityclarifiedwithoutretests",
|
||||
"rollback": "Keepcataloguereaderssnapshotsresultsreports;compatibleexistingreadonlypatch;priorreleaseandfreshbackuprestorebeforepush;no rollback executed",
|
||||
"P001": "Documentary05/06stillopen;05/07doesnotresolveit;noindependentblock",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "9a56d982423d0c244850f8638290a1ce8a968619",
|
||||
"release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/3b788ec0098d84dcc154239651a35c685dfc2ebd-56825c6e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
|
||||
"release_revision": {
|
||||
"commit": "9a56d982423d0c244850f8638290a1ce8a968619",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T13:00:59.831259+00:00",
|
||||
"manifest_sha256": "b92bc7b64176675274dd934bb683f09c4a4ca3c4fe690dfce06425e89a7f3e04"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g2gh-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "ffe24d9e324cc1ad2354e8feec088e072db437eb54d1f5b6dfd3830865940b40",
|
||||
"files_sha256": "57bcb40faf4cb5e14b0aa13eb8b274f222e51bc3cd5fd17e07d70e87165e2b94",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g2gh_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "ffe24d9e324cc1ad2354e8feec088e072db437eb54d1f5b6dfd3830865940b40",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"installed_delta": "verified",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"rollback_compatibility": "gitapplycheckpassed;notapplied;keepcatalogueandreaders;previousreleaseandverifiedbackupavailable",
|
||||
"served_commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
|
||||
"installation": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g2gh-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "ffe24d9e324cc1ad2354e8feec088e072db437eb54d1f5b6dfd3830865940b40",
|
||||
"files_sha256": "57bcb40faf4cb5e14b0aa13eb8b274f222e51bc3cd5fd17e07d70e87165e2b94",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g2gh_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "ffe24d9e324cc1ad2354e8feec088e072db437eb54d1f5b6dfd3830865940b40",
|
||||
"active_database_writes": 0
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"d4eae917ee9c9d37f0339905a96c1e35480f324e"
|
||||
],
|
||||
"finished_at": "2026-10-24T13:15:14.273272+00:00"
|
||||
},
|
||||
"log_file": "1792847626452821855.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 26.20s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 259",
|
||||
"# pass 259",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 103542
|
||||
},
|
||||
"protected_preservation": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 1,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "316356979dc340fc5f141679bdee5c0d"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "39b6357efbe3142e8d0e55b5fac6a935"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 11,
|
||||
"checksum": "787de58f2b0436566c2ad27161a8a759"
|
||||
},
|
||||
"after": {
|
||||
"rows": 14,
|
||||
"checksum": "ba1aa4ceaf894c62a66a4186ae4e9ddc"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public_delta": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T13:15:11.725340+00:00",
|
||||
"manifest_sha256": "4018026aac013855f2c9baf9258ed96e1b1bf808d996e8fa8eec9458ea6b35c7"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"public_security": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"official_military_supplies": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"sisa_subject_operation": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"exempt_activity_asset_sale": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"no_deduction_right_asset_sale": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"excluded_deduction_asset_sale": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"maize": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"maize_flour": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"rice": [
|
||||
"assets/services-CVvFKfag.js",
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"bread": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"iodised_salt": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"infant_powdered_milk": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"wheat": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"wheat_flour": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"fresh_chilled_tomato": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"potato": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"onion": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"frozen_horse_mackerel": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"lighting_kerosene": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"domestic_lpg": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"jet_fuel": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"eligible_bicycles": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"condoms": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"insecticides": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"listed_": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
],
|
||||
"iva-operations-l1/2": [
|
||||
"assets/project-dossier-PaHmg6s9.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-CVvFKfag.js",
|
||||
"status": 200,
|
||||
"sha256": "3ce2515eb4d53e8c2da3f10fdca2bfea208d801616813e6dcd18331b7d25c048"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-PaHmg6s9.js",
|
||||
"status": 200,
|
||||
"sha256": "9fce800b1b9805b436a1d3801f8a596ad8c879604ac193d2af6cfb546d15c7e8"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-CNebL8r6.js",
|
||||
"status": 200,
|
||||
"sha256": "242eebf5c9d9dac52eb0b53009013705058cfd62aeb0c576e4cdb6cad7619c5f"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-gy0vGuME.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"Git": "freshfetch;branchpush;mainfastforward;noforce;existingwebhook",
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,319 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "72f4187d3bc0727ae0c5162500d5d6f26b7eed49",
|
||||
"base_remote_main": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
|
||||
"fresh_fetch": "main d4eae917; ancestral; no concurrent advance detected; fetch again immediately before push",
|
||||
"coverage": {
|
||||
"G2I": {
|
||||
"P019": [
|
||||
"production_agriculture"
|
||||
],
|
||||
"P020": [
|
||||
"production_forestry",
|
||||
"production_forestry_opted"
|
||||
],
|
||||
"P021": [
|
||||
"production_livestock",
|
||||
"production_livestock_opted"
|
||||
],
|
||||
"P022": [
|
||||
"production_fishing",
|
||||
"production_fishing_opted"
|
||||
]
|
||||
},
|
||||
"G2J": {
|
||||
"P016": [
|
||||
"fundraising_public",
|
||||
"fundraising_nonprofit"
|
||||
]
|
||||
},
|
||||
"new_branches": 5,
|
||||
"new_treatments": 9,
|
||||
"conditional_treatments_total": 72,
|
||||
"calendar_resolution": "Civil279(c)/296 plus CIVA11(3), production-option/2; no additional branch"
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 29,
|
||||
"QA": 5,
|
||||
"functional_pending": 98,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 34,
|
||||
"QA": 0,
|
||||
"functional_pending": 98,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/components/simulation-operations.tsx",
|
||||
"sha256_LF": "94e7419ee3338c9eda6418e741d72f08334dbb3f6507dd78d2bd6690d4be6b5b"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-fundraising.ts",
|
||||
"sha256_LF": "b58fc5733eb9f7facfe00a5f4cf0acdc98ad1e4191dbfdd1189fdf379e25e227"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "844d9b634afcb6a72237ca87626e5e1bcba8df3744b35063c1657a590d17b957"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-production-option.ts",
|
||||
"sha256_LF": "2bdbb6ed52086c2c47d9f615b2cbe1c8f1370b8fdcefaa40c07b6cda8cc47526"
|
||||
}
|
||||
],
|
||||
"activation": "Existing Git FF/webhook/installer and existing enabled simulator panel; no migrations/imports/server-rule activation/permissions/other taxes",
|
||||
"QA": "G2I fe69a16e/a5ac8ca1 reused except changed calendar; calendar2frontend+API1/10;G2J2frontend+API1/10;UI/API/report;types/buildpassed;acceptedWordPDFreused",
|
||||
"preservation": "29 delivered branches and previous receipts/data retained; only changed G2I opted-rule results marked historical, never rewritten",
|
||||
"rollback": "Keep catalogue/readers/snapshots/results/reports; verified compatible l1-joint-readonly-rollback-20261024.patch suspends edits/calculations only; not applied. Prior release and verified fresh backup retained; no broad rollback or DB restoration executed.",
|
||||
"rollback_compatibility": "git apply --check passed; not applied",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
|
||||
"release_revision": {
|
||||
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T13:15:11.725340+00:00",
|
||||
"manifest_sha256": "4018026aac013855f2c9baf9258ed96e1b1bf808d996e8fa8eec9458ea6b35c7"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g2ij-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "a75cb8751146ad0a59ecd62fa13e4d9ede3fd98ad2f4ebda092b48f7c2526c32",
|
||||
"files_sha256": "889fe89ec3acccfc17ace98dec9e6fb8675bfb75f69efb1ae9ce7585c50ef873",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g2ij_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "a75cb8751146ad0a59ecd62fa13e4d9ede3fd98ad2f4ebda092b48f7c2526c32",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"P001": "Documentary05/06only;independentoperationsnotblocked",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"served_commit": "e45a1394fa2ca8631593549b3af62093f25d9c13",
|
||||
"installed_delta": "verified",
|
||||
"installation": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g2ij-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "a75cb8751146ad0a59ecd62fa13e4d9ede3fd98ad2f4ebda092b48f7c2526c32",
|
||||
"files_sha256": "889fe89ec3acccfc17ace98dec9e6fb8675bfb75f69efb1ae9ce7585c50ef873",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g2ij_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "a75cb8751146ad0a59ecd62fa13e4d9ede3fd98ad2f4ebda092b48f7c2526c32",
|
||||
"active_database_writes": 0
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e45a1394fa2ca8631593549b3af62093f25d9c13",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e45a1394fa2ca8631593549b3af62093f25d9c13-f5f7e07d",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "e45a1394fa2ca8631593549b3af62093f25d9c13",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e45a1394fa2ca8631593549b3af62093f25d9c13-f5f7e07d",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"e45a1394fa2ca8631593549b3af62093f25d9c13"
|
||||
],
|
||||
"finished_at": "2026-10-24T13:51:04.874534+00:00"
|
||||
},
|
||||
"log_file": "1792849778512278349.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.05s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 265",
|
||||
"# pass 265",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 105228
|
||||
},
|
||||
"protected_preservation": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e45a1394fa2ca8631593549b3af62093f25d9c13",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e45a1394fa2ca8631593549b3af62093f25d9c13-f5f7e07d",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 4,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "39b6357efbe3142e8d0e55b5fac6a935"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "de9f82d4485c5358f6677efbc61c53a0"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 14,
|
||||
"checksum": "ba1aa4ceaf894c62a66a4186ae4e9ddc"
|
||||
},
|
||||
"after": {
|
||||
"rows": 15,
|
||||
"checksum": "c6e69ce7f5936cefebf8b1d7b9295a15"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public_delta": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "e45a1394fa2ca8631593549b3af62093f25d9c13",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T13:51:02.487098+00:00",
|
||||
"manifest_sha256": "2f3fd204e659ac71f0e35b59365b7342d79f1460119ef34a4daa217e4b21c0af"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"production_": [
|
||||
"assets/project-dossier-CP3iqTD7.js",
|
||||
"assets/services-D8gl05j7.js"
|
||||
],
|
||||
"agriculture": [
|
||||
"assets/project-dossier-CP3iqTD7.js"
|
||||
],
|
||||
"forestry": [
|
||||
"assets/project-dossier-CP3iqTD7.js"
|
||||
],
|
||||
"livestock": [
|
||||
"assets/project-dossier-CP3iqTD7.js"
|
||||
],
|
||||
"fishing": [
|
||||
"assets/project-dossier-CP3iqTD7.js"
|
||||
],
|
||||
"fundraising_public": [
|
||||
"assets/project-dossier-CP3iqTD7.js"
|
||||
],
|
||||
"fundraising_nonprofit": [
|
||||
"assets/project-dossier-CP3iqTD7.js",
|
||||
"assets/services-D8gl05j7.js"
|
||||
],
|
||||
"production-option/2": [
|
||||
"assets/project-dossier-CP3iqTD7.js"
|
||||
],
|
||||
"fundraising/1": [
|
||||
"assets/project-dossier-CP3iqTD7.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-RxKyJJE-.js",
|
||||
"status": 200,
|
||||
"sha256": "f1580c32f9b5590f65ef1caeb99bcb8838a7593837001e8f541815318bbffc65"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-CP3iqTD7.js",
|
||||
"status": 200,
|
||||
"sha256": "7317575f701ff3b68c5909f57bfa8b2d228fc30f3c0a8b852ebe2f98ad4431fc"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-D8gl05j7.js",
|
||||
"status": 200,
|
||||
"sha256": "018c16520dc0410f830de3963aa55bcf459297cd0bbebfa4562312cd2793c218"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-B5iYnxXw.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"Git": "fresh fetch; feature push; main fast-forward; no force; existing webhook",
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,391 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"base_remote_main": "e45a1394fa2ca8631593549b3af62093f25d9c13",
|
||||
"fresh_fetch": "origin/main e45a1394,ancestor;fetch again immediately before main push",
|
||||
"coverage": {
|
||||
"G2K": {
|
||||
"P008": [
|
||||
"pharma_manufacturing_inputs"
|
||||
]
|
||||
},
|
||||
"G2L": {
|
||||
"P035": [
|
||||
"annexI_goods"
|
||||
]
|
||||
},
|
||||
"new_branches": 2,
|
||||
"new_treatments": 2,
|
||||
"documentary_rows": {
|
||||
"AnexoIII": 170,
|
||||
"AnexoI": 172
|
||||
},
|
||||
"existing_treatments_reused": "Explicit identity-preserving continuations to9(10);no new branch IDs"
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 36,
|
||||
"QA": 0,
|
||||
"functional_pending": 96,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_QA_and_delivery_only": {
|
||||
"delivered": 36,
|
||||
"QA": 0,
|
||||
"functional_pending": 96,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/components/simulation-operations.tsx",
|
||||
"sha256_LF": "6e6d7b5d7f47541683dd4f32e93805b0d3068283a8ff1b3446884f5e4c626039"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "02e411659c84c00182c6c46f3af499f04648a8cf84911ce11ed9a21f12d48d78"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-pharma-annex.ts",
|
||||
"sha256_LF": "dd56382b6edcced208efb03ebfc412f75e03b7180d084021ecbde1bac713ce3f"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-annex-i.ts",
|
||||
"sha256_LF": "6dda21a66dd9399b911bc9839163a5e20f10808ac1937d3b2ca70dff3109424d"
|
||||
}
|
||||
],
|
||||
"QA": {
|
||||
"G2K": "8882dc54/1fe74256;accepted proofs reused",
|
||||
"G2L": "4frontend/types/build accepted; manual Tempo reading/viewing and reported save/recover/report passage; actual saved UI payload verified and private API1/29 passed;12previousbooks preserved without recalculation.",
|
||||
"review_controls": "Same-origin synthetic file save/recover/report clarified; manual passage reported by Tempo and saved file found; no Codex browser observation claimed."
|
||||
},
|
||||
"visual_gate": {
|
||||
"origin": "http://127.0.0.1:18639",
|
||||
"user_authorized": true,
|
||||
"user_requested_retry": true,
|
||||
"current_tool_result": "A saved user permission setting blocks this action; saved permission or managed policy denies access",
|
||||
"alternate_origin_or_browser_workaround_attempted": false
|
||||
},
|
||||
"before_delivery_required": [],
|
||||
"activation": "Existing Git fast-forward/webhook/installer and existing simulator panel;no migrations/imports/server fiscal activation/permissions/other taxes",
|
||||
"rollback": "Existing l1-joint-readonly-rollback-20261024.patch passed git apply --check;not applied;keeps catalogue/readers/history/API/reports. Retain prior release and verified fresh backup before deployment;no DBrestore executed.",
|
||||
"backup_restore_new_delivery": "Verified fresh backup and real isolated restore;no active restore executed.",
|
||||
"homologation_unchanged": false,
|
||||
"P001": "05/06only;notextended",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"G2L_candidate": "744682835a91f08aece9258380466ae746bc7353",
|
||||
"G2K_candidate": "8882dc54d0973bc058b04009bdbc36c9da2cc31b",
|
||||
"G2L_record": "iva_l1_g2_annex_i_code_qa_visual_pending_20261024",
|
||||
"visual_verification_routes": {
|
||||
"authority": "Express Tempo instruction,24/10/2026",
|
||||
"manual_Tempo": {
|
||||
"accepted": true,
|
||||
"status": "manual_passage_reported_and_saved_payload_technically_verified",
|
||||
"observations": {
|
||||
"source": "Tempo, conversation24/10/2026",
|
||||
"earlier_statement": "No failure seen in what was read and observed; save/recovery buttons not identified.",
|
||||
"latest_statement": "ja procedi com a tua instrução pode verificar",
|
||||
"scope": "User reports following the save/recover/report instructions after controls were clarified.",
|
||||
"Codex_visual_observation": false,
|
||||
"additional_individual_observations_invented": false
|
||||
}
|
||||
},
|
||||
"Codex_browser": {
|
||||
"accepted_after_tool_permission_review": true,
|
||||
"saved_permission_not_changed_by_conversation_authorization": true
|
||||
},
|
||||
"scope": [
|
||||
"Search/select an AnnexI position",
|
||||
"Conditions and missing information",
|
||||
"Save/recover and match selected position in report;continuitywhereapplicable"
|
||||
],
|
||||
"automatic_tests": "Already accepted;do not repeat",
|
||||
"tool_block_is_portal_failure_evidence": false,
|
||||
"circumvention": false
|
||||
},
|
||||
"G2L_completion_record": "iva_l1_g2l_manual_completion_and_actual_UI_payload_20261024",
|
||||
"candidate": "da798dd1d8a017cfb20764b566661807b2ef0ffc",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e45a1394fa2ca8631593549b3af62093f25d9c13",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e45a1394fa2ca8631593549b3af62093f25d9c13-f5f7e07d",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/e45a1394fa2ca8631593549b3af62093f25d9c13-f5f7e07d",
|
||||
"release_revision": {
|
||||
"commit": "e45a1394fa2ca8631593549b3af62093f25d9c13",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T13:51:02.487098+00:00",
|
||||
"manifest_sha256": "2f3fd204e659ac71f0e35b59365b7342d79f1460119ef34a4daa217e4b21c0af"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g2kl-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "8c6d8f2745ebb3dc6883d67fb8d9810593d47ad44fb0e20859e3547044adee6c",
|
||||
"files_sha256": "66d42c9053508681e8f7adfe20631396272f2fb934a69a6c79347a029fa11f78",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g2kl_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "8c6d8f2745ebb3dc6883d67fb8d9810593d47ad44fb0e20859e3547044adee6c",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"rollback_compatibility": "git apply --check passed on current candidate;patch not applied;catalogue/readers/history retained",
|
||||
"served_commit": "ccdecbd8d74596e729f03381d3b37ca22ce5800e",
|
||||
"installed_delta": "verified",
|
||||
"installation": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g2kl-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "8c6d8f2745ebb3dc6883d67fb8d9810593d47ad44fb0e20859e3547044adee6c",
|
||||
"files_sha256": "66d42c9053508681e8f7adfe20631396272f2fb934a69a6c79347a029fa11f78",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g2kl_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "8c6d8f2745ebb3dc6883d67fb8d9810593d47ad44fb0e20859e3547044adee6c",
|
||||
"active_database_writes": 0
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "ccdecbd8d74596e729f03381d3b37ca22ce5800e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/e45a1394fa2ca8631593549b3af62093f25d9c13-f5f7e07d",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "ccdecbd8d74596e729f03381d3b37ca22ce5800e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/e45a1394fa2ca8631593549b3af62093f25d9c13-f5f7e07d",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"ccdecbd8d74596e729f03381d3b37ca22ce5800e"
|
||||
],
|
||||
"finished_at": "2026-10-24T14:40:58.261566+00:00"
|
||||
},
|
||||
"log_file": "1792852768694030688.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.35s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 272",
|
||||
"# pass 272",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 107426
|
||||
},
|
||||
"protected_preservation": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "ccdecbd8d74596e729f03381d3b37ca22ce5800e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/e45a1394fa2ca8631593549b3af62093f25d9c13-f5f7e07d",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 4,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "9d045636f1332b32bb65a20a35a0ffe1"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "f8fbf67b713b7dfdce6a3bacb6c46823"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 14,
|
||||
"checksum": "fa2aec2278d6646c26970993447e306a"
|
||||
},
|
||||
"after": {
|
||||
"rows": 15,
|
||||
"checksum": "9c9c8b103d1429a690d8e140f1c19ad7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public_delta": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "ccdecbd8d74596e729f03381d3b37ca22ce5800e",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T14:40:55.681401+00:00",
|
||||
"manifest_sha256": "8ee52a7b3f7c4363f10d73382d85325bbfa331c2e6e44ccd08d92e578cdf2776"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"annexI_goods": [
|
||||
"assets/project-dossier-DmOH9u9e.js",
|
||||
"assets/services-zksozm3m.js"
|
||||
],
|
||||
"pharma_manufacturing_inputs": [
|
||||
"assets/project-dossier-DmOH9u9e.js",
|
||||
"assets/services-zksozm3m.js"
|
||||
],
|
||||
"annexI-lei22-2022/1": [
|
||||
"assets/project-dossier-DmOH9u9e.js"
|
||||
],
|
||||
"annexIII-lei22-2022/1": [
|
||||
"assets/project-dossier-DmOH9u9e.js"
|
||||
],
|
||||
"annexIItem": [
|
||||
"assets/project-dossier-DmOH9u9e.js",
|
||||
"assets/services-zksozm3m.js"
|
||||
],
|
||||
"pharmaAnnexItem": [
|
||||
"assets/project-dossier-DmOH9u9e.js",
|
||||
"assets/services-zksozm3m.js"
|
||||
],
|
||||
"2912.19.00": [
|
||||
"assets/project-dossier-DmOH9u9e.js",
|
||||
"assets/services-zksozm3m.js"
|
||||
],
|
||||
"8201.50.00": [
|
||||
"assets/project-dossier-DmOH9u9e.js"
|
||||
],
|
||||
"8701.95.00": [
|
||||
"assets/project-dossier-DmOH9u9e.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/project-dossier-DmOH9u9e.js",
|
||||
"status": 200,
|
||||
"sha256": "4cd3c0dbc4466661ce7e73dd4120fb956b9386c6e141b038e5a526cbf7424196"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-zksozm3m.js",
|
||||
"status": 200,
|
||||
"sha256": "5b771620208247a10da9d22e78be4fc772f8c1e02afcf38a7e6a47a5cdfefd5d"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-BGVr7IFw.js",
|
||||
"status": 200,
|
||||
"sha256": "fa7e832b28fbb762872dd5df448ef20c6f2ce5bafd5226b20c31376b566a25da"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-CQEv1lby.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"Git": "fresh fetch;feature push;main fast-forward;no force;existing webhook",
|
||||
"rollback_executed": false
|
||||
},
|
||||
"G2L_visual_evidence": {
|
||||
"method": "Verificação manual pela Tempo, autorizada expressamente na conversa;não foi observação de navegador peloCodex.",
|
||||
"tool_block": "Permissão guardada/política gerida impediu o Codex de controlar a origemQA18639. Não foi alterada nem contornada.",
|
||||
"manual_evidence": [
|
||||
{
|
||||
"statement": "conferi o SYNTHETIC QA — G2L / Anexo I",
|
||||
"scope": "Abertura e leitura da páginaQA pelaTempo"
|
||||
},
|
||||
{
|
||||
"statement": "pelo que li e observei não vi nenhuam falha mas tambem não vi nenhum botao gravação/recuperaça",
|
||||
"scope": "Observação parcial semfalha noquefoivisto;gravação/recuperação ainda não conferidas"
|
||||
},
|
||||
{
|
||||
"statement": "ja procedi com a tua instrução pode verificar",
|
||||
"scope": "Confirmação pelaTempo da execução da instrução já apresentada:guardar exemploQA,recuperar gravaçãoQA eabrir relatório da gravação recuperada,após clarificação doscontrolos"
|
||||
}
|
||||
],
|
||||
"limits": "Não se atribuem àTempo resultados individuais adicionais não descritos,nem se apresenta captura ou observação visual peloCodex. O ficheiro comprova gravação;isoladamente não comprova cliques de recuperação/abertura. Estes passos são sustentados pela comunicação daTempo.",
|
||||
"technical_corroboration": {
|
||||
"record": "iva_l1_g2l_manual_completion_and_actual_UI_payload_20261024",
|
||||
"saved_at": "2026-10-24T14:32:44.805Z",
|
||||
"saved_file_sha256": "bfa1b242671b57925d560d1b76a6065a52238f4cbd9f255b17e594384f5e0ef7",
|
||||
"API_QA": "Ficheiro real→POST/GETprivado,1teste/29asserções;contexto/snapshot exactos;transacção revertida",
|
||||
"report": "Mesmas funções daQA aplicadas ao snapshot real;contexto,fontes,identidades,versão evalores correspondentes"
|
||||
},
|
||||
"existing_references": [
|
||||
"iva_l1_g2l_manual_verification_route_20261024",
|
||||
"iva_l1_g2l_manual_partial_controls_20261024",
|
||||
"iva_l1_g2l_manual_completion_and_actual_UI_payload_20261024",
|
||||
"iva_l1_g2kl_homologation_20261024"
|
||||
],
|
||||
"installed_revision_check_is_visual_proof": false,
|
||||
"accepted_proofs_repeated": false,
|
||||
"delivery_closure_preserved": "ccdecbd8/643ba6ed"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,288 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "0dc2d64b20ae3d6879e0154f5507b3fdc6031733",
|
||||
"base_remote_main": "ccdecbd8d74596e729f03381d3b37ca22ce5800e",
|
||||
"coverage": {
|
||||
"group": "G3",
|
||||
"branches": [
|
||||
"P038",
|
||||
"P039",
|
||||
"P040",
|
||||
"P041",
|
||||
"P042",
|
||||
"P043",
|
||||
"P045"
|
||||
],
|
||||
"scope": "cessation2026/MZN;explicit continuity;no historical exemption/imports"
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 36,
|
||||
"QA": 7,
|
||||
"functional_pending": 89,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 43,
|
||||
"QA": 0,
|
||||
"functional_pending": 89,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA": "ac948bd8/bda6d1e3;manual Tempo visual confirmation0dc2d64b;3frontend+API1/36+types/build;13frozenbooks unchanged;accepted proofs reused",
|
||||
"visual_provenance": "Manual Tempo;no Codex browser observation claimed. G2L clarification908c8afc is separate from G3 confirmation0dc2d64b.",
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/components/simulation-operations.tsx",
|
||||
"sha256_LF": "68e0a98d9b1a3190a96d16210e1bb331c23dbbf9aaa218f973ba05dc9c90df55"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "5155a96101393e0dca5f183577587b9b3a9c4e3b981e8491adc0d640301bdcb3"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-temporary-benefits.ts",
|
||||
"sha256_LF": "99bf065703db32709806475f7e8bfdf0d086cce9b15ab30434f44d8df6ed9230"
|
||||
}
|
||||
],
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "ccdecbd8d74596e729f03381d3b37ca22ce5800e",
|
||||
"release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/e45a1394fa2ca8631593549b3af62093f25d9c13-f5f7e07d",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"release_revision": {
|
||||
"commit": "ccdecbd8d74596e729f03381d3b37ca22ce5800e",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T14:40:55.681401+00:00",
|
||||
"manifest_sha256": "8ee52a7b3f7c4363f10d73382d85325bbfa331c2e6e44ccd08d92e578cdf2776"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g3-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "0a9ebaa6f883abbea456f5971a35cb2081031735d56138f0d9354a9325591d7a",
|
||||
"files_sha256": "ec19f952637953c1b286a5dfd5e8cef7861a0564c7d7c5a3187103fc0305a746",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g3_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "0a9ebaa6f883abbea456f5971a35cb2081031735d56138f0d9354a9325591d7a",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Existing Git FF/webhook/installer;no migrations/imports/permissions/newserver fiscal rule",
|
||||
"rollback": {
|
||||
"patch": "docs/investmoz/simulations/l1-g3-readonly-rollback-20261024.patch",
|
||||
"checked": true,
|
||||
"applied": false,
|
||||
"preserves": "catalogue/readers/history/reports;prior release and fresh backup retained",
|
||||
"old_patch": "Earlier patch no longer applies after new helper;new compatible patch generated,old artifact preserved"
|
||||
},
|
||||
"L1_complete": false,
|
||||
"P001": "05/06only",
|
||||
"statistics_AI": "deferred",
|
||||
"served_commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"counts_current": {
|
||||
"delivered": 43,
|
||||
"QA": 0,
|
||||
"functional_pending": 89,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 3,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "7cb0825e41abb32c82bae73bb0a58da4"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "b6d05a7ee1683f104f7fceaee0a6f63f"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 17,
|
||||
"checksum": "453fd7c711ddb39bfdd0105375f3df67"
|
||||
},
|
||||
"after": {
|
||||
"rows": 18,
|
||||
"checksum": "1920f0ee8d2ddf73ba225bad6a0645d3"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:02:46.947668+00:00",
|
||||
"manifest_sha256": "15837af27545a8691647459c00bec56b22d2e624ae9e20033d598d330d686d61"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"temporary-benefit-cessation/1": [
|
||||
"assets/project-dossier-DT-hu-tU.js"
|
||||
],
|
||||
"temporary_sugar": [
|
||||
"assets/project-dossier-DT-hu-tU.js",
|
||||
"assets/services-C3-fU-ch.js"
|
||||
],
|
||||
"temporary_sugar_industry_goods": [
|
||||
"assets/project-dossier-DT-hu-tU.js"
|
||||
],
|
||||
"temporary_oils_soap": [
|
||||
"assets/project-dossier-DT-hu-tU.js"
|
||||
],
|
||||
"temporary_oils_soap_factory": [
|
||||
"assets/project-dossier-DT-hu-tU.js"
|
||||
],
|
||||
"temporary_oils_soap_inputs": [
|
||||
"assets/project-dossier-DT-hu-tU.js"
|
||||
],
|
||||
"temporary_sugar_cane": [
|
||||
"assets/project-dossier-DT-hu-tU.js",
|
||||
"assets/services-C3-fU-ch.js"
|
||||
],
|
||||
"temporary_solar_inputs": [
|
||||
"assets/project-dossier-DT-hu-tU.js"
|
||||
],
|
||||
"temporaryBenefitOrigin": [
|
||||
"assets/project-dossier-DT-hu-tU.js",
|
||||
"assets/services-C3-fU-ch.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-CU96Nl_4.js",
|
||||
"status": 200,
|
||||
"sha256": "56bf3f423b6595b04c870aa8baa2118889152282d87da596f5a807bf5236cc04"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-DT-hu-tU.js",
|
||||
"status": 200,
|
||||
"sha256": "f8f618b305d8f76abfd193d9f73987514279e7c80160de3cfc79871bc02690f4"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-C3-fU-ch.js",
|
||||
"status": 200,
|
||||
"sha256": "75c042d62d3c8250b5334be1e38dd99fed88c85a04245a43a539a0c501bcbad0"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-D6KRT634.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"6eefe4b3322461b9a23166e2cd1235e3881765f4"
|
||||
],
|
||||
"finished_at": "2026-10-24T15:02:49.533733+00:00"
|
||||
},
|
||||
"log_file": "1792854081964720706.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.00s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 275",
|
||||
"# pass 275",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 108361
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
--- a/resources/js/components/simulation-operations.tsx
|
||||
+++ b/resources/js/components/simulation-operations.tsx
|
||||
@@ -17,6 +17,8 @@
|
||||
const change=(id:string,patch:Partial<SalesOperation>)=>run(()=>save({...book,rows:book.rows.map(r=>r.id===id?{...r,...patch}:r)}));
|
||||
const continueTemporary=(id:string,target:string)=>run(()=>save({...book,rows:book.rows.map(row=>row.id===id?continueTemporaryOperation(row,target):row)}));
|
||||
return <section aria-label="Operações IVA por oportunidade" className="space-y-3 rounded border p-3">
|
||||
+ <p role="status">Novos cálculos temporariamente suspensos; resultados guardados e relatórios disponíveis.</p>
|
||||
+ <fieldset disabled>
|
||||
<h4 className="font-semibold">Operações de IVA — enquadramento das vendas</h4>
|
||||
<p>Oportunidade {String(draft.context_opportunity||'entrada geral')}; moeda original {book.currency||'por indicar'}. Cobertura2026/MZN. Reutilize as vendas e complete apenas o enquadramento. Este bloco classifica as operações; não substitui nem soma novamente a execução mensal geral acima.</p>
|
||||
<p>Uma empresa pode ter operações com tratamentos diferentes. Os valores são projecções sob pressupostos declarados, sem certificar facturas, reconhecer créditos ou submeter uma declaração à AT.</p>
|
||||
@@ -82,6 +84,7 @@
|
||||
{book.periods.map(p=><label className="block" key={p.period}><input type="checkbox" checked={p.complete} onChange={e=>run(()=>save({...book,periods:book.periods.map(v=>v.period===p.period?{...v,complete:e.target.checked}:v)}))}/> {p.period}: incluí todas as operações deste período; lista vazia significa ausência expressamente confirmada.</label>)}
|
||||
<p>Limites: outras isenções/bases especiais e correspondência do campo06 permanecem por delimitar. IVA incluído a5% conserva a fracção exacta e apresenta um decimal a6casas; a aproximação de apresentação não constitui regra declarativa. O desconhecido nunca é assumido como zero.</p>
|
||||
<button type="button" disabled={!book.periods.length} className="rounded bg-emerald-800 p-2 text-white disabled:opacity-50" onClick={()=>run(()=>save(recordSales(draft,book)))}>Calcular e guardar operações IVA</button>
|
||||
+ </fieldset>
|
||||
{book.result&&<><p role="status">{salesCurrent(draft,book)?'Resultado correspondente às entradas.':'Resultado histórico conservado; reveja as alterações antes de recalcular.'}</p><dl>{salesReportRows(draft).map(([,label,value,origin],index)=><div className="break-inside-avoid border-t py-2" key={index}><dt className="font-semibold">{label}</dt><dd>{value}<small className="block">{origin}</small></dd></div>)}</dl></>}
|
||||
</section>;
|
||||
}
|
||||
@@ -0,0 +1,270 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "7b54efb0fca9aae0adf174169711cd1f452fe1fb",
|
||||
"base_remote_main": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"coverage": {
|
||||
"group": "G4A",
|
||||
"branches": {
|
||||
"P074": "export_railway_cfm",
|
||||
"P075": "export_international_passengers",
|
||||
"P076": "export_work_on_movables",
|
||||
"P077": "export_gold_bom",
|
||||
"P079": "export_packaging"
|
||||
},
|
||||
"scope": "2026/MZN/05;statutory conditions and explicit evidence/projection assumptions;no automatic input deduction/ATsubmission"
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 43,
|
||||
"QA": 5,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 48,
|
||||
"QA": 0,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA": "0f0d2e56/7a58fa24;manual Tempo visual confirmation7b54efb0;3frontend+API1/36+types/build;14frozenbooks unchanged;accepted proofs reused",
|
||||
"visual_provenance": "Manual Tempo;no Codex browser observation;last saved price-basis edit preserved,prior result historical;no automatic recalculation.",
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-export-operations.ts",
|
||||
"sha256_LF": "3e9927aa637db678a558beb80bf7a326afd6b010e7ab5117aacd7e82a2c52600"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "e3ae2cbecd823fc03cd019cfe721cb20ba03ed51c7d0ec2680b55570b0bc7f10"
|
||||
}
|
||||
],
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"release_revision": {
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:02:46.947668+00:00",
|
||||
"manifest_sha256": "15837af27545a8691647459c00bec56b22d2e624ae9e20033d598d330d686d61"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g4a-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "a8ada17d7faf38a81ef324064ba3f64d4a65e6040a3381b81cd2109d8d7664b9",
|
||||
"files_sha256": "e32d2ad5d5fc9a8a65d4010ec9d658f71d120409b5eaf31e0f2de4d4c9d5405f",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4a_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "a8ada17d7faf38a81ef324064ba3f64d4a65e6040a3381b81cd2109d8d7664b9",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Existing Git FF/webhook/installer;no migrations/imports/permissions/newserver fiscal rule",
|
||||
"rollback": {
|
||||
"patch": "docs/investmoz/simulations/l1-g3-readonly-rollback-20261024.patch",
|
||||
"checked": true,
|
||||
"applied": false,
|
||||
"preserves": "catalogue/readers/history/reports;prior release and fresh backup retained"
|
||||
},
|
||||
"regulatory_followup": "Official announcement30/09/2026 inventoried separately;not treated as published decree or rule activation;documentary comparison remains specific future work",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06only",
|
||||
"statistics_AI": "deferred",
|
||||
"served_commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"counts_current": {
|
||||
"delivered": 48,
|
||||
"QA": 0,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 2,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "e2ee1520f58e0600f3f2ae64dee97baa"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "9f7ac1ea1ff1adf7db54e32f15d8a4f8"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 20,
|
||||
"checksum": "28b47ffbc97aa8265bdf40d6658deaa0"
|
||||
},
|
||||
"after": {
|
||||
"rows": 21,
|
||||
"checksum": "b08ed52e696c3a91c4e1b889efad552a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:20:59.537796+00:00",
|
||||
"manifest_sha256": "846e0a05a6ed579d7f9978dc8db94e2e047fecc1c2dc489e55c0716eb75156a5"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"export-direct-operations/1": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_railway_cfm": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_international_passengers": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_work_on_movables": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_gold_bom": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_packaging": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-eQvgi8ww.js",
|
||||
"status": 200,
|
||||
"sha256": "1d94e9315eab7d2e2e00c29bf9ae3bef1eadc86faaff73c163daea40709576c0"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-BeYOfJX9.js",
|
||||
"status": 200,
|
||||
"sha256": "1f68d9c7de6aff36a051177bf11744a75411560cfe5e8af2d18e52bb4d226d70"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-Rt7qSc3z.js",
|
||||
"status": 200,
|
||||
"sha256": "3ad22a0458da55242ff4d3e88cc22461e5ec6c0f0aadd452936d50a999558a68"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-BEf0yjMF.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"b898955603eb7698ab10f4c4ab4115bffd80b7b2"
|
||||
],
|
||||
"finished_at": "2026-10-24T15:21:02.478696+00:00"
|
||||
},
|
||||
"log_file": "1792855174037587994.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.42s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 278",
|
||||
"# pass 278",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 109100
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,266 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "f946364b",
|
||||
"QA_record": "0b0e002d",
|
||||
"Git_preparation_head": "0b0e002d1573c3da838a8a4ea296c7a9094acef6",
|
||||
"fresh_remote_main": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"ancestry": "ancestor;normal nonforce push only after authenticated preflight and fresh backup/restore",
|
||||
"coverage": {
|
||||
"group": "G4B",
|
||||
"branches": {
|
||||
"P065": [
|
||||
"international_ship_operations"
|
||||
],
|
||||
"P066": [
|
||||
"international_aircraft_operations"
|
||||
],
|
||||
"P068": [
|
||||
"international_ship_direct_services",
|
||||
"international_aircraft_direct_services"
|
||||
]
|
||||
},
|
||||
"branch_count": 3,
|
||||
"treatment_count": 4,
|
||||
"scope": "2026/MZN/05;eligible vessel/aircraft operations and direct needs services;no supplies/input deduction/ATsubmission"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-international-assets.ts",
|
||||
"sha256_LF": "fa99cf40622d8a6aaea4e3078d6c9e41d26a4a2bda5898f5bd114aa4221eaa1c"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "795e07a1a9b81372c3124b037d6df9626501aafcd7224290bbac2b8ec44f6d9b"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 51,
|
||||
"QA": 0,
|
||||
"functional_pending": 81,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 51,
|
||||
"QA": 0,
|
||||
"functional_pending": 81,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs": "3frontend/APIQA1/35/types/build;15previousbooks unchanged;manual Tempo visual0b0e002d;accepted proofs reused,no new browser verification required",
|
||||
"rollback": "l1-g3-readonly-rollback-20261024.patch checked on current candidate,not applied;preserves catalogue/readers/history/reports;retain prior release and verified new backup",
|
||||
"activation": "Existing Git FF/webhook/installer;no migrations/imports/permission changes/server fiscal activation",
|
||||
"authenticated_destination": "Fresh read confirmed b8989556;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore,no active restore performed",
|
||||
"served_revision_and_delta": "verified",
|
||||
"P001": "05/06only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"release_revision": {
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:20:59.537796+00:00",
|
||||
"manifest_sha256": "846e0a05a6ed579d7f9978dc8db94e2e047fecc1c2dc489e55c0716eb75156a5"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g4b-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "946e9ebc067932184a8db32e1d469edada1c0fd52eec5cabd97958b528bee060",
|
||||
"files_sha256": "37d5efc4d7b4db3f2bb34bd69ddb8377c26e15fb35f1d95eb512e4ae7aa14962",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4b_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "946e9ebc067932184a8db32e1d469edada1c0fd52eec5cabd97958b528bee060",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 2,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "1d9a40d14abc8a507b9f21c53214cab3"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "4ac1b3b4c92159a6c6d5b2001b33c281"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 23,
|
||||
"checksum": "3416544d03e316d171c3c5b4ef17f76d"
|
||||
},
|
||||
"after": {
|
||||
"rows": 24,
|
||||
"checksum": "5c130a5a49411a488f3dd2e04a3ebf30"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:42:16.426339+00:00",
|
||||
"manifest_sha256": "ae95aa3000f8861d3a092026b04fd18dff05c7e1955f99f7660e18b945e32f15"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"international-assets/1": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_ship_operations": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_aircraft_operations": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_ship_direct_services": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_aircraft_direct_services": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-DTxHeV9m.js",
|
||||
"status": 200,
|
||||
"sha256": "d1db999b1c04537d77ba5613230a9fb0e4cbc6ce06bc5346371bfbb65b98339f"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-Dy0KLLRZ.js",
|
||||
"status": 200,
|
||||
"sha256": "e942686d95f79fb4a5b00f670db08f3b70078aa5de1b46eb01c66e3de93149b5"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-DtAisp01.js",
|
||||
"status": 200,
|
||||
"sha256": "804ac2e496efeb7c4fc8150295ca8df2c736ec8f38469382ca658f65835fff5c"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-qEH7_IO_.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"a153d0782f0f1f5a553a2c6d7106bc35059a170b"
|
||||
],
|
||||
"finished_at": "2026-10-24T15:42:18.840229+00:00"
|
||||
},
|
||||
"log_file": "1792856451333116729.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.53s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 281",
|
||||
"# pass 281",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 110076
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "b1c8e0e3",
|
||||
"QA_record": "2fccbc8ee8d0ff687c9d49a54cf2972546182f3a",
|
||||
"fresh_remote_main": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"coverage": {
|
||||
"group": "G4C",
|
||||
"branches": {
|
||||
"P072": "export_customs_related_services",
|
||||
"P073": "export_dispatch_services",
|
||||
"P078": "export_disclosed_intermediation"
|
||||
},
|
||||
"branch_count": 3,
|
||||
"treatment_count": 3,
|
||||
"scope": "2026/MZN/05; direct customs-related services, dispatch abroad, disclosed intermediation; own service territoriality identified"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/components/simulation-operations.tsx",
|
||||
"sha256_LF": "284cb1bac2a2c5646d9f05c0503a57c568079f75081b6cf0cff98747d8564581"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-export-services.ts",
|
||||
"sha256_LF": "090de228fc5563de98e0c4c3e1646804b05d71a84603d6d42e63b7cebfa32301"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "8c934a9c3126fc8e6cac005bae00e081fcf8a6d184cf9370757e3aab73995ee3"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 54,
|
||||
"QA": 0,
|
||||
"functional_pending": 78,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 54,
|
||||
"QA": 0,
|
||||
"functional_pending": 78,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs": "4frontend;APIQA1/39;16priorbooks intact/current;types/build;Tempo manual visual reply verificada;no accepted proof repeated",
|
||||
"rollback": "l1-g3-readonly-rollback-20261024.patch checked on G4C candidate, not applied; retains readers/history/reports; previous release and fresh verified backup retained",
|
||||
"activation": "Existing Git normal FF/webhook/installer; no migrations/imports/permission changes or formal fiscal activation",
|
||||
"authenticated_preflight_file": "outputs/iva-l1-g4-services-20261024/destination-preflight.txt",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g4c-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "41dd7cb9e858e4398e23950e9e34289014912f67ad55b9f7ae9f14f94b03584b",
|
||||
"files_sha256": "58d984f98e2da29ee269a9da91085680c9e8e7e557c65fe4e963d1f871a63a54",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4c_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "41dd7cb9e858e4398e23950e9e34289014912f67ad55b9f7ae9f14f94b03584b",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_revision_and_delta": "verified",
|
||||
"P001": "05/06 only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"release_revision": {
|
||||
"commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:42:16.426339+00:00",
|
||||
"manifest_sha256": "ae95aa3000f8861d3a092026b04fd18dff05c7e1955f99f7660e18b945e32f15"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed a153d078; installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore, no active restore performed",
|
||||
"served_commit": "679203d4b13cd5b88ab05a0da539c359c37cc426",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "679203d4b13cd5b88ab05a0da539c359c37cc426",
|
||||
"release": "/var/www/investmoz-homologacao/releases/679203d4b13cd5b88ab05a0da539c359c37cc426-6ad3a32e",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 3,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "0fb368359b09686e698bb76c130bec32"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "a1a597d8371e7a308d133b1374ddc3fa"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 26,
|
||||
"checksum": "e335b7f5c76ce5d198e96a1d0736ee13"
|
||||
},
|
||||
"after": {
|
||||
"rows": 15,
|
||||
"checksum": "d8d7871c3369ade4d97c078a5d67899f"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "679203d4b13cd5b88ab05a0da539c359c37cc426",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:58:35.074611+00:00",
|
||||
"manifest_sha256": "7b37d131d7b9564d901d8fc21407a759fcded9ba734c3757ce0fda5c00cc5c56"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"export-linked-services/1": [
|
||||
"assets/project-dossier-B13GvS2h.js"
|
||||
],
|
||||
"export_customs_related_services": [
|
||||
"assets/project-dossier-B13GvS2h.js"
|
||||
],
|
||||
"export_dispatch_services": [
|
||||
"assets/project-dossier-B13GvS2h.js"
|
||||
],
|
||||
"export_disclosed_intermediation": [
|
||||
"assets/project-dossier-B13GvS2h.js"
|
||||
],
|
||||
"relatedExport": [
|
||||
"assets/project-dossier-B13GvS2h.js",
|
||||
"assets/services-T9xhkEbY.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/project-dossier-document-D3wD6GVC.js",
|
||||
"status": 200,
|
||||
"sha256": "f785b98c98fa31f087cfe4de205ff24d888b15c0d9aa7e76a1a03c8faa1afb83"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-B13GvS2h.js",
|
||||
"status": 200,
|
||||
"sha256": "1746a5eed08eb3cc85c98324ae5c60cea44ef9878e9e3aa495eb2d642fe0f0fa"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-T9xhkEbY.js",
|
||||
"status": 200,
|
||||
"sha256": "c6ffdcf297a76cf91dda66c5ca3ec338d36d638ddf59992c0e1d245f12551286"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-CKbcQpAl.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "679203d4b13cd5b88ab05a0da539c359c37cc426",
|
||||
"release": "/var/www/investmoz-homologacao/releases/679203d4b13cd5b88ab05a0da539c359c37cc426-6ad3a32e",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "679203d4b13cd5b88ab05a0da539c359c37cc426",
|
||||
"release": "/var/www/investmoz-homologacao/releases/679203d4b13cd5b88ab05a0da539c359c37cc426-6ad3a32e",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"679203d4b13cd5b88ab05a0da539c359c37cc426"
|
||||
],
|
||||
"finished_at": "2026-10-24T15:58:37.723730+00:00"
|
||||
},
|
||||
"log_file": "1792857429090761953.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.89s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 285",
|
||||
"# pass 285",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 111289
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,273 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "8df721ac",
|
||||
"QA_record": "40a4ddcb",
|
||||
"fresh_remote_main": "679203d4b13cd5b88ab05a0da539c359c37cc426",
|
||||
"coverage": {
|
||||
"group": "G4D",
|
||||
"branches": {
|
||||
"P062": "onboard_seagoing_ship",
|
||||
"P063": "onboard_rescue_coastal_ship",
|
||||
"P064": "onboard_departing_warship",
|
||||
"P067": "onboard_international_aircraft"
|
||||
},
|
||||
"branch_count": 4,
|
||||
"treatment_count": 4,
|
||||
"scope": "2026/MZN/05; direct exemption under identified conditions; explicit13(2–3) categories/exclusions; no automatic beverage liquidation/deduction/refund"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/components/simulation-operations.tsx",
|
||||
"sha256_LF": "a67899e90f72d0b26d93b4f4c666f3f1fd0ed9bd1e47970d1a570b2fe132650c"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-onboard-supplies.ts",
|
||||
"sha256_LF": "2ae4378998ca4d7f4759155f589b5b7c4f25090512b016211976c9a7c700bde9"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "eec82e67b2025a1d1738b9d2a41ef3ea7e1a2a17f12b145f02eebef62e4f6b26"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 58,
|
||||
"QA": 0,
|
||||
"functional_pending": 74,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 58,
|
||||
"QA": 0,
|
||||
"functional_pending": 74,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs": "4frontend;APIQA1/38;17priorbooks intact/current;types/build;Tempo manual visual reply ja efectuada;no accepted proof repeated",
|
||||
"rollback": "l1-g3-readonly-rollback-20261024.patch checked on G4D candidate, not applied; retain readers/history/reports; previous release and verified fresh backup",
|
||||
"activation": "Existing Git normal FF/webhook/installer; no migrations/imports/permission changes or formal fiscal activation",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g4d-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "f45926e56c1d9544f6ee0e50d690cfed984101307224e8282f93b9f0ec91f705",
|
||||
"files_sha256": "7ed455443737ca9ef2636a58e84a1b8b9c92cb12fc964c8addf07a5cced0c5f6",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4d_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "f45926e56c1d9544f6ee0e50d690cfed984101307224e8282f93b9f0ec91f705",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "Beverages c/h follow13(2),amounts/credit/refund not calculated;provisions excluded d;13(2)not extended e. Alternative treatment outside exemption not silently assumed. This increment does not close the complete IVA apuramento.",
|
||||
"P001": "05/06 only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "679203d4b13cd5b88ab05a0da539c359c37cc426",
|
||||
"release": "/var/www/investmoz-homologacao/releases/679203d4b13cd5b88ab05a0da539c359c37cc426-6ad3a32e",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/679203d4b13cd5b88ab05a0da539c359c37cc426-6ad3a32e",
|
||||
"release_revision": {
|
||||
"commit": "679203d4b13cd5b88ab05a0da539c359c37cc426",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:58:35.074611+00:00",
|
||||
"manifest_sha256": "7b37d131d7b9564d901d8fc21407a759fcded9ba734c3757ce0fda5c00cc5c56"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed679203d4;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed",
|
||||
"beverages_followup": {
|
||||
"source": "CIVA13(2),20(1)(d)",
|
||||
"L2": "Dedução do IVA da via13(2),com montante/documento/condições próprios",
|
||||
"L3": "Restituição da via13(2),conforme procedimento aplicável;pedido não equivale a deferimento",
|
||||
"closed_by_G4D": false
|
||||
},
|
||||
"served_commit": "686328a0853a1165872b5eb8163f7223600033ea",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "686328a0853a1165872b5eb8163f7223600033ea",
|
||||
"release": "/var/www/investmoz-homologacao/releases/686328a0853a1165872b5eb8163f7223600033ea-81b13983",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/679203d4b13cd5b88ab05a0da539c359c37cc426-6ad3a32e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 3,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "de9a629fcda8ca89c2e1a4110abd00bb"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "84c52bab36d0972dfa8ef321f459c97f"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 17,
|
||||
"checksum": "beb831efe057fd44c63bd504eb5d735f"
|
||||
},
|
||||
"after": {
|
||||
"rows": 18,
|
||||
"checksum": "388df19f76a7047a5d994b07b8e48c88"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "686328a0853a1165872b5eb8163f7223600033ea",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T16:09:18.914806+00:00",
|
||||
"manifest_sha256": "c8a33831cec8c9c6cb0dea4a54083f2a86c1395879c4378470d2da61e4a97a60"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"onboard-supplies/1": [
|
||||
"assets/project-dossier-Dr4Yp1R0.js"
|
||||
],
|
||||
"onboard_seagoing_ship": [
|
||||
"assets/project-dossier-Dr4Yp1R0.js"
|
||||
],
|
||||
"onboard_rescue_coastal_ship": [
|
||||
"assets/project-dossier-Dr4Yp1R0.js"
|
||||
],
|
||||
"onboard_departing_warship": [
|
||||
"assets/project-dossier-Dr4Yp1R0.js"
|
||||
],
|
||||
"onboard_international_aircraft": [
|
||||
"assets/project-dossier-Dr4Yp1R0.js"
|
||||
],
|
||||
"supplyCategory": [
|
||||
"assets/project-dossier-Dr4Yp1R0.js",
|
||||
"assets/services-Cckqil_k.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/project-dossier-Dr4Yp1R0.js",
|
||||
"status": 200,
|
||||
"sha256": "51098ef65c988ab0452035a92f9ab0a51907ef28fe94bc837dfe2409d3240052"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-Cckqil_k.js",
|
||||
"status": 200,
|
||||
"sha256": "7f51adf59981b7f7b5c393dd44d68bfcdbd22814031fb079c2626c17eb4ac834"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-eCa4uUtB.js",
|
||||
"status": 200,
|
||||
"sha256": "1cb1f92e49041f4d5a27bc82a64dc5c5d7c6e7ba8fdfc0b80f0b49d8f60be66e"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-CxtsWs-S.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "686328a0853a1165872b5eb8163f7223600033ea",
|
||||
"release": "/var/www/investmoz-homologacao/releases/686328a0853a1165872b5eb8163f7223600033ea-81b13983",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/679203d4b13cd5b88ab05a0da539c359c37cc426-6ad3a32e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "686328a0853a1165872b5eb8163f7223600033ea",
|
||||
"release": "/var/www/investmoz-homologacao/releases/686328a0853a1165872b5eb8163f7223600033ea-81b13983",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/679203d4b13cd5b88ab05a0da539c359c37cc426-6ad3a32e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"686328a0853a1165872b5eb8163f7223600033ea"
|
||||
],
|
||||
"finished_at": "2026-10-24T16:09:21.362571+00:00"
|
||||
},
|
||||
"log_file": "1792858071888964336.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.76s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 289",
|
||||
"# pass 289",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 112499
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,267 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "38faeac6",
|
||||
"QA_record": "fae8162c",
|
||||
"fresh_remote_main": "686328a0853a1165872b5eb8163f7223600033ea",
|
||||
"coverage": {
|
||||
"group": "G4E",
|
||||
"branches": {
|
||||
"P061": "export_nonresident_buyer",
|
||||
"P069": "export_diplomatic_mission",
|
||||
"P070": "export_international_organisation",
|
||||
"P071": "export_humanitarian_organisation"
|
||||
},
|
||||
"branch_count": 4,
|
||||
"treatment_count": 4,
|
||||
"scope": "2026/MZN/05; identified export/private-use exclusions/regulation/agreement/recognition conditions or explicit projection assumptions"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-export-beneficiaries.ts",
|
||||
"sha256_LF": "5eb2e1dce0257a261da0b751372865812020c0dc671324992b4e932322f72259"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "1b074ef324c9d3dba82d20cbb3860acee2cd3f7db906017f930133e6892defad"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 62,
|
||||
"QA": 0,
|
||||
"functional_pending": 70,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 62,
|
||||
"QA": 0,
|
||||
"functional_pending": 70,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs": "3newfrontend/7withG4D;APIQA1/39;18priorbooks intact/current;types/build;Tempo manual reply ja efectuado;no accepted proof repeated",
|
||||
"rollback": "l1-g3-readonly-rollback-20261024.patch checked on G4E candidate, not applied; retain readers/history/reports; previous release and fresh verified backup required",
|
||||
"activation": "Existing Git normal FF/webhook/installer; no migrations/imports/permission changes or formal fiscal activation",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g4e-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "e3383fdae174a5157063d5b94412ac93069088822891b07ebbb2ba640fe72f55",
|
||||
"files_sha256": "f4c67fad0981f50424a772f8133368af0d652bccaa4fc3ca7524abda70fb94c5",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4e_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "e3383fdae174a5157063d5b94412ac93069088822891b07ebbb2ba640fe72f55",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "No blanket exemption by recipient; no certification of agreement,recognition or export. Missing condition remains indeterminate; preserve price/currency/period/history. Beverages deduction/refund remainsL2/L3,not closed.",
|
||||
"P001": "05/06 only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "686328a0853a1165872b5eb8163f7223600033ea",
|
||||
"release": "/var/www/investmoz-homologacao/releases/686328a0853a1165872b5eb8163f7223600033ea-81b13983",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/679203d4b13cd5b88ab05a0da539c359c37cc426-6ad3a32e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/686328a0853a1165872b5eb8163f7223600033ea-81b13983",
|
||||
"release_revision": {
|
||||
"commit": "686328a0853a1165872b5eb8163f7223600033ea",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T16:09:18.914806+00:00",
|
||||
"manifest_sha256": "c8a33831cec8c9c6cb0dea4a54083f2a86c1395879c4378470d2da61e4a97a60"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed686328a0;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed",
|
||||
"beverages_followup": {
|
||||
"source": "CIVA13(2),20(1)(d)",
|
||||
"L2": "Dedução do IVA da via13(2),com montante/documento/condições próprios",
|
||||
"L3": "Restituição da via13(2),conforme procedimento aplicável;pedido não equivale a deferimento",
|
||||
"closed_by_G4E": false
|
||||
},
|
||||
"served_commit": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"release": "/var/www/investmoz-homologacao/releases/2e21ca45002b76adcef0347135783c706d37dd42-a5faea22",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/686328a0853a1165872b5eb8163f7223600033ea-81b13983",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 2,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "33780b9b4fbaaf7e714478b72e2c30bb"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "59a75fda1325bd5a60ce3b26253a2a38"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 20,
|
||||
"checksum": "c48fe23dffea4c1539854f351436ee68"
|
||||
},
|
||||
"after": {
|
||||
"rows": 21,
|
||||
"checksum": "b009a6a82a84f902064f25f5a6604253"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T16:27:47.396813+00:00",
|
||||
"manifest_sha256": "9b28c92c584ad406e17d01ffc3fa982b9299195b371e1c5311626b9025a22615"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"export-beneficiaries/1": [
|
||||
"assets/project-dossier-C3cf2J1H.js"
|
||||
],
|
||||
"export_nonresident_buyer": [
|
||||
"assets/project-dossier-C3cf2J1H.js"
|
||||
],
|
||||
"export_diplomatic_mission": [
|
||||
"assets/project-dossier-C3cf2J1H.js"
|
||||
],
|
||||
"export_international_organisation": [
|
||||
"assets/project-dossier-C3cf2J1H.js"
|
||||
],
|
||||
"export_humanitarian_organisation": [
|
||||
"assets/project-dossier-C3cf2J1H.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/project-dossier-document-CtNVSk-9.js",
|
||||
"status": 200,
|
||||
"sha256": "124730663c671afeeab8007eff2148d17702bf80b8fd0a7c962806878a8fafce"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-DK55Gu8i.js",
|
||||
"status": 200,
|
||||
"sha256": "d96320fdc19fec053fe17efc2eb19e055463c5e5727a9c9b2dafabcd8f106519"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-C3cf2J1H.js",
|
||||
"status": 200,
|
||||
"sha256": "c88e6e9641f9c8eeacece38fbeffd547f86fb603b60899db915576b5faaa74ed"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-Bb2v1uvn.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"release": "/var/www/investmoz-homologacao/releases/2e21ca45002b76adcef0347135783c706d37dd42-a5faea22",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/686328a0853a1165872b5eb8163f7223600033ea-81b13983",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"release": "/var/www/investmoz-homologacao/releases/2e21ca45002b76adcef0347135783c706d37dd42-a5faea22",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/686328a0853a1165872b5eb8163f7223600033ea-81b13983",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"2e21ca45002b76adcef0347135783c706d37dd42"
|
||||
],
|
||||
"finished_at": "2026-10-24T16:27:50.225953+00:00"
|
||||
},
|
||||
"log_file": "1792859179948208531.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.64s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 292",
|
||||
"# pass 292",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 113481
|
||||
},
|
||||
"rollback_executed": false
|
||||
},
|
||||
"authentication_previous_session": "Previous session state stale: no session process or established SSH connection; preflight request not consumed; fresh authentication required",
|
||||
"authentication": "Fresh authenticated preflight and verified backup/restore completed before Git fast-forward"
|
||||
}
|
||||
@@ -0,0 +1,333 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "1f7fc13872bd706f583a6f4d29024cd3c22ec265",
|
||||
"base": "0eb2c485",
|
||||
"last_known_remote_main": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"fresh_destination_preflight": "Verified authenticated installed/current-link/build revision2e21ca45;installer inactive;existing authenticated session reused",
|
||||
"coverage": {
|
||||
"group": "G5A",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P081": [
|
||||
"regime_dispatch_goods",
|
||||
"regime_dispatch_transport"
|
||||
],
|
||||
"AUD-SIM-L1-P082": [
|
||||
"regime_internal_goods",
|
||||
"regime_internal_services"
|
||||
],
|
||||
"AUD-SIM-L1-P083": [
|
||||
"regime_transit_goods",
|
||||
"regime_transit_transport"
|
||||
]
|
||||
},
|
||||
"branch_count": 3,
|
||||
"treatment_count": 6,
|
||||
"scope": "2026/MZN;CIVA14(1)(b/c/d),19(1)(b)(iv)"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/components/simulation-operations.tsx",
|
||||
"sha256_LF": "ef1019201ef546aee7dbd312741ec9653afdd3bb9c94777ea4735682506b6633"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "e9d2b0d7ed97ef9034f151b88e819e895666048f1d362a81d88855bad8e44f82"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-special-regimes.ts",
|
||||
"sha256_LF": "76098c658dcaf7bb09c68664001fdd5a2a6e9e2c401d0dd0d1cdca8ae710f4ab"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 65,
|
||||
"QA": 0,
|
||||
"functional_pending": 67,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 65,
|
||||
"QA": 0,
|
||||
"functional_pending": 67,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 4,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 44,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed; existing plugin timing warnings",
|
||||
"QA_build": "passed; existing future config/chunk size warnings",
|
||||
"QA_storage": "save/recover/reject passed in temporary directory",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge extension/CUA observed actions",
|
||||
"URL": "http://127.0.0.1:18640/g5a.html",
|
||||
"observed": [
|
||||
"six distinct treatments initially visible",
|
||||
"no-final-use condition unchecked -> indeterminate; price100MZN retained",
|
||||
"unknown regime -> indeterminate; price/currency/period retained",
|
||||
"restore regime and explicitly recheck conditions ->600MZN/05",
|
||||
"Guardar -> Recuperar -> Relatório with context/regime/source and totals",
|
||||
"three previous results in history;19priorbooks unchanged"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "outputs/iva-l1-g5-regimes-20261024/qa-recovered-report.png",
|
||||
"screenshot_sha256": "ec68a1287ade198f34544fed0e5b1f49a6c15c2e6855fcaf13dc34ceb45c8772"
|
||||
},
|
||||
"Word_PDF": "accepted exporter/numeric proofs reused; no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g3-readonly-rollback-20261024.patch checked on G5A candidate,not applied;readers/history/reports retained;fresh backup and previous release must be preserved",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g5a-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "4568a12444365980c0265429521f7e13df67a03c116103ec18163f8c2feaa9de",
|
||||
"files_sha256": "2016c081b509c976eda3d809b4481147501468295bcb51f586ea989560ba7c59",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g5a_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "4568a12444365980c0265429521f7e13df67a03c116103ec18163f8c2feaa9de",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Existing Git FF/webhook/installer when delivery is undertaken; no migrations/imports/permission changes or synthetic active tests",
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "2026/MZN; condição inicial14(1),regime/destino/permanência e ligação directa próprios; preço distinto dos bens/serviços. Sem isenção pelo mapa, certificação de regime, cálculo da própria importação/saída, aquisições14(2),dedução automática ou submissãoAT. P080/P084/P085/P086 continuam pendentes. L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
"beverages": "L2/L3;not closed",
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"release": "/var/www/investmoz-homologacao/releases/2e21ca45002b76adcef0347135783c706d37dd42-a5faea22",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/686328a0853a1165872b5eb8163f7223600033ea-81b13983",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/2e21ca45002b76adcef0347135783c706d37dd42-a5faea22",
|
||||
"release_revision": {
|
||||
"commit": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T16:27:47.396813+00:00",
|
||||
"manifest_sha256": "9b28c92c584ad406e17d01ffc3fa982b9299195b371e1c5311626b9025a22615"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed2e21ca45;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed",
|
||||
"user_instruction": {
|
||||
"QA_acceptance": "G5A concluído em QA segundo o relatório4e97cd05;seis tratamentos correspondem aos três ramosP081–P083",
|
||||
"delivery": "Integrar e disponibilizar pelo processoGit existente,preservando alterações concorrentes e conferindo apenas o delta instalado",
|
||||
"proofs": "Accepted QA proofs reused;no new functional/manual proof requested",
|
||||
"constraints": "L1open;P00105/06;beveragesL2/L3;StatisticsAIdeferred"
|
||||
},
|
||||
"concurrency": {
|
||||
"fresh_origin_main": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"fresh_authenticated_destination": "2e21ca45002b76adcef0347135783c706d37dd42",
|
||||
"incoming_changes_since_G4E": [],
|
||||
"preserved_local_commits": [
|
||||
"0eb2c485cc13e0ecbc6fa448c95425a8ab8f05b4",
|
||||
"1f7fc13872bd706f583a6f4d29024cd3c22ec265",
|
||||
"4e97cd05ea09e5dd2e74ec3264928a2f1f61858c"
|
||||
],
|
||||
"integration": "Normal Git fast-forward,without force;fetch/ancestor guard repeated immediately before push"
|
||||
},
|
||||
"beverages_followup": {
|
||||
"source": "CIVA13(2),20(1)(d)",
|
||||
"L2": "Dedução do IVA da via13(2),com montante/documento/condições próprios",
|
||||
"L3": "Restituição da via13(2),conforme procedimento aplicável;pedido não equivale a deferimento",
|
||||
"closed_by_G5A": false
|
||||
},
|
||||
"served_commit": "69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75",
|
||||
"release": "/var/www/investmoz-homologacao/releases/69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75-ac55d458",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/2e21ca45002b76adcef0347135783c706d37dd42-a5faea22",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 3,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "b321ab0f6a8b1ad7ee62098fe598b883"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "07a8420630022d972c4c19da59066638"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 23,
|
||||
"checksum": "9573b216049fc4693f4412b041d19015"
|
||||
},
|
||||
"after": {
|
||||
"rows": 24,
|
||||
"checksum": "9c73aba197fb8ed0448008979941a338"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T16:48:42.080060+00:00",
|
||||
"manifest_sha256": "84ea021139c585e0c7e7f8ab6933cd1775cd08173d3d0cdfeffad0b5bef46801"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"special-regimes/1": [
|
||||
"assets/project-dossier-D8_51R3_.js"
|
||||
],
|
||||
"regime_dispatch_goods": [
|
||||
"assets/project-dossier-D8_51R3_.js"
|
||||
],
|
||||
"regime_dispatch_transport": [
|
||||
"assets/project-dossier-D8_51R3_.js"
|
||||
],
|
||||
"regime_internal_goods": [
|
||||
"assets/project-dossier-D8_51R3_.js"
|
||||
],
|
||||
"regime_internal_services": [
|
||||
"assets/project-dossier-D8_51R3_.js"
|
||||
],
|
||||
"regime_transit_goods": [
|
||||
"assets/project-dossier-D8_51R3_.js"
|
||||
],
|
||||
"regime_transit_transport": [
|
||||
"assets/project-dossier-D8_51R3_.js"
|
||||
],
|
||||
"specialRegime": [
|
||||
"assets/project-dossier-D8_51R3_.js",
|
||||
"assets/services-BJM_v6Xn.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-D8_51R3_.js",
|
||||
"status": 200,
|
||||
"sha256": "71399dba8be4dc38ca0c4fd25742f4ef9281567e1c04f9883a0adb139dbade4c"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-BJM_v6Xn.js",
|
||||
"status": 200,
|
||||
"sha256": "6f728b31519a274de615675ae7197d1feb81c5a3e25f75668a2b2aabaf003edd"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-CNrdEqtj.js",
|
||||
"status": 200,
|
||||
"sha256": "26ea47eda13fc768227a6221afa225c2d8cc714f8cc769cfd5e430d37faa6274"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-zFlqblFZ.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75",
|
||||
"release": "/var/www/investmoz-homologacao/releases/69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75-ac55d458",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/2e21ca45002b76adcef0347135783c706d37dd42-a5faea22",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75",
|
||||
"release": "/var/www/investmoz-homologacao/releases/69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75-ac55d458",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/2e21ca45002b76adcef0347135783c706d37dd42-a5faea22",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75"
|
||||
],
|
||||
"finished_at": "2026-10-24T16:48:44.469191+00:00"
|
||||
},
|
||||
"log_file": "1792860435237937385.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.27s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 296",
|
||||
"# pass 296",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 114589
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,302 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "689a4c93c33cd737c6fc90823533b34b5219b5d3",
|
||||
"base": "d3e9f373",
|
||||
"last_known_remote_main": "69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75",
|
||||
"fresh_destination_preflight": "completed authenticated69f2e365 before installation;see authenticated_preflight",
|
||||
"coverage": {
|
||||
"group": "G5B",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P086": "former_exploration_exemption -> explicit normal acquisition continuation"
|
||||
},
|
||||
"branch_count": 1,
|
||||
"scope": "2026/MZN;nonapplication of eliminated14(2)(c) and explicit normal-acquisition continuity;not an active exemption"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/components/simulation-acquisitions.tsx",
|
||||
"sha256_LF": "7c4e0a960c361c1fe67e9cb05e249f07ee5710d2dfefa69859e163a9f23118c6"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-acquisition-continuity.ts",
|
||||
"sha256_LF": "2c40643c8f5ceb79b01fb4cb56d1955beb8bbd1c8a2a0cd080647bbc3db24e74"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-acquisitions.ts",
|
||||
"sha256_LF": "364661218cdf7769a57b030006818c506a7296057e87333f2d7a1f673ac1a91c"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 66,
|
||||
"QA": 0,
|
||||
"functional_pending": 66,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 66,
|
||||
"QA": 0,
|
||||
"functional_pending": 66,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 4,
|
||||
"existing_changed_acquisition_suite": 8,
|
||||
"frontend_total": 12,
|
||||
"latest_delta": 4,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 45,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin timing warnings",
|
||||
"QA_build": "passed;existing config/chunk warnings",
|
||||
"QA_storage": "save/recover/reject passed in temporary directory",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18641/g5b.html",
|
||||
"observed": [
|
||||
"former14(2)(c) selected -> eliminated notice;deduction indeterminate,100/16/116MZN retained",
|
||||
"normal deduction controls hidden while nonapplicable",
|
||||
"explicit continue ->normal controls/facts restored;calculate ->16MZN field10 under normal declared conditions",
|
||||
"Guardar -> Recuperar -> Relatório with document,source,period/context;17/18 remain indeterminate",
|
||||
"three results in history and20salesbooks unchanged in saved file"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "outputs/iva-l1-g5b-acquisitions-20261024/qa-recovered-report.png",
|
||||
"screenshot_sha256": "e29df1a8daf66f43ab7aaab9f78f472cf331272860aaac0edcde6ff40fd3a9d5"
|
||||
},
|
||||
"Word_PDF": "Existing exporter/numeric proofs reused;no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g3-readonly-rollback-20261024.patch checked on G5B candidate,not applied;readers/history/reports retained;fresh backup and previous release must be preserved",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g5b-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "d6c09b69fc18aba716554ca4aedded870c861c01c4997a4d29bc5e0f0b5380fe",
|
||||
"files_sha256": "bd05d701fce9f8c150315791d196289db6036352cfd79341766c7fab031a7501",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g5b_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "d6c09b69fc18aba716554ca4aedded870c861c01c4997a4d29bc5e0f0b5380fe",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Git FF/webhook/installer completed;zero migrations/imports",
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "2026/MZN;P086 é não aplicação da antiga14(2)(c),eliminada pelo Aviso2017,e continuidade deliberada na aquisição normal; não é isenção nova/activa nem cálculo retroactivo. Sem taxa presumida,dedução automática,importação,apuramento integral ou submissãoAT. P080/P084/P085 pendentes. L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
"beverages": "L2/L3;not closed",
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75",
|
||||
"release": "/var/www/investmoz-homologacao/releases/69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75-ac55d458",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/2e21ca45002b76adcef0347135783c706d37dd42-a5faea22",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75-ac55d458",
|
||||
"release_revision": {
|
||||
"commit": "69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T16:48:42.080060+00:00",
|
||||
"manifest_sha256": "84ea021139c585e0c7e7f8ab6933cd1775cd08173d3d0cdfeffad0b5bef46801"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed69f2e365;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed",
|
||||
"beverages_followup": {
|
||||
"source": "CIVA13(2),20(1)(d)",
|
||||
"L2": "Dedução do IVA da via13(2),com montante/documento/condições próprios",
|
||||
"L3": "Restituição da via13(2),conforme procedimento aplicável;pedido não equivale a deferimento",
|
||||
"closed_by_G5B": false
|
||||
},
|
||||
"treatment": "Disposição eliminada e encaminhamento para o regime aplicável; não é isenção disponível",
|
||||
"rectification_reference": "Aviso da Assembleia da República, BR n.º89, I Série,08/06/2017,PDF1/p.569: c) eliminado",
|
||||
"served_commit": "6f056359df4231f9e1802922782b21263a8dae0b",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "6f056359df4231f9e1802922782b21263a8dae0b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75-ac55d458",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 3,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "674479c6ce0897731d51e4ad2409f060"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "e278d0e2e0e8561bb0b474d138226a35"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 26,
|
||||
"checksum": "c7dfaaba275b5b5758caa2aad1136c72"
|
||||
},
|
||||
"after": {
|
||||
"rows": 27,
|
||||
"checksum": "d0f71dec810ed1bb8a7112773d53bf34"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "6f056359df4231f9e1802922782b21263a8dae0b",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:10:20.021314+00:00",
|
||||
"manifest_sha256": "0e2ee85ab107f34efcc9c589328a0635d2d6021ba28ee387e02b0654aeab85db"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"acquisition-continuity/1": [
|
||||
"assets/project-dossier-weQkfpPV.js"
|
||||
],
|
||||
"former_exploration_exemption": [
|
||||
"assets/services-DjZF4TLj.js",
|
||||
"assets/project-dossier-weQkfpPV.js"
|
||||
],
|
||||
"acquisitionTreatment": [
|
||||
"assets/services-DjZF4TLj.js",
|
||||
"assets/project-dossier-weQkfpPV.js"
|
||||
],
|
||||
"acquisitionTreatmentOrigin": [
|
||||
"assets/services-DjZF4TLj.js",
|
||||
"assets/project-dossier-weQkfpPV.js"
|
||||
],
|
||||
"c) eliminado": [
|
||||
"assets/services-DjZF4TLj.js",
|
||||
"assets/project-dossier-weQkfpPV.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/project-dossier-document-DjMS3OYA.js",
|
||||
"status": 200,
|
||||
"sha256": "b50a5e08e323454b8c651baba303a86634620580bc103952d27ea21ff651d431"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-DjZF4TLj.js",
|
||||
"status": 200,
|
||||
"sha256": "f45efdeb6764272a00ec2ead6f1052ab77b199f3af2d6ade54c6dbeea413fc35"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-weQkfpPV.js",
|
||||
"status": 200,
|
||||
"sha256": "8ded1cc5a561a72cb1003097ece6edfe28760b9677eec09bb461390334260b31"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-DABOgBTI.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "6f056359df4231f9e1802922782b21263a8dae0b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75-ac55d458",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "6f056359df4231f9e1802922782b21263a8dae0b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75-ac55d458",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"6f056359df4231f9e1802922782b21263a8dae0b"
|
||||
],
|
||||
"finished_at": "2026-10-24T17:10:22.445560+00:00"
|
||||
},
|
||||
"log_file": "1792861731226475463.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.29s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 300",
|
||||
"# pass 300",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 115761
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,297 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "965da2642627ad1e484d52587e07b4a60cae6af2",
|
||||
"base": "e99ea1d0",
|
||||
"last_known_remote_main": "6f056359",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P049": "reimport_same_state",
|
||||
"AUD-SIM-L1-P051": "central_bank_gold"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "43d823a594c5ea98801b69597fbd660effd90596709dec3a84787b7b11eef1c8"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "20f35daf9573e9ff0813ee7b0e3f4ad19eb0d47eabb0d661af845a915e76340e"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "a41275ce37268345d137745572c858ff3c989e392af337235f6b8b5e7dc38b86"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "ac75a0e24fdf31d17a90b3c9ecec338d6f0e309bd302d1254da04c2eacc493b3"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 68,
|
||||
"QA": 0,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 68,
|
||||
"QA": 0,
|
||||
"functional_pending": 64,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 5,
|
||||
"affected_report_tests": 14,
|
||||
"frontend_total": 19,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 20,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject passed,temporary file only",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18642/g6a.html",
|
||||
"observed": [
|
||||
"unknown condition ->indeterminate",
|
||||
"failed condition ->nonapplication,normal tax unknown",
|
||||
"affirmative conditions ->exempt import VAT0.00",
|
||||
"switch treatment ->only applicable questions;answers,document,1000MZN retained",
|
||||
"save/recover/report ->P049/P051,Manica,2026-12,documents,sources",
|
||||
"three previous UI results;20salesbooks and1purchasebook identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6a-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "e6914778f6513e2ea22850d1b30a79ff3592e0c8085cb09c38f1ffb23541cf9c"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g6a-readonly-rollback-20261024.patch checked;not applied",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6a-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "93d9e16845af367cab80ee4d646cc679b9668495c822d26ed6157caeb74da3fb",
|
||||
"files_sha256": "928f06a3795206702dbdc3ebd3ef76f9e345a199c1ec81f5abfa97a40154ba58",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6a_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "93d9e16845af367cab80ee4d646cc679b9668495c822d26ed6157caeb74da3fb",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Git FF/webhook/installer completed;zero migrations/imports",
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(d/f),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
"beverages": "L2/L3;not closed",
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "6f056359df4231f9e1802922782b21263a8dae0b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/69f2e365bf4ebd509ec2e080dd0bf1b7717d7a75-ac55d458",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"release_revision": {
|
||||
"commit": "6f056359df4231f9e1802922782b21263a8dae0b",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:10:20.021314+00:00",
|
||||
"manifest_sha256": "0e2ee85ab107f34efcc9c589328a0635d2d6021ba28ee387e02b0654aeab85db"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed6f056359;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed",
|
||||
"beverages_followup": {
|
||||
"source": "CIVA13(2),20(1)(d)",
|
||||
"L2": "Dedução do IVA da via13(2),com montante/documento/condições próprios",
|
||||
"L3": "Restituição da via13(2),conforme procedimento aplicável;pedido não equivale a deferimento",
|
||||
"closed_by_G6A": false
|
||||
},
|
||||
"fresh_destination_preflight": "completed authenticated6f056359 before installation;see authenticated_preflight",
|
||||
"treatment": "P049/reimport_same_state,12(1)(d);P051/central_bank_gold,12(1)(f);classificação IVA na importação,sem direitosaduaneiros nem dedução/campo11",
|
||||
"served_commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 4,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "3cef2e5d47d357e3a831ee9fc1f332d0"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "fa38aab45da6527192848bea480f8014"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 29,
|
||||
"checksum": "f7d4d8e560b9e7fcf35d15bbf457f195"
|
||||
},
|
||||
"after": {
|
||||
"rows": 30,
|
||||
"checksum": "162782d2ac82e4deaacf4d79561ea513"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:23:49.644454+00:00",
|
||||
"manifest_sha256": "4972fe7be0ab6293c73e2d731084a6986079044fea4548e07d9537d4d3ca20f7"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-exemptions/1": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"reimport_same_state": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"central_bank_gold": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"importExemptions": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
],
|
||||
"12(1)(d/f)": [
|
||||
"assets/project-dossier-JEkKEtTe.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-BXU5lh3t.js",
|
||||
"status": 200,
|
||||
"sha256": "e0cf2f3f2f1c1c6d440729cfd6cd7a4bb830b20ed1121860d67862436765d2fd"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-JEkKEtTe.js",
|
||||
"status": 200,
|
||||
"sha256": "adf02748a797af916d4fa0c9c1f60b8710a90550937f541785b98fe33d1fff6c"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-3_HjfTXa.js",
|
||||
"status": 200,
|
||||
"sha256": "21a61a7ac141d65b7f3f74fd515371a3f1f25d76c896901f52ecb1f9a820555e"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-qm4e17dP.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"e3601c124d50fa2b52ea9d9fb86fbddf1d224d51"
|
||||
],
|
||||
"finished_at": "2026-10-24T17:23:52.274448+00:00"
|
||||
},
|
||||
"log_file": "1792862542167178181.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.86s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 305",
|
||||
"# pass 305",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 117310
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -48,6 +48,7 @@
|
||||
function key(draft:Record<string,unknown>,book:ImportExemptionBook):string {return JSON.stringify({version:importExemptionVersion,scope:acquisitionScope(draft),location:draft.selection_labels??{},currency:draft.currency,rows:book.rows});}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ throw new Error('Novas classificacoes de importacao temporariamente suspensas; resultados guardados e relatorios disponiveis.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:importExemptionSource,inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -0,0 +1,292 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "f75f36f0e36a5d9981f631b6e22f3c9e723ee454",
|
||||
"base": "a23f1dcb",
|
||||
"last_known_remote_main": "e3601c12",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P055": "author_art_import",
|
||||
"AUD-SIM-L1-P057": "fire_brigade_vehicle"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "af818d49abb78aaa5f271c686c74c5394472317c7a3ab5c23e9ea64b1b7d440c"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "c78e55c1ca71d9d17bea0992d627264f4b96d5526e8db20339e6fa3419712eeb"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 70,
|
||||
"QA": 0,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 70,
|
||||
"QA": 0,
|
||||
"functional_pending": 62,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suite": 5,
|
||||
"frontend_total": 9,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 23,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and UTF8 split-multibyte boundary passed;Buffer concatenation before decoding;temporary file only",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18643/g6b.html",
|
||||
"observed": [
|
||||
"unknown condition ->indeterminate",
|
||||
"failed condition ->nonapplication,normal tax unknown",
|
||||
"affirmative conditions ->exempt import VAT0.00",
|
||||
"switch treatment ->only applicable questions;answers,document,2500MZN retained",
|
||||
"save/recover/report ->P055/P057,Manica,2026-12,documents,sources",
|
||||
"four previous UI results;20salesbooks,1purchase and1importbook identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6b-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "7f6ef7c5a3ee5aca026ad29279510b2ab9fa63d76d13b878007a5c58f4163a7e"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g6b-readonly-rollback-20261024.patch checked;not applied",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6b-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "acfe60e926890eb240e3233cee37653bd207148ac7f554458a5845c690287897",
|
||||
"files_sha256": "9b10a08af9f91965166c311b331a3c068af4fc737088ab529846f0a00a3231fb",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6b_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "acfe60e926890eb240e3233cee37653bd207148ac7f554458a5845c690287897",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Git FF/webhook/installer completed;zero migrations/imports",
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "2026/MZN;classificação L1 de12(1)(j/l),sem direitosaduaneirosL13,dedução/campo11L2,baseaduaneira,taxa normal presumida,apuramento integral ou submissãoAT. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
"beverages": "L2/L3;not closed",
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6f056359df4231f9e1802922782b21263a8dae0b-5bf30d7b",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"release_revision": {
|
||||
"commit": "e3601c124d50fa2b52ea9d9fb86fbddf1d224d51",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:23:49.644454+00:00",
|
||||
"manifest_sha256": "4972fe7be0ab6293c73e2d731084a6986079044fea4548e07d9537d4d3ca20f7"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmede3601c12;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed",
|
||||
"beverages_followup": {
|
||||
"source": "CIVA13(2),20(1)(d)",
|
||||
"L2": "Dedução do IVA da via13(2),com montante/documento/condições próprios",
|
||||
"L3": "Restituição da via13(2),conforme procedimento aplicável;pedido não equivale a deferimento",
|
||||
"closed_by_G6B": false
|
||||
},
|
||||
"fresh_destination_preflight": "completed authenticatede3601c12 before installation;see authenticated_preflight",
|
||||
"treatment": "P055/author_art_import,12(1)(j);P057/fire_brigade_vehicle,12(1)(l);classificação IVA na importação,sem direitosaduaneiros nem dedução/campo11",
|
||||
"served_commit": "4cebd617651ca877bd4715c661973873e69f05e1",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "4cebd617651ca877bd4715c661973873e69f05e1",
|
||||
"release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 2,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "f2fce5ce32819b6c221a5104ee3f5608"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "26f89504af67b9996eef7792a6ccb0a3"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 32,
|
||||
"checksum": "54b7fbc8bc6f9c17aff50ad13a817c34"
|
||||
},
|
||||
"after": {
|
||||
"rows": 33,
|
||||
"checksum": "0280882f0accf2401359095570a1e734"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "4cebd617651ca877bd4715c661973873e69f05e1",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:36:44.073710+00:00",
|
||||
"manifest_sha256": "820184910bf076609ce3c05dcc4995d0543ff5cbc672ca2fc3c73e856fdc1c97"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-beneficiaries/1": [
|
||||
"assets/project-dossier-tRE-vqtC.js"
|
||||
],
|
||||
"author_art_import": [
|
||||
"assets/project-dossier-tRE-vqtC.js"
|
||||
],
|
||||
"fire_brigade_vehicle": [
|
||||
"assets/project-dossier-tRE-vqtC.js"
|
||||
],
|
||||
"eligibleArtImporter": [
|
||||
"assets/project-dossier-tRE-vqtC.js"
|
||||
],
|
||||
"exclusiveOwnUse": [
|
||||
"assets/project-dossier-tRE-vqtC.js"
|
||||
],
|
||||
"12(1)(j/l)": [
|
||||
"assets/project-dossier-tRE-vqtC.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/project-dossier-tRE-vqtC.js",
|
||||
"status": 200,
|
||||
"sha256": "1b2cc3687cb342676eb3e8bfa940863b3a2173dac95b8df47653f1b17d171a5c"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-CSZUuL22.js",
|
||||
"status": 200,
|
||||
"sha256": "ab39b32a9ef8cb4f8af02490ede1c1cab3c119d11fe699ad2f3fe4ccd0d5b54d"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-D5YnZvXr.js",
|
||||
"status": 200,
|
||||
"sha256": "a2257e2880d5e380e04bdfe1fd59bcb0e0a86946380340f898ed87e5840e35b0"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-6hf5mUzo.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "4cebd617651ca877bd4715c661973873e69f05e1",
|
||||
"release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "4cebd617651ca877bd4715c661973873e69f05e1",
|
||||
"release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"4cebd617651ca877bd4715c661973873e69f05e1"
|
||||
],
|
||||
"finished_at": "2026-10-24T17:36:46.889389+00:00"
|
||||
},
|
||||
"log_file": "1792863315560969954.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.99s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 309",
|
||||
"# pass 309",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 118487
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -57,6 +57,7 @@
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ throw new Error('Novas classificacoes de importacao temporariamente suspensas; resultados guardados e relatorios disponiveis.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -0,0 +1,310 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "8e5565d5e0501ecd2a40ae684f4948b867308c54",
|
||||
"base": "72e56f7a",
|
||||
"last_known_remote_main": "4cebd617",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P053": [
|
||||
"eligible_ship_import",
|
||||
"ship_operation_object_import"
|
||||
],
|
||||
"AUD-SIM-L1-P054": [
|
||||
"eligible_aircraft_import",
|
||||
"aircraft_operation_object_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 2,
|
||||
"treatment_count": 4,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "6f35a4ee2e8a6a53e0d8313913914903ae48a5c685412a6df4aa44fe2d3ed2a6"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-international-assets.ts",
|
||||
"sha256_LF": "b434f014e9165c44d4d1498f804f85dd5eaa7fc31409faebefd2267ba7a1a371"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "d53931a3e30551ddac31f81de78220de2a5e269c71c213ca43d375e8e7fc3551"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 72,
|
||||
"QA": 0,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 72,
|
||||
"QA": 0,
|
||||
"functional_pending": 60,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suites": 9,
|
||||
"frontend_total": 13,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 24,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin timing warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and split-multibyte UTF8 boundary passed;inherited Buffer concatenation preserved",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18644/g6c.html",
|
||||
"observed": [
|
||||
"four treatments mapped to two IDs",
|
||||
"object link unknown ->indeterminate;negative ->nonapplication;affirmative ->exempt0.00",
|
||||
"switch object to principal aircraft ->own condition unknown,object response retained;return ->response restored",
|
||||
"4000MZN/document/2026-12 conserved",
|
||||
"save/recover/report ->P053/P054/four treatments,Manica,opportunity332,source12h/i and13f/g",
|
||||
"four previous new-book UI results;all23acceptedbooks identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6c-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "d09a98c6a6c73a526c8803358eef6448cdc634a8a430c6ab8fe691ecdbd32bf4"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g6c-readonly-rollback-20261024.patch checked;not applied",
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6c-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "c036d0f4c188fcd1392c1ee0140fd1d41239151bab116647e3ed71e2ba6a50ea",
|
||||
"files_sha256": "3d13cca301ab91abf29848b522a19316dea284bc5d9e41ae8b88971866401ac7",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6c_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "c036d0f4c188fcd1392c1ee0140fd1d41239151bab116647e3ed71e2ba6a50ea",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Git FF/webhook/installer completed;zero migrations/imports",
|
||||
"served_revision_and_delta": "verified",
|
||||
"limits": "2026/MZN;classificação12(1)(h/i),bem principal ou objecto da exploração identificado,sem baseaduaneira,direitosL13,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não encerraP052/abastecimentos. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
"beverages": "L2/L3;not closed",
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "4cebd617651ca877bd4715c661973873e69f05e1",
|
||||
"release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/e3601c124d50fa2b52ea9d9fb86fbddf1d224d51-b40b5ef1",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"release_revision": {
|
||||
"commit": "4cebd617651ca877bd4715c661973873e69f05e1",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:36:44.073710+00:00",
|
||||
"manifest_sha256": "820184910bf076609ce3c05dcc4995d0543ff5cbc672ca2fc3c73e856fdc1c97"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"authenticated_destination": "Fresh read confirmed4cebd617;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore;no active restore performed",
|
||||
"beverages_followup": {
|
||||
"source": "CIVA13(2),20(1)(d)",
|
||||
"L2": "Dedução do IVA da via13(2),com montante/documento/condições próprios",
|
||||
"L3": "Restituição da via13(2),conforme procedimento aplicável;pedido não equivale a deferimento",
|
||||
"closed_by_G6C": false
|
||||
},
|
||||
"fresh_destination_preflight": "completed authenticated4cebd617 before installation;see authenticated_preflight",
|
||||
"treatment": "P053/eligible_ship_import+ship_operation_object_import,12(1)(h);P054/eligible_aircraft_import+aircraft_operation_object_import,12(1)(i);dois ramos/quatro tratamentos;classificação IVA na importação,sem direitosaduaneiros nem dedução/campo11",
|
||||
"served_commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 3,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "830e47887a2f6c9ebb85f9a169142993"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "31f225d60f40c7ed4362914d54f9c874"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 35,
|
||||
"checksum": "36a81e8a5ac8860d048eed3b3fce1407"
|
||||
},
|
||||
"after": {
|
||||
"rows": 36,
|
||||
"checksum": "788ac4e8051f39a1ccbe33bc7c6a6798"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:47:40.841865+00:00",
|
||||
"manifest_sha256": "4e33ef8b77192cc28929f1ce8768c8df3d5e4b4d92ad912cf09d75077a9af40c"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-assets/1": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"eligible_ship_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"ship_operation_object_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"eligible_aircraft_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"aircraft_operation_object_import": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"shipObjectLink": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"aircraftObjectLink": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
],
|
||||
"12(1)(h/i)": [
|
||||
"assets/project-dossier-4TZPGVhV.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-BixUbmml.js",
|
||||
"status": 200,
|
||||
"sha256": "076c7185606a045bc80dc0a27391f950ea821b90e4884ca7d550e76d847fffab"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-CYJCi592.js",
|
||||
"status": 200,
|
||||
"sha256": "955e11af7bf648dc849b4c676d71b82719e7446d95d38427d6fe69f9935d3f85"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-4TZPGVhV.js",
|
||||
"status": 200,
|
||||
"sha256": "94585fefba949fc3a2e44ac951f59c61ff28c2fd68e1f6b64d8d33234b6cfef3"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-DdgboHYu.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"d46b794ab2c6113738f76c69097ae3dcddcf56dd"
|
||||
],
|
||||
"finished_at": "2026-10-24T17:47:43.681452+00:00"
|
||||
},
|
||||
"log_file": "1792863971064151912.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.75s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 313",
|
||||
"# pass 313",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 119668
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -65,6 +65,7 @@
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ throw new Error('Novas classificacoes de importacao temporariamente suspensas; resultados guardados e relatorios disponiveis.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"status": "delivered_jointly_with_P080",
|
||||
"candidate": "0eb37ef59b9b65837e6791518b378fe4e64ca112",
|
||||
"base": "2ed62165",
|
||||
"last_known_remote_main": "d46b794a",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P048": [
|
||||
"customs_transit_import",
|
||||
"customs_temporary_import",
|
||||
"customs_drawback_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 3,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "cb44f9b7199e6b29cba251d387ef0d626f063c49480cd2b03dd9a7334e4862b2"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "c4fb7c421e0f33e8d76997be966689a3f58cc66d21abb65663a58a2704607f18"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 72,
|
||||
"QA": 1,
|
||||
"functional_pending": 59,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 73,
|
||||
"QA": 0,
|
||||
"functional_pending": 59,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs_reused": {
|
||||
"frontend_new": 4,
|
||||
"existing_import_suites": 13,
|
||||
"frontend_total": 17,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 25,
|
||||
"QA_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed;existing plugin timing warnings",
|
||||
"QA_build": "passed;existing chunk warning",
|
||||
"QA_storage": "save/recover/reject and split-multibyte UTF8 boundary passed;inherited Buffer concatenation preserved",
|
||||
"UI": {
|
||||
"actor": "Codex",
|
||||
"method": "Edge/CUA observed",
|
||||
"URL": "http://127.0.0.1:18645/g6d.html",
|
||||
"observed": [
|
||||
"three treatments mapped to one ID",
|
||||
"full customs duty exemption unknown ->indeterminate;negative ->nonapplication;affirmative with own regime ->exempt0.00",
|
||||
"switch transit to temporary import ->own regime condition unknown,previous answers retained;return ->transit response restored",
|
||||
"5000MZN/document/2026-12 conserved",
|
||||
"save/recover/report ->P048/three treatments,Manica,opportunity333,source12(1)(c)",
|
||||
"four previous new-book UI results;all24acceptedbooks identical"
|
||||
],
|
||||
"manual_Tempo_reply": null,
|
||||
"screenshot": "C:\\laragon\\www\\portal-investidor\\outputs\\iva-l1-g6d-imports-20261024\\qa-recovered-report.png",
|
||||
"screenshot_sha256": "fadcff5be7c2a7a768a87531fefab15d189f87c9181e60fc2c794b4a5a01ae8c"
|
||||
},
|
||||
"Word_PDF": "Existing exporter proofs reused;no new pagination claim"
|
||||
},
|
||||
"rollback": "l1-g6d-readonly-rollback-20261024.patch checked;not applied",
|
||||
"backup_restore": "Fresh authenticated destination/main read,backup and real isolated restore required before installation;accepted G6C receipt is preservation context only",
|
||||
"activation": "Existing normal Git FF/webhook/installer;no push or installation in QA passage",
|
||||
"served_revision_and_delta": "pending delivery;homologation remainsd46b794a",
|
||||
"limits": "2026/MZN;P048/12(1)(c),trânsito/importação temporária/draubaque com isenção total de direitos,sem baseaduaneira,cálculo de direitosL13,saída de regime,dedução/campo11L2,taxa normal presumida,apuramento integral ou submissãoAT. Não confundir com vendas em regimeG5/P083. P080/P084/P085 explicitamente abertos;L1aberto;P001só05/06;bebidasL2/L3;Estatísticas/IAadiadas.",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06 only",
|
||||
"beverages": "L2/L3;not closed",
|
||||
"statistics_AI": "deferred",
|
||||
"superseded_preparation_status": "QA_demonstrated_delivery_prepared_not_installed",
|
||||
"delivery_followup": {
|
||||
"served_commit": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"receipt": "l1-g6d-g5c-delivery-20261024.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,296 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "50fdd97916ef910a61bff0bebbcdc835206e3786",
|
||||
"base_installed": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P048": [
|
||||
"customs_transit_import",
|
||||
"customs_temporary_import",
|
||||
"customs_drawback_import"
|
||||
],
|
||||
"AUD-SIM-L1-P080": [
|
||||
"special_economic_zone_import",
|
||||
"free_zone_import",
|
||||
"free_warehouse_import",
|
||||
"general_free_warehouse_import",
|
||||
"customs_warehouse_import",
|
||||
"duty_free_shop_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 2,
|
||||
"treatment_count": 9,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "01698a4dfe4dd7bd39af44593a8b0909665c1066d4faa1f32c1315fec5b623eb"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "94276b469e172bf1ed0b763a6cd9215837da6bfa4e6b2637a41915d105690511"
|
||||
}
|
||||
],
|
||||
"counts_before": {
|
||||
"delivered": 72,
|
||||
"QA": 2,
|
||||
"functional_pending": 58,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 74,
|
||||
"QA": 0,
|
||||
"functional_pending": 58,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-g6d-qa-20261024.json",
|
||||
"iva-l1-g5c-qa-20261024.json"
|
||||
],
|
||||
"authorization": "Tempo24/10 explicit immediate delivery of P048/P080 jointly;preserve closures/concurrent changes;installed delta only",
|
||||
"P084_P085": "Not delivered;documentary research joint,conditions distinct;draft preparation authorized without automatic benefit",
|
||||
"limits": "L1open;P001only05/06;import classification separate from deduction/field11;beveragesL2/L3;Statistics/AIdeferred",
|
||||
"rollback": "Keep previous release/backup;prepared readonly containment disables only new recording,keeps readers/history;not applied",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4cebd617651ca877bd4715c661973873e69f05e1-f916c854",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"release_revision": {
|
||||
"commit": "d46b794ab2c6113738f76c69097ae3dcddcf56dd",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T17:47:40.841865+00:00",
|
||||
"manifest_sha256": "4e33ef8b77192cc28929f1ce8768c8df3d5e4b4d92ad912cf09d75077a9af40c"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6d-g5c-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "9c03002c45875ffec171a96f40d75532fd2ea6efe7dd89120e527f73d48c0cce",
|
||||
"files_sha256": "24b8607c3e31787487daabe18903f021a916a794b6a17cdee2350b4ac807d81e",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6d_g5c_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "9c03002c45875ffec171a96f40d75532fd2ea6efe7dd89120e527f73d48c0cce",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"counts_current": {
|
||||
"delivered": 74,
|
||||
"QA": 0,
|
||||
"functional_pending": 58,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"release": "/var/www/investmoz-homologacao/releases/2d889a211ba303db31dcba815e439456dfba9f36-dac24b34",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 2,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "6bae449491c743a037aa02734dcb1431"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "e81e15d761e31816b5ab2c449a09d4e3"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 38,
|
||||
"checksum": "ae3b2e07bb1716ac0f2c754e8b5f60b5"
|
||||
},
|
||||
"after": {
|
||||
"rows": 39,
|
||||
"checksum": "8689cdace9da253cdf37e05bb865cf34"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T18:06:14.188038+00:00",
|
||||
"manifest_sha256": "84df9b7bd7b9912749d43fc40855ea10cebc9f7bf92451e6eb9860771169840a"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-customs-regimes/1": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"customs_transit_import": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"customs_temporary_import": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"customs_drawback_import": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"fullCustomsExemption": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"import-special-regimes/1": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"special_economic_zone_import": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"free_zone_import": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"free_warehouse_import": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"general_free_warehouse_import": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"customs_warehouse_import": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"duty_free_shop_import": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"specialNoFinalUseConsumption": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
],
|
||||
"specialRegimePermanence": [
|
||||
"assets/project-dossier-BD5LnuON.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/project-dossier-document-kEtxhcJm.js",
|
||||
"status": 200,
|
||||
"sha256": "00c75468a545c8f23097c4770ae3cddae38b74f3f6c4c2938d91c56a347d5ba4"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-DFRcrieB.js",
|
||||
"status": 200,
|
||||
"sha256": "acc2b8d2104eddd9dbadb7431e87df8c044ff460e4acbbe7b29cd7b6703fce0f"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-BD5LnuON.js",
|
||||
"status": 200,
|
||||
"sha256": "500f8e81cbd4cdbb0a4d9295ba5fb364d452cbd9b1409f9baf5151bd42f01037"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-DxCn5xSH.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"release": "/var/www/investmoz-homologacao/releases/2d889a211ba303db31dcba815e439456dfba9f36-dac24b34",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"release": "/var/www/investmoz-homologacao/releases/2d889a211ba303db31dcba815e439456dfba9f36-dac24b34",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"2d889a211ba303db31dcba815e439456dfba9f36"
|
||||
],
|
||||
"finished_at": "2026-10-24T18:06:17.151219+00:00"
|
||||
},
|
||||
"log_file": "1792865082332907236.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 26.01s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 320",
|
||||
"# pass 320",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 121819
|
||||
},
|
||||
"rollback_executed": false
|
||||
},
|
||||
"activation": "Normal Git fast-forward/webhook/installer;zero migrations/imports"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -81,6 +81,7 @@
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ throw new Error('Novas classificações de importação temporariamente suspensas; dados, histórico e relatórios preservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -71,6 +71,7 @@
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ throw new Error('Novas classificacoes de importacao temporariamente suspensas; resultados guardados e relatorios disponiveis.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -0,0 +1,348 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "1565aa4ffb13fae75e925ccdb2b7553a9b111dd5",
|
||||
"last_installed": "2d889a21",
|
||||
"coverage": {
|
||||
"AUD-SIM-L1-P052": [
|
||||
"ship_provisions_import",
|
||||
"ship_fuel_import",
|
||||
"ship_technical_products_import",
|
||||
"ship_cargo_accessories_import",
|
||||
"aircraft_provisions_import",
|
||||
"aircraft_fuel_import",
|
||||
"aircraft_technical_products_import",
|
||||
"aircraft_cargo_accessories_import"
|
||||
]
|
||||
},
|
||||
"branch_count": 1,
|
||||
"treatment_count": 8,
|
||||
"runtime_delta_G6E": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "5a1359a75aa0403d9ccb2607e443dd15729d4c504a713b8710e655ac3e1a52f3"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "63e424a64933dca63761c2c55eb3fd3c3a50e22aa8aa3a919e959cb43218b6fd"
|
||||
},
|
||||
{
|
||||
"path": "app/Http/Requests/StoreSimulationFormDraftRequest.php",
|
||||
"sha256_LF": "5a966ef9d3a668d3785b073f8bae600f8ed18ccbd076fec3c62c64f020fca936"
|
||||
}
|
||||
],
|
||||
"uninstalled_ancestral_draft_preparation_runtime": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-offer-preparations.ts",
|
||||
"sha256_LF": "c5262327d4f1a3fd062ce4febcb628af5ef97c9c77eac7ebc7af27a96e1842a2"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-offer-preparations.tsx",
|
||||
"sha256_LF": "e8ae2e9138b244d6173ff92e0e75ea2143fbd86c20092e1fa2a5d732c547b031"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "54278996c89d1508219dae83633a75261f3d36d60e7737d4a53d5d132febaf5e"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "ee742d34d31c06414efe39de2748b98dc9b981dbaf98a52f8ff02aab1b9198de"
|
||||
}
|
||||
],
|
||||
"ancestry_scope_warning": "Candidate also contains uninstalledP084/P085draftpreparation5ec2f198,not benefits;future deliverymust identify totalinstalleddelta and preserve those drafts,not countP084/P085 asclosed",
|
||||
"counts_current": {
|
||||
"delivered": 75,
|
||||
"QA": 0,
|
||||
"functional_pending": 57,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_P052_delivery_only": {
|
||||
"delivered": 75,
|
||||
"QA": 0,
|
||||
"functional_pending": 57,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": "iva-l1-g6e-qa-20261024.json;accepted74closures anddraftproofs not rerun",
|
||||
"required_before_delivery": "Freshauthenticateddestination/main;backupandrealisolatedrestore;existingGitprocess;onlyinstalleddeltaverification",
|
||||
"limits": "L1open;P001only05/06;beveragesL2/L3;Statistics/AIdeferred;closingL1doesnotrequireL2/L3/alltaxes",
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "5a1359a75aa0403d9ccb2607e443dd15729d4c504a713b8710e655ac3e1a52f3"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "63e424a64933dca63761c2c55eb3fd3c3a50e22aa8aa3a919e959cb43218b6fd"
|
||||
},
|
||||
{
|
||||
"path": "app/Http/Requests/StoreSimulationFormDraftRequest.php",
|
||||
"sha256_LF": "5a966ef9d3a668d3785b073f8bae600f8ed18ccbd076fec3c62c64f020fca936"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-offer-preparations.ts",
|
||||
"sha256_LF": "c5262327d4f1a3fd062ce4febcb628af5ef97c9c77eac7ebc7af27a96e1842a2"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-offer-preparations.tsx",
|
||||
"sha256_LF": "e8ae2e9138b244d6173ff92e0e75ea2143fbd86c20092e1fa2a5d732c547b031"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "54278996c89d1508219dae83633a75261f3d36d60e7737d4a53d5d132febaf5e"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "ee742d34d31c06414efe39de2748b98dc9b981dbaf98a52f8ff02aab1b9198de"
|
||||
}
|
||||
],
|
||||
"authorization": "Tempo24/10:G6E/P052 candidate1565aa4f integrate/deploy viaexistingGit,concurrentchangespreserved,installeddeltaonly;preserve P084/P085drafts and domestic/import distinction,noautobenefit",
|
||||
"base_installed": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"counts_before": {
|
||||
"delivered": 74,
|
||||
"QA": 1,
|
||||
"functional_pending": 57,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 75,
|
||||
"QA": 0,
|
||||
"functional_pending": 57,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"P084_P085": "Ancestordraftpreparation5ec2f198included as partialdraftavailability,not fullbenefitdelivery;P084/P085 remain57pending;newlyrequestedstatus/scenariosclarification willbeQAonlyafterthisrelease",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"release": "/var/www/investmoz-homologacao/releases/2d889a211ba303db31dcba815e439456dfba9f36-dac24b34",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/d46b794ab2c6113738f76c69097ae3dcddcf56dd-e81e61d1",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/2d889a211ba303db31dcba815e439456dfba9f36-dac24b34",
|
||||
"release_revision": {
|
||||
"commit": "2d889a211ba303db31dcba815e439456dfba9f36",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T18:06:14.188038+00:00",
|
||||
"manifest_sha256": "84df9b7bd7b9912749d43fc40855ea10cebc9f7bf92451e6eb9860771169840a"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6e-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "e6b37683c01019b2fc361a3ff33f6be0f2ebf6f5a1a23c4a81dc95ea278dd9b9",
|
||||
"files_sha256": "60c38657d68d0a98f5b287fb3c74062bacc283729ff8c3aa84c110408067d9bc",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6e_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "e6b37683c01019b2fc361a3ff33f6be0f2ebf6f5a1a23c4a81dc95ea278dd9b9",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "c1314cdf90c368b51489aaf04c2cdbe59cfb88e6",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "c1314cdf90c368b51489aaf04c2cdbe59cfb88e6",
|
||||
"release": "/var/www/investmoz-homologacao/releases/c1314cdf90c368b51489aaf04c2cdbe59cfb88e6-d4800fe2",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/2d889a211ba303db31dcba815e439456dfba9f36-dac24b34",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 7,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "2df1487be225c60843f9f0ef9f07ed71"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "286378eec2e9e387ecfbeb156f168fca"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 41,
|
||||
"checksum": "0e709e11078a7c89e010c3f670d6f207"
|
||||
},
|
||||
"after": {
|
||||
"rows": 42,
|
||||
"checksum": "da381873ffd7fe5eaa5ab5996ca602ab"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "c1314cdf90c368b51489aaf04c2cdbe59cfb88e6",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T18:25:28.022659+00:00",
|
||||
"manifest_sha256": "efd98a5b7940896109788186b7deedd09ce7dc44f391e3c618e7ec1ee82e6b7d"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-onboard-supplies/1": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"ship_provisions_import": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"ship_fuel_import": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"ship_technical_products_import": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"ship_cargo_accessories_import": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"aircraft_provisions_import": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"aircraft_fuel_import": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"aircraft_technical_products_import": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"aircraft_cargo_accessories_import": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"supplyNoCoastalFishing": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"supplyNormalTanks": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"offerPreparations": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
],
|
||||
"benefício não aplicado": [
|
||||
"assets/project-dossier-RK4qLB-o.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-CIQlqNrD.js",
|
||||
"status": 200,
|
||||
"sha256": "081f2d08cfe70c8ca035c9da6022cfd88f1980ca8e5433eb3d16f96971e080eb"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-CqPgbMxW.js",
|
||||
"status": 200,
|
||||
"sha256": "ee59b7a86ed1cb4e6e171c3ef65e114f8f2fbe91d76aac4194b58706f49c50c1"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-RK4qLB-o.js",
|
||||
"status": 200,
|
||||
"sha256": "580dc668b93ff861cf4757a47de165c0575255ed77e19816a566b6efcf80d0c7"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-DdR4Impy.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "c1314cdf90c368b51489aaf04c2cdbe59cfb88e6",
|
||||
"release": "/var/www/investmoz-homologacao/releases/c1314cdf90c368b51489aaf04c2cdbe59cfb88e6-d4800fe2",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/2d889a211ba303db31dcba815e439456dfba9f36-dac24b34",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "c1314cdf90c368b51489aaf04c2cdbe59cfb88e6",
|
||||
"release": "/var/www/investmoz-homologacao/releases/c1314cdf90c368b51489aaf04c2cdbe59cfb88e6-d4800fe2",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/2d889a211ba303db31dcba815e439456dfba9f36-dac24b34",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"c1314cdf90c368b51489aaf04c2cdbe59cfb88e6"
|
||||
],
|
||||
"finished_at": "2026-10-24T18:25:30.464203+00:00"
|
||||
},
|
||||
"log_file": "1792866235841214128.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.41s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 327",
|
||||
"# pass 327",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 123869
|
||||
},
|
||||
"rollback_executed": false
|
||||
},
|
||||
"activation": "NormalGitFF/webhook/installer;zero migrations/imports"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -93,6 +93,7 @@
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ throw new Error('Novas classificações de importação temporariamente suspensas; dados, histórico e relatórios preservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -0,0 +1,333 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "29e708ba2dca2450eaff8eff6f5e19079ffc7f8e",
|
||||
"base_installed": "c1314cdf90c368b51489aaf04c2cdbe59cfb88e6",
|
||||
"coverage_complete_branches": {
|
||||
"AUD-SIM-L1-P050": [
|
||||
"service_in_customs_value",
|
||||
"accessory_service_first_destination"
|
||||
]
|
||||
},
|
||||
"branch_count_complete": 1,
|
||||
"treatment_count_P050": 2,
|
||||
"partial_coverage_P084_P085": {
|
||||
"authorized_partial_candidate": "946fc089",
|
||||
"next_delivery_scope": "Preparation/requeststates/scopeddecisions/humanitarianpurpose/normalandconditionalhypotheticalscenarios,notconfirmedbenefit/notclosing2branches",
|
||||
"documentary_scope": "IdentifyexpressapplicableCIVA14(3)procedure/link and amendments;distinguishP084internal/import andP085acquisition. ModelI.1/Despacho/CBFcotejo reused,not repeated;do notinventcertificates/approvers orclaimregulation nonexistent",
|
||||
"preserved": "Allrows,scopeversions,deliberateedits,normal/conditionalinputs andhistory exactlyequalfrozenfixture",
|
||||
"delivered_scope": "Preparation/request states/scoped decisions/humanitarian purpose/normal and conditional hypothetical scenarios now available; benefits not confirmed; both branches remain pending"
|
||||
},
|
||||
"runtime_delta_total": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "1e6005f87eafa9db9cd032c8c3f01ae23f1755b33c20d0925538dd427ce25868"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "656945b77e1e9f8f059b184969de783a1e2c9a1252af0084cf53ebc2bf249cb8"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-offer-preparations.ts",
|
||||
"sha256_LF": "23a84aa1e87d6a6defbca1e0c5eee96deb4619ffc1980881f2f69abfe54f81c1"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-offer-preparations.tsx",
|
||||
"sha256_LF": "e8ad2edd142736269b5a119de5270e67086a79b26d476105dcd290393b6b94ed"
|
||||
}
|
||||
],
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "1e6005f87eafa9db9cd032c8c3f01ae23f1755b33c20d0925538dd427ce25868"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "656945b77e1e9f8f059b184969de783a1e2c9a1252af0084cf53ebc2bf249cb8"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-offer-preparations.ts",
|
||||
"sha256_LF": "23a84aa1e87d6a6defbca1e0c5eee96deb4619ffc1980881f2f69abfe54f81c1"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-offer-preparations.tsx",
|
||||
"sha256_LF": "e8ad2edd142736269b5a119de5270e67086a79b26d476105dcd290393b6b94ed"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 76,
|
||||
"QA": 0,
|
||||
"functional_pending": 56,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_P050_delivery_only": {
|
||||
"delivered": 76,
|
||||
"QA": 0,
|
||||
"functional_pending": 56,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-g6f-qa-20261024.json",
|
||||
"iva-l1-offer-paths-qa-20261024.json"
|
||||
],
|
||||
"authorization": "Tempo24/10 explicitly deploy29e708ba viaexistingGit,including946fc089onlypartialpreparation/conditionalsimulationP084/P085;preserveconcurrentchanges,installeddeltaonly",
|
||||
"fresh_backup_restore": "Required freshauthenticateddestination/main,backup/realisolatedrestore beforeinstallation;accepted75closuresreused,installeddeltaonly",
|
||||
"limits": "L1open;P001only05/06;beveragesL2/L3;classificationseparatefromfield11;Statistics/AIdeferred;L1closuredoesnotrequireL2/L3/alltaxes",
|
||||
"counts_before": {
|
||||
"delivered": 75,
|
||||
"QA": 1,
|
||||
"functional_pending": 56,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 76,
|
||||
"QA": 0,
|
||||
"functional_pending": 56,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"scope": "P050onecompletebranch/twotreatments;P084/P085partialrequest/emergencydrafts/scenarios,notconfirmedbenefits/notclosing2branches",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "c1314cdf90c368b51489aaf04c2cdbe59cfb88e6",
|
||||
"release": "/var/www/investmoz-homologacao/releases/c1314cdf90c368b51489aaf04c2cdbe59cfb88e6-d4800fe2",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/2d889a211ba303db31dcba815e439456dfba9f36-dac24b34",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/c1314cdf90c368b51489aaf04c2cdbe59cfb88e6-d4800fe2",
|
||||
"release_revision": {
|
||||
"commit": "c1314cdf90c368b51489aaf04c2cdbe59cfb88e6",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T18:25:28.022659+00:00",
|
||||
"manifest_sha256": "efd98a5b7940896109788186b7deedd09ce7dc44f391e3c618e7ec1ee82e6b7d"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6f-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "91632c927b4a7de70ca06690c7dc50936b2975ee31c53d5781461583fdca9cda",
|
||||
"files_sha256": "ebb421927381bb5c1cdb536eea61739fb4134b51faaf2f57b773222655b1c0b9",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6f_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "91632c927b4a7de70ca06690c7dc50936b2975ee31c53d5781461583fdca9cda",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633",
|
||||
"release": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/c1314cdf90c368b51489aaf04c2cdbe59cfb88e6-d4800fe2",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 4,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "f66b5e7174f6c71536ef479eb058cb42"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "c1104feaa87c6abe31c459db5c263c30"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 44,
|
||||
"checksum": "2d76115dd940c820e3287a861527b6ee"
|
||||
},
|
||||
"after": {
|
||||
"rows": 45,
|
||||
"checksum": "5f632d423b866686ef1fb280fd2b2a20"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T18:47:27.964235+00:00",
|
||||
"manifest_sha256": "a8c5303ce2443fefcf137681ead8f652e16963ae656612e80d1672da62e0a0a6"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-included-services/1": [
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"service_in_customs_value": [
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"accessory_service_first_destination": [
|
||||
"assets/services-BLOH90IF.js",
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"serviceVat": [
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"serviceImportRef": [
|
||||
"assets/services-BLOH90IF.js",
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"serviceBaseRef": [
|
||||
"assets/services-BLOH90IF.js",
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"serviceFirstDestination": [
|
||||
"assets/services-BLOH90IF.js",
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"requestRecords": [
|
||||
"assets/services-BLOH90IF.js",
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"Estado declarado do pedido": [
|
||||
"assets/services-BLOH90IF.js"
|
||||
],
|
||||
"Finalidade humanitária da resposta à emergência": [
|
||||
"assets/services-BLOH90IF.js"
|
||||
],
|
||||
"Cenário condicionado à isenção": [
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"Não é benefício concedido nem imposto aplicado": [
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"benefício não aplicado": [
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
],
|
||||
"periodScope": [
|
||||
"assets/services-BLOH90IF.js",
|
||||
"assets/project-dossier-CxrsH1SU.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-BoF97ys7.js",
|
||||
"status": 200,
|
||||
"sha256": "b6d5cc8bf80d7685e07a8f6e45a6be8fb807e1eab835a232ea81ed94d94dfe6b"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-BLOH90IF.js",
|
||||
"status": 200,
|
||||
"sha256": "7b7af53e69fe721c202fffea8d8f0d65208055c0feb12714176ac98e08856b22"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-CxrsH1SU.js",
|
||||
"status": 200,
|
||||
"sha256": "06c71040d59a29c756b9fc01af1f016fdd60809e1005b579f66b75f658f5d92c"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-DcIPS684.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633",
|
||||
"release": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/c1314cdf90c368b51489aaf04c2cdbe59cfb88e6-d4800fe2",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633",
|
||||
"release": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/c1314cdf90c368b51489aaf04c2cdbe59cfb88e6-d4800fe2",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"78c9f4a356d5eaf590d8d82168228a2f84b1f633"
|
||||
],
|
||||
"finished_at": "2026-10-24T18:47:30.671761+00:00"
|
||||
},
|
||||
"log_file": "1792867557366195987.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.88s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 335",
|
||||
"# pass 335",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 126463
|
||||
},
|
||||
"rollback_executed": false
|
||||
},
|
||||
"activation": "Normal Git fast-forward/webhook/installer; zero migrations/imports"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -102,6 +102,7 @@
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ throw new Error('Novas classificações de importação/serviços temporariamente suspensas; dados, histórico e relatórios preservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -0,0 +1,291 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "ebf5e53c3ccb29279a4c8433182a5e74231f2dae",
|
||||
"base_installed": "78c9f4a356d5eaf590d8d82168228a2f84b1f633",
|
||||
"coverage_complete_branches": {
|
||||
"AUD-SIM-L1-P056": [
|
||||
"authorized_investment_equipment"
|
||||
]
|
||||
},
|
||||
"branch_count_complete": 1,
|
||||
"treatment_count": 1,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "1b4fda4e7e363e68f951eca14a415a93d08b06aaa49b41e639b44fc5c9cee488"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "c6f36defc756eac0bb21f17e7165bb84efbbbfd120ea3be83787ffe368b7f1b1"
|
||||
}
|
||||
],
|
||||
"counts_before": {
|
||||
"delivered": 76,
|
||||
"QA": 1,
|
||||
"functional_pending": 55,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 77,
|
||||
"QA": 0,
|
||||
"functional_pending": 55,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 77,
|
||||
"QA": 0,
|
||||
"functional_pending": 55,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-g6g-qa-20261024.json"
|
||||
],
|
||||
"authorization": "Tempo explicitly deploy ebf5e53c through existing Git process,preserve concurrent changes and check installed delta only;retain explicit reference and scope of undertaking authorization",
|
||||
"scope": "P056 only;authorized_investment_equipment;reference/scope retained;no automatic authorization/classification or extension to other goods/operations/periods",
|
||||
"preservation": "76 prior closures and partial P084/P085 preserved;accepted QA proofs reused;fresh backup and real isolated restore before installation;installed delta only",
|
||||
"partial_P084_P085": "Already available for preparation/conditional simulation only,benefits pending;no closure in this release",
|
||||
"limits": "L1 open;P00105/06;beveragesL2/L3;import classification separate from serviceVAT/deduction/field11;Stats/AI deferred",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633",
|
||||
"release": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/c1314cdf90c368b51489aaf04c2cdbe59cfb88e6-d4800fe2",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f",
|
||||
"release_revision": {
|
||||
"commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T18:47:27.964235+00:00",
|
||||
"manifest_sha256": "a8c5303ce2443fefcf137681ead8f652e16963ae656612e80d1672da62e0a0a6"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6g-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "65ad784f31d74b6fd72b14ce3c0eed4a2c0fec8684a001f4b16a3a6df41a1553",
|
||||
"files_sha256": "b9651ae1046ae678a4ee644fb9d2214d06786cf696f54514d181397cfba4c993",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6g_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "65ad784f31d74b6fd72b14ce3c0eed4a2c0fec8684a001f4b16a3a6df41a1553",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "9b26217dec945fe07b665c6ad7638a965bf104a9",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "9b26217dec945fe07b665c6ad7638a965bf104a9",
|
||||
"release": "/var/www/investmoz-homologacao/releases/9b26217dec945fe07b665c6ad7638a965bf104a9-80907805",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 2,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "d11db709e3b3963031eb18b325b4af98"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "d0dc4caf464cee72f17f4f552d67a9db"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 47,
|
||||
"checksum": "9c8594dfe46a3b39841e7a6ae59d8603"
|
||||
},
|
||||
"after": {
|
||||
"rows": 48,
|
||||
"checksum": "e8689c96e52f48b860b9691fca1e26bb"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "9b26217dec945fe07b665c6ad7638a965bf104a9",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T19:13:31.576700+00:00",
|
||||
"manifest_sha256": "713be11fd1eee3f6ccc10f850260dbcc91e98577eb1e124b2fd0dacdaec9ecee"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-investment-equipment/1": [
|
||||
"assets/project-dossier-mBN4fiPg.js"
|
||||
],
|
||||
"authorized_investment_equipment": [
|
||||
"assets/project-dossier-mBN4fiPg.js",
|
||||
"assets/services-BgX_qq86.js"
|
||||
],
|
||||
"investmentEquipment": [
|
||||
"assets/project-dossier-mBN4fiPg.js"
|
||||
],
|
||||
"investmentClassK": [
|
||||
"assets/project-dossier-mBN4fiPg.js"
|
||||
],
|
||||
"investmentAuthorized": [
|
||||
"assets/project-dossier-mBN4fiPg.js"
|
||||
],
|
||||
"investmentDestination": [
|
||||
"assets/project-dossier-mBN4fiPg.js"
|
||||
],
|
||||
"investmentAuthorizationRef": [
|
||||
"assets/project-dossier-mBN4fiPg.js",
|
||||
"assets/services-BgX_qq86.js"
|
||||
],
|
||||
"investmentScope": [
|
||||
"assets/project-dossier-mBN4fiPg.js",
|
||||
"assets/services-BgX_qq86.js"
|
||||
],
|
||||
"Autorização do empreendimento / pressuposto expresso": [
|
||||
"assets/services-BgX_qq86.js"
|
||||
],
|
||||
"Âmbito aplicável: bens, operação, período e condições": [
|
||||
"assets/services-BgX_qq86.js"
|
||||
],
|
||||
"import-included-services/1": [
|
||||
"assets/project-dossier-mBN4fiPg.js"
|
||||
],
|
||||
"serviceVat": [
|
||||
"assets/project-dossier-mBN4fiPg.js"
|
||||
],
|
||||
"requestRecords": [
|
||||
"assets/project-dossier-mBN4fiPg.js",
|
||||
"assets/services-BgX_qq86.js"
|
||||
],
|
||||
"periodScope": [
|
||||
"assets/project-dossier-mBN4fiPg.js",
|
||||
"assets/services-BgX_qq86.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/project-dossier-document-vnzkb3wv.js",
|
||||
"status": 200,
|
||||
"sha256": "498ecb917a8311c4fcf33d189da278c00c762c70d8c1af6be4b6efe790a74f9a"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-mBN4fiPg.js",
|
||||
"status": 200,
|
||||
"sha256": "d1894eefa0d2ba2aea4009cf23269c170f58cbe5f3777fe38c0322810ba2f760"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-BgX_qq86.js",
|
||||
"status": 200,
|
||||
"sha256": "39e509d2ff536533b7fefd2c8c72c8513ccf749d70c00a2a128946e7bf687e87"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-RSjKR5kY.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "9b26217dec945fe07b665c6ad7638a965bf104a9",
|
||||
"release": "/var/www/investmoz-homologacao/releases/9b26217dec945fe07b665c6ad7638a965bf104a9-80907805",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "9b26217dec945fe07b665c6ad7638a965bf104a9",
|
||||
"release": "/var/www/investmoz-homologacao/releases/9b26217dec945fe07b665c6ad7638a965bf104a9-80907805",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"9b26217dec945fe07b665c6ad7638a965bf104a9"
|
||||
],
|
||||
"finished_at": "2026-10-24T19:13:34.256444+00:00"
|
||||
},
|
||||
"log_file": "1792869119217338760.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.80s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 338",
|
||||
"# pass 338",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 127481
|
||||
},
|
||||
"rollback_executed": false
|
||||
},
|
||||
"activation": "Normal Git fast-forward/webhook/installer;zero migrations/imports"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -102,6 +102,7 @@
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ if(book.rows.some(row=>row.treatment==='authorized_investment_equipment'))throw new Error('Novas classificações P056 temporariamente suspensas; dados, histórico, relatórios e restantes ramos preservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -0,0 +1,293 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "2359a88dba92147eb28769c7d9ae908cb2df7227",
|
||||
"base_installed": "9b26217dec945fe07b665c6ad7638a965bf104a9",
|
||||
"coverage_complete_branches": {
|
||||
"AUD-SIM-L1-P060": [
|
||||
"un_development_exemption",
|
||||
"un_development_reduction"
|
||||
]
|
||||
},
|
||||
"branch_count_complete": 1,
|
||||
"treatment_count": 2,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-import-exemptions.ts",
|
||||
"sha256_LF": "799e9a0020e805af9f67387bfa36608c4973f15c4427d1b82c3f6b6398aed129"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-import-exemptions.tsx",
|
||||
"sha256_LF": "89ab431fa6810c1f56897f203a817a41722c4a9df0cb075561dee6208e8730d1"
|
||||
}
|
||||
],
|
||||
"counts_before": {
|
||||
"delivered": 77,
|
||||
"QA": 1,
|
||||
"functional_pending": 54,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 78,
|
||||
"QA": 0,
|
||||
"functional_pending": 54,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 78,
|
||||
"QA": 0,
|
||||
"functional_pending": 54,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-g6h-qa-20261024.json"
|
||||
],
|
||||
"authorization": "Tempo explicitly deploy2359a88d by existingGit,preserve concurrentchanges and check installeddelta only;keep decision/list/plan/scope associated with result",
|
||||
"scope": "P060 only,two treatments un_development_exemption/un_development_reduction,samebranch;decision/list/plan/scope references in immutable calculation inputs/report;request not grant;no extension to other goods/operations/periods",
|
||||
"preservation": "77priorclosures and partialP084/P085 preserved;accepted QA reused;freshbackup/realisolatedrestore beforeinstallation;installeddelta only",
|
||||
"partial_P084_P085": "Already available for preparation/conditional simulation only,benefits pending;no closure in this release",
|
||||
"limits": "L1open;P00105/06;beveragesL2/L3;importclassification separate fromserviceVAT/deduction/field11;Stats/AIdeferred",
|
||||
"containment": "l1-g6h-readonly-rollback-20261024.patch,checked only,not applied;blocks newP060classification only,preserves readers/history and otherbranches",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "9b26217dec945fe07b665c6ad7638a965bf104a9",
|
||||
"release": "/var/www/investmoz-homologacao/releases/9b26217dec945fe07b665c6ad7638a965bf104a9-80907805",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/9b26217dec945fe07b665c6ad7638a965bf104a9-80907805",
|
||||
"release_revision": {
|
||||
"commit": "9b26217dec945fe07b665c6ad7638a965bf104a9",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T19:13:31.576700+00:00",
|
||||
"manifest_sha256": "713be11fd1eee3f6ccc10f850260dbcc91e98577eb1e124b2fd0dacdaec9ecee"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g6h-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "6f6e23986cf21dffca468eaa8ba8b1493150a8eec78a5de238a9fc25d028a5c6",
|
||||
"files_sha256": "6d7a2cdeede7f11edcb5f9a94935a1d79a50ce8b6f5bf86ef279db5ef25d086a",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g6h_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "6f6e23986cf21dffca468eaa8ba8b1493150a8eec78a5de238a9fc25d028a5c6",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "eb9294ef42c2cfc97eb8c2553d545e3bff7c0add",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "eb9294ef42c2cfc97eb8c2553d545e3bff7c0add",
|
||||
"release": "/var/www/investmoz-homologacao/releases/eb9294ef42c2cfc97eb8c2553d545e3bff7c0add-08cf86ab",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/9b26217dec945fe07b665c6ad7638a965bf104a9-80907805",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 2,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "38de6d88500d221365f198307f300e5d"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "4308332b7b4f3cfdbc90a7cf7bab2fc1"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 50,
|
||||
"checksum": "14fad68aad0bd514ab29e6644c64945c"
|
||||
},
|
||||
"after": {
|
||||
"rows": 51,
|
||||
"checksum": "73a64a88a6f9f973258112f3ba0be512"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "eb9294ef42c2cfc97eb8c2553d545e3bff7c0add",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T19:38:38.127391+00:00",
|
||||
"manifest_sha256": "b419662fb9f09f3f0b33902a8935a88a6b48399575219fe3d33cceb9153172ee"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"import-un-development/1": [
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"un_development_exemption": [
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"un_development_reduction": [
|
||||
"assets/services-DVetpVxR.js",
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"developmentProject": [
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"developmentAgency": [
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"developmentDecisionRef": [
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"developmentListRef": [
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"developmentPlanRef": [
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"developmentScope": [
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"developmentRightsRef": [
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"developmentReductionPercent": [
|
||||
"assets/services-DVetpVxR.js",
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"developmentNormalVat": [
|
||||
"assets/services-DVetpVxR.js",
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"developmentNormalVatRef": [
|
||||
"assets/services-DVetpVxR.js",
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
],
|
||||
"Redução proporcional": [
|
||||
"assets/project-dossier-DkFpKnTK.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-DVetpVxR.js",
|
||||
"status": 200,
|
||||
"sha256": "f7223ac486557504b96f3edec95c5a7f31d90e73c1f714108cf05177f0806eaf"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-DkFpKnTK.js",
|
||||
"status": 200,
|
||||
"sha256": "d362c8cb613b564d9597ac40ddc9883a1c97b08a11f15c9103a5fbe105cdeb00"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-DVHvkUfS.js",
|
||||
"status": 200,
|
||||
"sha256": "a77d217dd0e77b7193d9707f01aa9df31ce4dfe3a16d0e6cf644f8cc811dfef3"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-DD5AMs0u.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "eb9294ef42c2cfc97eb8c2553d545e3bff7c0add",
|
||||
"release": "/var/www/investmoz-homologacao/releases/eb9294ef42c2cfc97eb8c2553d545e3bff7c0add-08cf86ab",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/9b26217dec945fe07b665c6ad7638a965bf104a9-80907805",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "eb9294ef42c2cfc97eb8c2553d545e3bff7c0add",
|
||||
"release": "/var/www/investmoz-homologacao/releases/eb9294ef42c2cfc97eb8c2553d545e3bff7c0add-08cf86ab",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/9b26217dec945fe07b665c6ad7638a965bf104a9-80907805",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"eb9294ef42c2cfc97eb8c2553d545e3bff7c0add"
|
||||
],
|
||||
"finished_at": "2026-10-24T19:38:40.794974+00:00"
|
||||
},
|
||||
"log_file": "1792870624830982809.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.99s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 342",
|
||||
"# pass 342",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 128657
|
||||
},
|
||||
"rollback_executed": false
|
||||
},
|
||||
"result_associations": "Decision,list,plan and scope remain in immutable result.inputs and report;accepted QA proof reused and exact installed runtime hashes/compiled fields checked;no synthetic write in active",
|
||||
"activation": "Normal Git fast-forward/webhook/installer;zero migrations/imports"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-import-exemptions.ts
|
||||
+++ b/resources/js/lib/iva-import-exemptions.ts
|
||||
@@ -102,6 +102,7 @@
|
||||
}
|
||||
export function importExemptionCurrent(draft:Record<string,unknown>,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordImportExemptions(draft:Record<string,unknown>,book:ImportExemptionBook):ImportExemptionBook {
|
||||
+ if(book.rows.some(row=>isDevelopmentImport(row.treatment)))throw new Error('Novas classificações P060 temporariamente suspensas; dados, histórico, relatórios e restantes ramos preservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.');
|
||||
const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))};
|
||||
return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};
|
||||
@@ -0,0 +1,301 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "20bfeb4f71743fd7316b252c027a88d0c67d5eae",
|
||||
"base_installed": "eb9294ef42c2cfc97eb8c2553d545e3bff7c0add",
|
||||
"coverage_complete_branches": {
|
||||
"AUD-SIM-L1-P090": [
|
||||
"public_authority_indemnity",
|
||||
"public_authority_compensation"
|
||||
]
|
||||
},
|
||||
"branch_count_complete": 1,
|
||||
"treatment_count": 2,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-public-authority-base.ts",
|
||||
"sha256_LF": "667704ba8c2d26421993f5e7e2c6599afb2912e052b27a96e423cb8d01a21d85"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-public-authority-base.tsx",
|
||||
"sha256_LF": "7aa05785fdb6fcb7de4c0345e9c09073ebdbb3a8b39f1bd2610da08abc8c8a89"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "db5b4431351766f8f86b4e60195381dab17c077ca3db72de48f2fb7e0f2a320b"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "60a9dd9f4eed5884b16c7097906bc438958b3b1407976e10f4699d35c1c68b19"
|
||||
}
|
||||
],
|
||||
"counts_before": {
|
||||
"delivered": 78,
|
||||
"QA": 1,
|
||||
"functional_pending": 53,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 79,
|
||||
"QA": 0,
|
||||
"functional_pending": 53,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 79,
|
||||
"QA": 0,
|
||||
"functional_pending": 53,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-g7a-qa-20261024.json"
|
||||
],
|
||||
"authorization": "Tempo explicitly deploy20bfeb4f through existingGit,preserve concurrentchanges and check installeddelta only;two treatments sameP090branch,base remains separate fromVAT",
|
||||
"scope": "P090only,public_authority_indemnity/public_authority_compensation;net monetary/nonmonetary normalvalue components,act/document/composition/valuationreferences in immutable result.inputs/report;vat/rate alwaysnull,no incidence/tax/deduction/field11/ModeloAtotals inferred",
|
||||
"preservation": "78priorclosures and partialP084/P085 preserved;acceptedQA reused;freshbackup/realisolatedrestore beforeinstallation;installeddelta only;P060decision/list/plan/scope andproportionalresults,P056authorization,P050serviceVAT preserved",
|
||||
"partial_P084_P085": "Already available for preparation/conditional simulation only,benefits pending;no closure in this release",
|
||||
"limits": "L1open;P00105/06;beveragesL2/L3;Statistics/AIdeferred;L1closuredoesnotrequireL2/L3/alltaxes",
|
||||
"containment": "l1-g7a-readonly-rollback-20261024.patch,checked only,not applied;blocks newP090calculations only,preserves readers/history andotherbranches",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "eb9294ef42c2cfc97eb8c2553d545e3bff7c0add",
|
||||
"release": "/var/www/investmoz-homologacao/releases/eb9294ef42c2cfc97eb8c2553d545e3bff7c0add-08cf86ab",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/9b26217dec945fe07b665c6ad7638a965bf104a9-80907805",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/eb9294ef42c2cfc97eb8c2553d545e3bff7c0add-08cf86ab",
|
||||
"release_revision": {
|
||||
"commit": "eb9294ef42c2cfc97eb8c2553d545e3bff7c0add",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T19:38:38.127391+00:00",
|
||||
"manifest_sha256": "b419662fb9f09f3f0b33902a8935a88a6b48399575219fe3d33cceb9153172ee"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g7a-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "30a6764b68526e358a4f9bc64bb8dd65df25af1b379878e9619105d1d871e408",
|
||||
"files_sha256": "67134f77514350569cd1a4a70357f73258b6fa65bb3f6fe7655ec5cd02939ef2",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g7a_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "30a6764b68526e358a4f9bc64bb8dd65df25af1b379878e9619105d1d871e408",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "4193056bdd69b48cf61c25a9a7404af4f0957f3c",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "4193056bdd69b48cf61c25a9a7404af4f0957f3c",
|
||||
"release": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/eb9294ef42c2cfc97eb8c2553d545e3bff7c0add-08cf86ab",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 4,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "40ba57126813e2e26a9537cdb5bb2b0f"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "485a22e1bc7e58bab4ed4ef208beeec1"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 53,
|
||||
"checksum": "0fb62d0e0b2d9b74347692321c4bcde2"
|
||||
},
|
||||
"after": {
|
||||
"rows": 54,
|
||||
"checksum": "ffa2cba2908b07293dd03efab77ed755"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "4193056bdd69b48cf61c25a9a7404af4f0957f3c",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T19:52:03.661019+00:00",
|
||||
"manifest_sha256": "7c9c5a728ad2afa1157a4a74a013dce1538a915f080d74790052655030582884"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"public-authority-base/1": [
|
||||
"assets/project-dossier-r9kw2IAG.js"
|
||||
],
|
||||
"public_authority_indemnity": [
|
||||
"assets/project-dossier-r9kw2IAG.js"
|
||||
],
|
||||
"public_authority_compensation": [
|
||||
"assets/project-dossier-r9kw2IAG.js"
|
||||
],
|
||||
"publicAuthorityBases": [
|
||||
"assets/project-dossier-r9kw2IAG.js"
|
||||
],
|
||||
"taxableDomesticSupply": [
|
||||
"assets/project-dossier-r9kw2IAG.js"
|
||||
],
|
||||
"authorityAct": [
|
||||
"assets/project-dossier-r9kw2IAG.js"
|
||||
],
|
||||
"notJudicialContractBreach": [
|
||||
"assets/project-dossier-r9kw2IAG.js"
|
||||
],
|
||||
"netComposition": [
|
||||
"assets/project-dossier-r9kw2IAG.js"
|
||||
],
|
||||
"moneyAmount": [
|
||||
"assets/project-dossier-r9kw2IAG.js",
|
||||
"assets/services-CKl5s1KP.js"
|
||||
],
|
||||
"nonMoneyValue": [
|
||||
"assets/project-dossier-r9kw2IAG.js",
|
||||
"assets/services-CKl5s1KP.js"
|
||||
],
|
||||
"valuationRef": [
|
||||
"assets/project-dossier-r9kw2IAG.js",
|
||||
"assets/services-CKl5s1KP.js"
|
||||
],
|
||||
"compositionRef": [
|
||||
"assets/project-dossier-r9kw2IAG.js",
|
||||
"assets/services-CKl5s1KP.js"
|
||||
],
|
||||
"Base tributável — actos de autoridades públicas": [
|
||||
"assets/services-CKl5s1KP.js"
|
||||
],
|
||||
"IVA: Indeterminado": [
|
||||
"assets/project-dossier-r9kw2IAG.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/project-dossier-r9kw2IAG.js",
|
||||
"status": 200,
|
||||
"sha256": "be5f9cf4bd33b0ea403aad708c597d2d4a2845c0c6c7f88912d01e9c47a64437"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-CKl5s1KP.js",
|
||||
"status": 200,
|
||||
"sha256": "1d2cf9df2ff58b80736ace80919fa6babfabd4c27b3682837efdc3f356806cc8"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-Bp8qUQYk.js",
|
||||
"status": 200,
|
||||
"sha256": "b1cb8610d59242f4ba93b2b8daee39117e84581b398eebb0f94f8ac816d54fa2"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-C6BeHYgp.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "4193056bdd69b48cf61c25a9a7404af4f0957f3c",
|
||||
"release": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/eb9294ef42c2cfc97eb8c2553d545e3bff7c0add-08cf86ab",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "4193056bdd69b48cf61c25a9a7404af4f0957f3c",
|
||||
"release": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/eb9294ef42c2cfc97eb8c2553d545e3bff7c0add-08cf86ab",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"4193056bdd69b48cf61c25a9a7404af4f0957f3c"
|
||||
],
|
||||
"finished_at": "2026-10-24T19:52:06.346782+00:00"
|
||||
},
|
||||
"log_file": "1792871430237468068.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.18s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 346",
|
||||
"# pass 346",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 129865
|
||||
},
|
||||
"rollback_executed": false
|
||||
},
|
||||
"base_VAT_separation": "Accepted QA proofs reused:baseAmount independent from vat/rate(alwaysnull),references/inputs/version/history/report preserved. Exact four installed runtime hashes and compiled component/ledger/report markers checked;no synthetic write or repeated acceptance tests in active.",
|
||||
"activation": "Normal Git fast-forward/webhook/installer;zero migrations/imports"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-public-authority-base.ts
|
||||
+++ b/resources/js/lib/iva-public-authority-base.ts
|
||||
@@ -60,6 +60,7 @@
|
||||
function formLabel(value:string):string{return value==='money'?'Em dinheiro':value==='non_money'?'Em espécie':value==='mixed'?'Mista — dinheiro e espécie':'Por indicar';}
|
||||
export function publicBaseCurrent(draft:Record<string,unknown>,book:PublicBaseBook):boolean{return!!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordPublicBases(draft:Record<string,unknown>,book:PublicBaseBook):PublicBaseBook{
|
||||
+ throw new Error('Novas bases P090 temporariamente suspensas; dados, histórico, relatórios e restantes ramos preservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(row=>row.id)).size!==book.rows.length)throw new Error('Indique operações com identificadores distintos; originais conservados.');
|
||||
const result:PublicBaseCalculation={version:publicBaseVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:publicBaseSource,inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluatePublicBase(row,draft.currency))};
|
||||
const next={...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};savePublicBaseBook(draft,next);return next;
|
||||
@@ -0,0 +1,302 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "9bd2e062f427155a9877abc14876183ff4b7d9e0",
|
||||
"base_installed": "4193056bdd69b48cf61c25a9a7404af4f0957f3c",
|
||||
"coverage_complete_branches": {
|
||||
"AUD-SIM-L1-P091": [
|
||||
"commission_sale_transfer",
|
||||
"commission_purchase_transfer"
|
||||
]
|
||||
},
|
||||
"branch_count_complete": 1,
|
||||
"treatment_count": 2,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-commission-base.ts",
|
||||
"sha256_LF": "3be1331f4da40e6292fa7f5dcfba28355af6d931a7d24f44eb081c6f16c8efb2"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-commission-base.tsx",
|
||||
"sha256_LF": "5bfbb95d2dd22106d7d416fd3af0f7ae0778f22ae9d23da15ba9dd45882cfc94"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "16c95f5eaf5d5a308c93b30523292e52ccafed9d4e7f897f8559459116fbf4ae"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "945a9e2a4a9aa6a26f7108f95d4fd237c0551dbf884cec41bcaa3eba592acc4a"
|
||||
}
|
||||
],
|
||||
"counts_before": {
|
||||
"delivered": 79,
|
||||
"QA": 1,
|
||||
"functional_pending": 52,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 80,
|
||||
"QA": 0,
|
||||
"functional_pending": 52,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 80,
|
||||
"QA": 0,
|
||||
"functional_pending": 52,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-g7b-qa-20261024.json"
|
||||
],
|
||||
"authorization": "Tempo explicitly deploy9bd2e062 through existingGit,preserve concurrentchanges and check installeddelta only;two treatments sameP091branch,base remains separate fromVAT",
|
||||
"scope": "P091only,commission_sale_transfer/commission_purchase_transfer;saleprice-minuscommission/purchaseprice-pluscommission,principal/agent/contract/price/commission/compositionreferences in immutable result.inputs/report;vat/rate alwaysnull,no incidence/tax/deduction/field11/ModeloAtotals inferred",
|
||||
"preservation": "79priorclosures and partialP084/P085 preserved;acceptedQA reused;freshbackup/realisolatedrestore beforeinstallation;installeddelta only;P060decision/list/plan/scope andproportionalresults,P056authorization,P050serviceVAT preserved",
|
||||
"partial_P084_P085": "Already available for preparation/conditional simulation only,benefits pending;no closure in this release",
|
||||
"limits": "L1open;P00105/06;beveragesL2/L3;Statistics/AIdeferred;L1closuredoesnotrequireL2/L3/alltaxes",
|
||||
"containment": "l1-g7b-readonly-rollback-20261024.patch,checked only,not applied;blocks newP091calculations only,preserves readers/history andotherbranches",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "4193056bdd69b48cf61c25a9a7404af4f0957f3c",
|
||||
"release": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/eb9294ef42c2cfc97eb8c2553d545e3bff7c0add-08cf86ab",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39",
|
||||
"release_revision": {
|
||||
"commit": "4193056bdd69b48cf61c25a9a7404af4f0957f3c",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T19:52:03.661019+00:00",
|
||||
"manifest_sha256": "7c9c5a728ad2afa1157a4a74a013dce1538a915f080d74790052655030582884"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g7b-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "14910f7a6372948985ca3e0d6deddca5e079e015c7554cdb46d4a150c4b0a204",
|
||||
"files_sha256": "09e56a62d74f60773bb9da0da520ddafa790f39489a2f8335ebb9d949ae0445a",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g7b_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "14910f7a6372948985ca3e0d6deddca5e079e015c7554cdb46d4a150c4b0a204",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e62b7dfdc25f7c12425e89cea26f7ccf67b7d177-c1e20222",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 4,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "828efdd2e464a169de683e0bc582767b"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "3d23e6ba4ed2476e65e0bf3687da774e"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 56,
|
||||
"checksum": "28841e1b889560d2d78d41b0464e83e4"
|
||||
},
|
||||
"after": {
|
||||
"rows": 57,
|
||||
"checksum": "2a2fd7e26ccced1b89fdd0d497b3036b"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T20:15:27.726611+00:00",
|
||||
"manifest_sha256": "dccf1e8a2fabf42a877cac166b5821548af5a6e6cfbf2c8578afebb70468c531"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"commission-goods-base/1": [
|
||||
"assets/project-dossier-C03JDnMc.js"
|
||||
],
|
||||
"commission_sale_transfer": [
|
||||
"assets/project-dossier-C03JDnMc.js"
|
||||
],
|
||||
"commission_purchase_transfer": [
|
||||
"assets/project-dossier-C03JDnMc.js"
|
||||
],
|
||||
"commissionBases": [
|
||||
"assets/project-dossier-C03JDnMc.js"
|
||||
],
|
||||
"taxableDomesticGoods": [
|
||||
"assets/project-dossier-C03JDnMc.js"
|
||||
],
|
||||
"commissionContract": [
|
||||
"assets/project-dossier-C03JDnMc.js"
|
||||
],
|
||||
"directionConfirmed": [
|
||||
"assets/project-dossier-C03JDnMc.js"
|
||||
],
|
||||
"notSpecialAuction": [
|
||||
"assets/project-dossier-C03JDnMc.js"
|
||||
],
|
||||
"agreedPrice": [
|
||||
"assets/project-dossier-C03JDnMc.js",
|
||||
"assets/services-BQD7ago3.js"
|
||||
],
|
||||
"commissionAmount": [
|
||||
"assets/project-dossier-C03JDnMc.js",
|
||||
"assets/services-BQD7ago3.js"
|
||||
],
|
||||
"agreementRef": [
|
||||
"assets/project-dossier-C03JDnMc.js",
|
||||
"assets/services-BQD7ago3.js"
|
||||
],
|
||||
"priceRef": [
|
||||
"assets/project-dossier-C03JDnMc.js",
|
||||
"assets/services-BQD7ago3.js"
|
||||
],
|
||||
"commissionRef": [
|
||||
"assets/project-dossier-C03JDnMc.js",
|
||||
"assets/services-BQD7ago3.js"
|
||||
],
|
||||
"IVA: Indeterminado": [
|
||||
"assets/project-dossier-C03JDnMc.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-C03JDnMc.js",
|
||||
"status": 200,
|
||||
"sha256": "6afe3105603d2d99eb6c1f10ac0478425ac7edbea306ead42900e8d7752526da"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-BQD7ago3.js",
|
||||
"status": 200,
|
||||
"sha256": "dba6c2c3a511902395f1798e5b03083e4413a5aaa530e3e408e716edd614af93"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-B6GsDYYK.js",
|
||||
"status": 200,
|
||||
"sha256": "083e27ff6b3262e988de1dfcf8ea7f90bf5ea5f06b9a36afeb1cde1bff36e4b8"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-BAqBGTCO.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e62b7dfdc25f7c12425e89cea26f7ccf67b7d177-c1e20222",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e62b7dfdc25f7c12425e89cea26f7ccf67b7d177-c1e20222",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"e62b7dfdc25f7c12425e89cea26f7ccf67b7d177"
|
||||
],
|
||||
"finished_at": "2026-10-24T20:15:30.463596+00:00"
|
||||
},
|
||||
"log_file": "1792872831592310207.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.87s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 350",
|
||||
"# pass 350",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 131096
|
||||
},
|
||||
"rollback_executed": false
|
||||
},
|
||||
"base_VAT_separation": "Accepted QA reused:saleprice minuscommission/purchaseprice pluscommission,baseAmount independentfromvat/rate(alwaysnull),immutable references/inputs/version/history/report retained. Exact four installed runtime hashes and compiled ledger/component/report markers verified;no synthetic activewrite.",
|
||||
"activation": "Normal Git fast-forward/webhook/installer;zero migrations/imports"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-commission-base.ts
|
||||
+++ b/resources/js/lib/iva-commission-base.ts
|
||||
@@ -51,6 +51,7 @@
|
||||
function key(draft:Record<string,unknown>,book:CommissionBaseBook):string{return JSON.stringify({version:commissionBaseVersion,scope:acquisitionScope(draft),location:draft.selection_labels??{},currency:draft.currency,rows:book.rows});}
|
||||
export function commissionBaseCurrent(draft:Record<string,unknown>,book:CommissionBaseBook):boolean{return!!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordCommissionBases(draft:Record<string,unknown>,book:CommissionBaseBook):CommissionBaseBook{
|
||||
+ throw new Error('Novas bases P091 temporariamente suspensas; dados, histórico, relatórios e restantes ramos preservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(row=>row.id)).size!==book.rows.length)throw new Error('Indique operações com identificadores distintos;originais conservados.');
|
||||
const result:CommissionBaseCalculation={version:commissionBaseVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:commissionBaseSource,inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateCommissionBase(row,draft.currency))};
|
||||
const next={...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};saveCommissionBaseBook(draft,next);return next;
|
||||
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore",
|
||||
"candidate": "287f2f8321038dc72ff8f0746526df0761a871d6",
|
||||
"base_installed": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177",
|
||||
"coverage_complete_branches": {
|
||||
"AUD-SIM-L1-P094": [
|
||||
"act_sale_amount",
|
||||
"act_normal_value"
|
||||
]
|
||||
},
|
||||
"branch_count_complete": 1,
|
||||
"treatment_count": 2,
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-act-sale-base.ts",
|
||||
"sha256_LF": "ed555c826427a0964995144c59d4e801bfeebce5219a63a612f31bb977788d00"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-act-sale-base.tsx",
|
||||
"sha256_LF": "384e17aa18ed5ed9a8c6c47773577e87f211c2bccb3acbe3943269a08de1485a"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "3b2a24fde6db625c350f7366ec789b5aa7e86aa08645409203b5e96d02dc1ff3"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "852ceaf59b95d92ff57d3b711dc2bc13eb4b547e7d9f1516eb543ece83247c09"
|
||||
}
|
||||
],
|
||||
"counts_before": {
|
||||
"delivered": 80,
|
||||
"QA": 1,
|
||||
"functional_pending": 51,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_current": {
|
||||
"delivered": 80,
|
||||
"QA": 1,
|
||||
"functional_pending": 51,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 81,
|
||||
"QA": 0,
|
||||
"functional_pending": 51,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA_proofs_reused": [
|
||||
"iva-l1-g7c-qa-20261024.json"
|
||||
],
|
||||
"authorization": "Tempo explicitly deploy287f2f83 through existingGit,preserve concurrentchanges and check installeddelta only;two treatments sameP094branch",
|
||||
"scope": "2026/MZN,P094baseonly;normal value supplied with identified basis/scope,not appraised automatically. No incidence,rate,VAT,deduction/field11/ModeloAtotals or substitution of special auctioncommission15g. Unknown values remain indeterminate,explicit zero distinguished.",
|
||||
"meaning": "Goods transferred as result of auction,judicial/administrative sale,conciliation or settlement;value at which auction/sale effected or,where applicable,normal value. Five act kinds are contexts,not five branches. No automatic lower value or normal-value fallback.",
|
||||
"preservation": "80priorclosures and partialP084/P085 preserved;acceptedQA reused;freshbackup/realisolatedrestore beforeinstallation;installeddelta only",
|
||||
"partial_P084_P085": "Preparation/conditional simulation only,benefits pending;no closure",
|
||||
"limits": "P084/P085partial,pending;P00105/06;L1open;beveragesL2/L3;Statistics/AIdeferred",
|
||||
"containment": "l1-g7c-readonly-rollback-20261024.patch,checked only,not applied;blocks newP094calculations only,preserves readers/history/otherbranches",
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177",
|
||||
"release": "/var/www/investmoz-homologacao/releases/e62b7dfdc25f7c12425e89cea26f7ccf67b7d177-c1e20222",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/e62b7dfdc25f7c12425e89cea26f7ccf67b7d177-c1e20222",
|
||||
"release_revision": {
|
||||
"commit": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T20:15:27.726611+00:00",
|
||||
"manifest_sha256": "dccf1e8a2fabf42a877cac166b5821548af5a6e6cfbf2c8578afebb70468c531"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g7c-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "15851ca2ed235382c8acb325b154470e191d95c10d5c2dac8fa9be287132d024",
|
||||
"files_sha256": "af9076b5993550acd8aa55ac85a1112822f6db26f744247cfcc76d6f03ee7925",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g7c_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "15851ca2ed235382c8acb325b154470e191d95c10d5c2dac8fa9be287132d024",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/resources/js/lib/iva-act-sale-base.ts
|
||||
+++ b/resources/js/lib/iva-act-sale-base.ts
|
||||
@@ -47,6 +47,7 @@
|
||||
function key(draft:Record<string,unknown>,book:ActSaleBook):string{return JSON.stringify({version:actSaleBaseVersion,scope:acquisitionScope(draft),location:draft.selection_labels??{},currency:draft.currency,rows:book.rows});}
|
||||
export function actSaleCurrent(draft:Record<string,unknown>,book:ActSaleBook):boolean{return!!book.result&&book.result.sourceKey===key(draft,book);}
|
||||
export function recordActSaleBases(draft:Record<string,unknown>,book:ActSaleBook):ActSaleBook{
|
||||
+ throw new Error('Novas bases P094 temporariamente suspensas; dados, histórico, relatórios e restantes ramos preservados.');
|
||||
if(!book.rows.length||new Set(book.rows.map(row=>row.id)).size!==book.rows.length)throw new Error('Indique operações com identificadores distintos;originais conservados.');
|
||||
const result:ActSaleCalculation={version:actSaleBaseVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:actSaleBaseSource,inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateActSale(row,draft.currency))};
|
||||
const next={...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};saveActSaleBook(draft,next);return next;
|
||||
@@ -0,0 +1,512 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "4a35d63cd3535195e4e2a37740b2f52813ff1da9",
|
||||
"base_remote_main": "1655f57e698fef4099c2886069a79cd1c920f792",
|
||||
"fetch": "completed;noforce;localmainnotused",
|
||||
"bundle": {
|
||||
"path": "outputs\\iva-l1-g2-social-20261024\\l1-joint-4a35d63c.bundle",
|
||||
"candidate": "4a35d63cd3535195e4e2a37740b2f52813ff1da9",
|
||||
"base": "1655f57e698fef4099c2886069a79cd1c920f792",
|
||||
"sha256": "7e23cabda77c8e7b117091a08613436f02c32a9d23d023d4d030c9041eb43146",
|
||||
"bytes": 166937,
|
||||
"verified": true,
|
||||
"content": "FunctionalQAcommit4a35d63c+historyfromorigin/main;receiptmetadatafinalizedseparately;noactivepush"
|
||||
},
|
||||
"coverage": {
|
||||
"initial_QA": "544068e8/d89912e5:10conditionaltreatments",
|
||||
"rational_QA": "689e7cbe/8719e916;exactincluded5%andreaders",
|
||||
"G1": "5030116e/89ab2883:4branches/4treatments",
|
||||
"G2A": "675cf38f/0e644b55:5branches/5treatments",
|
||||
"G2B": {
|
||||
"AUD-SIM-L1-P009": [
|
||||
"social_assistance_public",
|
||||
"social_assistance_nonprofit"
|
||||
],
|
||||
"AUD-SIM-L1-P011": [
|
||||
"social_care_public",
|
||||
"social_care_nonprofit"
|
||||
],
|
||||
"AUD-SIM-L1-P012": [
|
||||
"activity_facilities_public",
|
||||
"activity_facilities_nonprofit"
|
||||
]
|
||||
},
|
||||
"conditional_treatments_total": 25,
|
||||
"indeterminate_options": 2,
|
||||
"QA_covered_inventory_IDs": [
|
||||
"AUD-SIM-L1-P003",
|
||||
"AUD-SIM-L1-P004",
|
||||
"AUD-SIM-L1-P005",
|
||||
"AUD-SIM-L1-P006",
|
||||
"AUD-SIM-L1-P007",
|
||||
"AUD-SIM-L1-P009",
|
||||
"AUD-SIM-L1-P011",
|
||||
"AUD-SIM-L1-P012",
|
||||
"AUD-SIM-L1-P017",
|
||||
"AUD-SIM-L1-P018",
|
||||
"AUD-SIM-L1-P029",
|
||||
"AUD-SIM-L1-P030"
|
||||
],
|
||||
"pending_functional_IDs": [
|
||||
"AUD-SIM-L1-P002",
|
||||
"AUD-SIM-L1-P008",
|
||||
"AUD-SIM-L1-P010",
|
||||
"AUD-SIM-L1-P013",
|
||||
"AUD-SIM-L1-P014",
|
||||
"AUD-SIM-L1-P015",
|
||||
"AUD-SIM-L1-P016",
|
||||
"AUD-SIM-L1-P019",
|
||||
"AUD-SIM-L1-P020",
|
||||
"AUD-SIM-L1-P021",
|
||||
"AUD-SIM-L1-P022",
|
||||
"AUD-SIM-L1-P023",
|
||||
"AUD-SIM-L1-P024",
|
||||
"AUD-SIM-L1-P025",
|
||||
"AUD-SIM-L1-P026",
|
||||
"AUD-SIM-L1-P027",
|
||||
"AUD-SIM-L1-P028",
|
||||
"AUD-SIM-L1-P031",
|
||||
"AUD-SIM-L1-P032",
|
||||
"AUD-SIM-L1-P033",
|
||||
"AUD-SIM-L1-P034",
|
||||
"AUD-SIM-L1-P035",
|
||||
"AUD-SIM-L1-P036",
|
||||
"AUD-SIM-L1-P037",
|
||||
"AUD-SIM-L1-P038",
|
||||
"AUD-SIM-L1-P039",
|
||||
"AUD-SIM-L1-P040",
|
||||
"AUD-SIM-L1-P041",
|
||||
"AUD-SIM-L1-P042",
|
||||
"AUD-SIM-L1-P043",
|
||||
"AUD-SIM-L1-P044",
|
||||
"AUD-SIM-L1-P045",
|
||||
"AUD-SIM-L1-P046",
|
||||
"AUD-SIM-L1-P047",
|
||||
"AUD-SIM-L1-P048",
|
||||
"AUD-SIM-L1-P049",
|
||||
"AUD-SIM-L1-P050",
|
||||
"AUD-SIM-L1-P051",
|
||||
"AUD-SIM-L1-P052",
|
||||
"AUD-SIM-L1-P053",
|
||||
"AUD-SIM-L1-P054",
|
||||
"AUD-SIM-L1-P055",
|
||||
"AUD-SIM-L1-P056",
|
||||
"AUD-SIM-L1-P057",
|
||||
"AUD-SIM-L1-P058",
|
||||
"AUD-SIM-L1-P059",
|
||||
"AUD-SIM-L1-P060",
|
||||
"AUD-SIM-L1-P061",
|
||||
"AUD-SIM-L1-P062",
|
||||
"AUD-SIM-L1-P063",
|
||||
"AUD-SIM-L1-P064",
|
||||
"AUD-SIM-L1-P065",
|
||||
"AUD-SIM-L1-P066",
|
||||
"AUD-SIM-L1-P067",
|
||||
"AUD-SIM-L1-P068",
|
||||
"AUD-SIM-L1-P069",
|
||||
"AUD-SIM-L1-P070",
|
||||
"AUD-SIM-L1-P071",
|
||||
"AUD-SIM-L1-P072",
|
||||
"AUD-SIM-L1-P073",
|
||||
"AUD-SIM-L1-P074",
|
||||
"AUD-SIM-L1-P075",
|
||||
"AUD-SIM-L1-P076",
|
||||
"AUD-SIM-L1-P077",
|
||||
"AUD-SIM-L1-P078",
|
||||
"AUD-SIM-L1-P079",
|
||||
"AUD-SIM-L1-P080",
|
||||
"AUD-SIM-L1-P081",
|
||||
"AUD-SIM-L1-P082",
|
||||
"AUD-SIM-L1-P083",
|
||||
"AUD-SIM-L1-P084",
|
||||
"AUD-SIM-L1-P085",
|
||||
"AUD-SIM-L1-P086",
|
||||
"AUD-SIM-L1-P087",
|
||||
"AUD-SIM-L1-P088",
|
||||
"AUD-SIM-L1-P089",
|
||||
"AUD-SIM-L1-P090",
|
||||
"AUD-SIM-L1-P091",
|
||||
"AUD-SIM-L1-P092",
|
||||
"AUD-SIM-L1-P093",
|
||||
"AUD-SIM-L1-P094",
|
||||
"AUD-SIM-L1-P095",
|
||||
"AUD-SIM-L1-P096",
|
||||
"AUD-SIM-L1-P097",
|
||||
"AUD-SIM-L1-P098",
|
||||
"AUD-SIM-L1-P099",
|
||||
"AUD-SIM-L1-P100",
|
||||
"AUD-SIM-L1-P101",
|
||||
"AUD-SIM-L1-P102",
|
||||
"AUD-SIM-L1-P103",
|
||||
"AUD-SIM-L1-P104",
|
||||
"AUD-SIM-L1-P105",
|
||||
"AUD-SIM-L1-P106",
|
||||
"AUD-SIM-L1-P107",
|
||||
"AUD-SIM-L1-P108",
|
||||
"AUD-SIM-L1-P109",
|
||||
"AUD-SIM-L1-P110",
|
||||
"AUD-SIM-L1-P111",
|
||||
"AUD-SIM-L1-P112",
|
||||
"AUD-SIM-L1-P113",
|
||||
"AUD-SIM-L1-P114",
|
||||
"AUD-SIM-L1-P115",
|
||||
"AUD-SIM-L1-P116",
|
||||
"AUD-SIM-L1-P117",
|
||||
"AUD-SIM-L1-P118",
|
||||
"AUD-SIM-L1-P119",
|
||||
"AUD-SIM-L1-P120",
|
||||
"AUD-SIM-L1-P121",
|
||||
"AUD-SIM-L1-P122",
|
||||
"AUD-SIM-L1-P123",
|
||||
"AUD-SIM-L1-P124",
|
||||
"AUD-SIM-L1-P125",
|
||||
"AUD-SIM-L1-P126",
|
||||
"AUD-SIM-L1-P127",
|
||||
"AUD-SIM-L1-P128",
|
||||
"AUD-SIM-L1-P129",
|
||||
"AUD-SIM-L1-P130",
|
||||
"AUD-SIM-L1-P131",
|
||||
"AUD-SIM-L1-P132",
|
||||
"AUD-SIM-L1-P133"
|
||||
],
|
||||
"pending_documentary_IDs": [
|
||||
"AUD-SIM-L1-P001"
|
||||
]
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/components/simulation-monthly-iva.tsx",
|
||||
"sha256_LF": "27e9f7b0a6cd011d6278d5bf507c8df0a290432006d795e9f7bf03b05fc6b350"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/components/simulation-operations.tsx",
|
||||
"sha256_LF": "ae8fafbff339c4b52bae11ad479caf0fb451e5543e59bfbf15becf9aab4c5d27"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/fiscal-rational.ts",
|
||||
"sha256_LF": "91234efa465a8660f71a56e48d280a602c56ecf2ccce9cf7a8d91db513a3ffd3"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-acquisitions.ts",
|
||||
"sha256_LF": "846dbd2d2dbdd54ffcddae8623eeaa2ae4f7686c6e2db05590ffa893d3ffbfb0"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "fb41bf3d6cf14ee65bf242f5a2504f9d4758c8d87bb4c4e9eda4822f74aa4d7f"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/project-dossier.ts",
|
||||
"sha256_LF": "5a6ea8a8c7261fa1d24cca56e92617cd66f72bd027dbafec22d051e686e927d7"
|
||||
}
|
||||
],
|
||||
"schema_routes_permissions_dependencies_changed": false,
|
||||
"database_imports_migrations_seeds": [],
|
||||
"server_fiscal_rule_activation": false,
|
||||
"activation": {
|
||||
"method": "ExistingGitFF/merge+build+webhook;no new mandatory flag",
|
||||
"preflight": [
|
||||
"Re-fetchorigin/main;reconcileconcurrentchangeswithoutforce",
|
||||
"Confirmactualservedrevisionandvalidbackup/restoreresultthroughauthenticatedexistingprocess",
|
||||
"Usecompiledassets;excludeoutputs/syntheticdata/publichot/secrets",
|
||||
"No globalmigration,seed,taxpublication or datareplacement"
|
||||
],
|
||||
"installed_delta_only": [
|
||||
"servedrevisionandmanifesthash",
|
||||
"simulatorusesnewasset",
|
||||
"newoptions/readerscontextvisible;existingdraftrecoverable",
|
||||
"prioracceptedproofsreused;nosyntheticwritesinactive"
|
||||
],
|
||||
"completed": true,
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"reversal": {
|
||||
"preferred": "ForwardGitcompatibilitycontainmentcommitusingpreparedreadonlypatch,notDBrestore;revertcontainmentcommitafterfix",
|
||||
"patch": {
|
||||
"patch": "docs\\investmoz\\simulations\\l1-joint-readonly-rollback-20261024.patch",
|
||||
"patch_sha256": "d25a81f025ffeeb5869161404eb23b9762d87e07b4a820c14b63d29359d0db0e",
|
||||
"component_before_sha256": "37676ccb4302e5fdf5dceb58291809f120ea204c2a8c6a59ede9585f8753aa73",
|
||||
"git_apply_check": true,
|
||||
"live_component_changed": false,
|
||||
"purpose": "Operational compatibility rollback: suspend edits/calculations in L1 panel only;keep catalogue,readers,history,API,otherforms and reports;no DBrestore or broad path disable"
|
||||
},
|
||||
"QA_UI": "L1inputs/calculationdisabled;details/result600MZN/revision3/readers/reportsremain;otherforms/APIpermissionsunchanged",
|
||||
"limitations": "UIoperationalcontainment,notAPIauthorizationchange;fullrollbackto1655wouldhidenewL1readersandisnotpreferred"
|
||||
},
|
||||
"destination_precheck": {
|
||||
"public_revision_url": "https://teste-investidor.tempo.co.mz/build/revision.json",
|
||||
"result": "Authenticateddestinationverified;existingdeliveryHTTPclient200;defaulturllib403/Cloudflare1010",
|
||||
"served_revision_verified_this_pass": true,
|
||||
"protected_installer_or_current_backup_verified": true,
|
||||
"historical_initial_result": "HTTP403 before client diagnostic",
|
||||
"diagnostic": [
|
||||
{
|
||||
"request": "default",
|
||||
"status": 403,
|
||||
"headers": {
|
||||
"Content-Type": "text/plain; charset=UTF-8",
|
||||
"Server": "cloudflare",
|
||||
"CF-RAY": "a4f8f78b4cb51d20-JNB"
|
||||
},
|
||||
"body_sha256": "2938e9f1284180959e33ab1718d0793a72ff6e4cdb8108c34dcd14e69446de5c",
|
||||
"error_excerpt": "error code: 1010\n"
|
||||
},
|
||||
{
|
||||
"request": "existing_delivery",
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Server": "cloudflare",
|
||||
"CF-RAY": "a4f8f78bdf3c3575-JNB"
|
||||
},
|
||||
"body_sha256": "ad3f581baf0ef17706246b1f87c5fd0fd3659b14c6ed8f7661a19d68d838d40b",
|
||||
"commit": "1655f57e698fef4099c2886069a79cd1c920f792"
|
||||
}
|
||||
],
|
||||
"cloudflare_reference": "https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1010/",
|
||||
"conclusion": "Cloudflare1010forurllibdefault;existingdeliveryclient200;specificCloudflarerulenotinspected;noapplicationpermissioncauseorconfigurationchangerequired"
|
||||
},
|
||||
"excluded": [
|
||||
"P001mapping",
|
||||
"120unimplementedbranches",
|
||||
"newtaxes",
|
||||
"IRPC/IRPS",
|
||||
"statistics/AI",
|
||||
"syntheticQArecordsandruntimefiles"
|
||||
],
|
||||
"delivery_performed": true,
|
||||
"integration_preview": {
|
||||
"remote": "1655f57e698fef4099c2886069a79cd1c920f792",
|
||||
"merge_tree": "2284cf875e1b2ee6dd34ae5d182f57a3c194bf22",
|
||||
"candidate_tree_equal": true,
|
||||
"fast_forward_possible": true,
|
||||
"conflicts": false,
|
||||
"main_not_moved": true,
|
||||
"scope": "Historicalpreparationpreview,beforeauthorizedmainfastforward"
|
||||
},
|
||||
"delivery_commit": "490527b92cf1ca18122679440ff3a38933b7e0c2",
|
||||
"previous_main": "1655f57e698fef4099c2886069a79cd1c920f792",
|
||||
"installation": {
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "1655f57e698fef4099c2886069a79cd1c920f792",
|
||||
"release": "/var/www/investmoz-homologacao/releases/1655f57e698fef4099c2886069a79cd1c920f792-fe9d3b11",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/cd10cccbf45f53836d8bf7b2bd90794d99602cb9-a38feaad",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/1655f57e698fef4099c2886069a79cd1c920f792-fe9d3b11",
|
||||
"release_revision": {
|
||||
"commit": "1655f57e698fef4099c2886069a79cd1c920f792",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T10:18:11.360273+00:00",
|
||||
"manifest_sha256": "dfb82481796aaf5826e8a5108575de3807ee787faffa92f38a56bb8d9caf5ce7"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-joint-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "6e9a2b0b350b0effe0812e7e5faa5c9c1886611a50c1be5f8b00515d7ef0c5ea",
|
||||
"files_sha256": "53c170aa33714e78d997790cb7c75d672e9680052f7b2ffa5bccf2b719ca248e",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_joint_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "6e9a2b0b350b0effe0812e7e5faa5c9c1886611a50c1be5f8b00515d7ef0c5ea",
|
||||
"active_database_writes": 0
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "490527b92cf1ca18122679440ff3a38933b7e0c2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/490527b92cf1ca18122679440ff3a38933b7e0c2-d41ae12f",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/1655f57e698fef4099c2886069a79cd1c920f792-fe9d3b11",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "490527b92cf1ca18122679440ff3a38933b7e0c2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/490527b92cf1ca18122679440ff3a38933b7e0c2-d41ae12f",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/1655f57e698fef4099c2886069a79cd1c920f792-fe9d3b11",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"490527b92cf1ca18122679440ff3a38933b7e0c2"
|
||||
],
|
||||
"finished_at": "2026-10-24T12:30:02.029150+00:00"
|
||||
},
|
||||
"log_file": "1792844919670368682.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 23.74s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 247",
|
||||
"# pass 247",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 100122
|
||||
},
|
||||
"protected_preservation": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "490527b92cf1ca18122679440ff3a38933b7e0c2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/490527b92cf1ca18122679440ff3a38933b7e0c2-d41ae12f",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/1655f57e698fef4099c2886069a79cd1c920f792-fe9d3b11",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 6,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 104,
|
||||
"checksum": "41ddf6abf1cc00b85fb98a5c22da0ee1"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "23e7205245a904489ac3c12248d6b1ac"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 17,
|
||||
"checksum": "436718228e6cb875393809c4a84ebd43"
|
||||
},
|
||||
"after": {
|
||||
"rows": 18,
|
||||
"checksum": "becbef33ee3be158db37e1878aec832b"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public_delta": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "490527b92cf1ca18122679440ff3a38933b7e0c2",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T12:29:59.442400+00:00",
|
||||
"manifest_sha256": "b9f7c6d05c78754dd1f9efb71bf5ff59cdfaa1167e136a71138c0fd194b19a33"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"iva-operations-l1/2": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
],
|
||||
"financial_stamp": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
],
|
||||
"insurance_stamp": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
],
|
||||
"health_assistive": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
],
|
||||
"patient_transport": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
],
|
||||
"social_assistance_": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
],
|
||||
"social_care_": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
],
|
||||
"activity_facilities_": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
],
|
||||
"nonprofit": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
],
|
||||
"exactFields": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
],
|
||||
"20/21": [
|
||||
"assets/project-dossier-Cqjhibc1.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-DUPANwbE.js",
|
||||
"status": 200,
|
||||
"sha256": "cfdd24a5527c693b0a227726babd1a054425c19cc4a0ebe5f215f582ba5bf302"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-Cqjhibc1.js",
|
||||
"status": 200,
|
||||
"sha256": "937fd99184c12b1321abf86bf67a196c6d74db5296304bc7a746536653560e64"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-91ZtwN0x.js",
|
||||
"status": 200,
|
||||
"sha256": "73cb4b1b4ea8928de313cfa858896bfc613dfd0adfb091744a78c81cf5f47764"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-DVti_AMl.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"git_method": "Freshfetch+ancestry/hashcheck+branchpush+fastforwardmain;noforce;normalwebhook",
|
||||
"rollback_activated": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
--- a/resources/js/components/simulation-operations.tsx
|
||||
+++ b/resources/js/components/simulation-operations.tsx
|
||||
@@ -9,6 +9,8 @@
|
||||
const save=(next:SalesBook)=>onChange('modelo_a_snapshot',saveSalesBook(draft,next));
|
||||
const change=(id:string,patch:Partial<SalesOperation>)=>run(()=>save({...book,rows:book.rows.map(r=>r.id===id?{...r,...patch}:r)}));
|
||||
return <section aria-label="Operações IVA por oportunidade" className="space-y-3 rounded border p-3">
|
||||
+ <p role="status">Novos cálculos de operações IVA temporariamente suspensos. Resultados guardados e relatórios permanecem disponíveis.</p>
|
||||
+ <fieldset disabled>
|
||||
<h4 className="font-semibold">Operações de IVA — enquadramento das vendas</h4>
|
||||
<p>Oportunidade {String(draft.context_opportunity||'entrada geral')}; moeda original {book.currency||'por indicar'}. Cobertura2026/MZN. Reutilize as vendas e complete apenas o enquadramento. Este bloco classifica as operações; não substitui nem soma novamente a execução mensal geral acima.</p>
|
||||
<p>Uma empresa pode ter operações com tratamentos diferentes. Os valores são projecções sob pressupostos declarados, sem certificar facturas, reconhecer créditos ou submeter uma declaração à AT.</p>
|
||||
@@ -36,6 +38,7 @@
|
||||
{book.periods.map(p=><label className="block" key={p.period}><input type="checkbox" checked={p.complete} onChange={e=>run(()=>save({...book,periods:book.periods.map(v=>v.period===p.period?{...v,complete:e.target.checked}:v)}))}/> {p.period}: incluí todas as operações deste período; lista vazia significa ausência expressamente confirmada.</label>)}
|
||||
<p>Limites: outras isenções/bases especiais e correspondência do campo06 permanecem por delimitar. IVA incluído a5% conserva a fracção exacta e apresenta um decimal a6casas; a aproximação de apresentação não constitui regra declarativa. O desconhecido nunca é assumido como zero.</p>
|
||||
<button type="button" disabled={!book.periods.length} className="rounded bg-emerald-800 p-2 text-white disabled:opacity-50" onClick={()=>run(()=>save(recordSales(draft,book)))}>Calcular e guardar operações IVA</button>
|
||||
+ </fieldset>
|
||||
{book.result&&<><p role="status">{salesCurrent(draft,book)?'Resultado correspondente às entradas.':'Resultado histórico conservado; reveja as alterações antes de recalcular.'}</p><dl>{salesReportRows(draft).map(([,label,value,origin],index)=><div className="break-inside-avoid border-t py-2" key={index}><dt className="font-semibold">{label}</dt><dd>{value}<small className="block">{origin}</small></dd></div>)}</dl></>}
|
||||
</section>;
|
||||
}
|
||||
@@ -1,5 +1,81 @@
|
||||
# Reconciliação do IVA com o Novo Modelo A
|
||||
|
||||
## 24/10/2026 — lote08–10/14–18 entregue na homologação em1655f57e
|
||||
|
||||
**Estado actual: integrado, instalado e delta conferido; saldo deste lote: zero.** Candidata funcional `d18ff0f0`, registo QA `1655f57e`; revisão efectivamente servida `1655f57e698fef4099c2886069a79cd1c920f792`. Fetch anterior à integração encontrou `origin/main` em `cd10cccb`, antepassado da candidata; push por fast-forward, sem force ou alterações concorrentes a reconciliar. O webhook do processo existente instalou a revisão. Não se editou a pasta servida.
|
||||
|
||||
Conferência exclusivamente do delta instalado: `/build/revision.json` em1655f57e, branchmain; manifesto SHA256 `dfb82481796aaf5826e8a5108575de3807ee787faffa92f38a56bb8d9caf5ce7`, igual ao anunciado pela revisão; quatro assets HTTP200, com nove marcadores da nova funcionalidade e recuperação existente. `/simulador-fiscal` HTTP200 usa a entrada deste build; disponibilidade existente do IVA geral mantida. Conteúdo dos bundles verificado contra o próprio manifesto instalado, sem presumir nomes/bytes iguais entre Windows e Linux.
|
||||
|
||||
Fontes de moeda/tesouraria, recuperação mensal e motor fiscal publicado, schema, configuração, rotas e executor sem delta face a `cd10cccb`. Referência `276d833a` antepassada; PDF aceite S3 conserva SHA256 `7719a05136f6dba668b621f551626060d10db5fcbb84815cdad112a1eab9079b`, sem regeneração. As provas QA abaixo foram reutilizadas. Sem importações, migrações ou pedidos/cálculos sintéticos criados na homologação. Não se afirma nova auditoria autenticada à base; a prova desta entrega é revisão, manifesto, assets e entradas servidos. Evidência privada: `outputs/iva-acquisitions-delivery-20261024/installed-delta.json`.
|
||||
|
||||
Fecho limitado às aquisições08–10 e totais14–18 nas condições demonstradas. Não é apuramento integral do IVA. IRPC/IRPS permanecem inventariados para trabalho posterior; estatísticas/IA adiadas. Os estados QA/pendência de integração seguintes são histórico anterior a esta disponibilização, não o saldo actual.
|
||||
|
||||
## 24/10/2026 — aquisições08–10 e totais14–18 implementados e demonstrados em QA
|
||||
|
||||
**Estado actual: lote concluído em QA, candidata `d18ff0f0`, ramo `codex/modelo-a-aquisicoes-20261024`; ainda não integrado/disponibilizado na homologação.** S1–S3 continuam encerrados em `cd10cccb`, recibo `355656b5`; referência `276d833a` preservada. Esta secção sucede à proposta e ao cotejo parcial históricos abaixo. Sem IRPC/IRPS, publicação de regras, migração, mudança de permissões ou escrita em dados activos.
|
||||
|
||||
### Cotejo concluído antes da codificação
|
||||
|
||||
`VAT Return.pdf`: 285479bytes, SHA256 `9c0b99a810c7db53eb75d63c22ee22fb86a50ba57bd5509041ed80ee10f75741`, duas páginas lidas e renderizadas. Comparação com a imagem dos dois DOCX sobre fundo branco e instruções já reconciliadas. Originais intactos. O PDF não fornece critérios adicionais de elegibilidade por aquisição, nem prova nova edição/vigência pela sua existência.
|
||||
|
||||
| Campo/instrução | PDF versus DOCX | Tratamento executável |
|
||||
|---|---|---|
|
||||
|08–10|Mesma numeração: imobilizado, existências, outros bens/serviços; coluna de imposto a favor do sujeito passivo|Somar apenas IVA elegível das linhas, não orçamento, custo ou valor bruto de compras|
|
||||
|14|Mesma soma `01+03+05+06+07`|Determinar apenas com parcelas conhecidas|
|
||||
|15|Mesma soma `08+09+10+11+12`|Aquisições08–10 completas e11/12 determinados; sem operações deve ser declaração expressa|
|
||||
|16|Mesma soma `02+04+13`|Reutilizar02 da execução mensal actual;04/13 não são zero implícito|
|
||||
|17/18|Mesmas diferenças `16−15` / `15−16`, conforme o sentido|Diferenças antes de créditos anteriores; não são pagamento ou reembolso reconhecido|
|
||||
|Regularizações|Ambos dizem11/12 no texto, mas as caixas são12/13|Regularizações fora deste lote; divergência não bloqueia08–10 nem somas inequívocas|
|
||||
|Créditos/reembolso|Mantêm-se as remissões18/19 versus19/20 e art.20 no rodapé|Afectam o futuro tratamento19–27; não são activadas por esta passagem|
|
||||
|Preenchimentos/layout|PDF tem cabeçalho completo, duas páginas, inicial/dentro do prazo assinalados, UGC/Província/Localidade Maputo; DOCX tem caixas vazias e imagem do corpo, com fluxo de leitura diferente|Não herdar selecções, prazo ou Maputo para qualquer investimento; não corrigir ou substituir originais|
|
||||
|
||||
### Correspondência e percurso executáveis
|
||||
|
||||
Componente existente de IVA mensal conserva a execução01/02 no servidor. Novo bloco ligado ao mesmo formulário e relatório guarda `modelo_a_snapshot` no mecanismo privado/versionado existente, com livros separados pela oportunidade em tratamento. Sem escolha numa entrada com várias oportunidades, pede a escolha; nunca assume a primeira. A API conserva as permissões de proprietário e a concorrência por ETag.
|
||||
|
||||
Compras/encomendas são reutilizadas com valor/moeda/mês de origem, por classificar como líquido ou bruto. O mês de encomenda/orçamento é conservado separadamente do mês do documento e da dedução; adoptar uma origem actualizada não altera silenciosamente o período fiscal editado. Para08/10 é possível escolher explicitamente o orçamento de activos/despesas operacionais já existente como referência, sem o converter em factura. Só se pede a diferença fiscal/documental. Mudança da origem é sinalizada e exige adopção explícita; não substitui edições deliberadas. Moeda conhecida é conservada; moeda ausente exige confirmação expressa, sem conversão de montantes.
|
||||
|
||||
Por linha: líquido/IVA/bruto (dois valores permitem obter o terceiro por soma/diferença, sem taxa de compra inventada), documento/referência/linha/data, fornecedor/inscrição, posse/forma legal, período, natureza projectada ou efectiva declarada, aquisição interna, afectação e exclusões. O adquirente confirma regime normal de IVA. Documento repetido sem linha distinta é recusado. Uma compra só registada, orçamento, documento incompleto, uso misto/especial ou período divergente não gera dedução. IVA expressamente zero e despesas expressamente não elegíveis ficam distintos de informação em falta.
|
||||
|
||||
Fundamento dirigido: CIVA republicado pela Lei13/2016, PDF14–16, arts.18(1)(a),18(3–5),19(1)(a),20 e21(1–3); Lei22/2022, art.20 (exclusões/17-A/excepções); Lei10/2025, PDF13, arts.18(2)/(6) e19(2). Reutilização das fontes oficiais aceites, sem nova validação de credibilidade. Âmbito executado: interno geral, MZN, 2026, afectação exclusiva a operações tributadas, mesmo período de emissão/dedução, sem exclusões/especialidades/dedução parcial. É o recorte técnico solicitado, não prazo de vigência legal nem nova regra organizacional. Em projecções, as condições são pressupostos explícitos, sem certificação documental.
|
||||
|
||||
Por mês, confirmação expressa de lista completa08–10 e de inexistência de operações nos campos fora deste lote. Sem confirmação, as parcelas e totais dependentes permanecem indeterminados; declarações em conflito com importações/vendas de outros enquadramentos registadas são recusadas.14–18 usam aritmética decimal exacta. Resultados, condições e origem ficam congelados; alterações tornam a versão histórica visivelmente desactualizada. O relatório reutiliza o resultado guardado sem recalcular e identifica oportunidade, localização, período, moeda, fontes, versão e declarações de ausência. A nota da execução isolada01/02 remete agora para o bloco separado, evitando apresentar dois estados contraditórios.
|
||||
|
||||
### Provas dirigidas e saldo
|
||||
|
||||
- **11 testes frontend aprovados:** oito do novo lote e três da correspondência afectada. Condições incompletas, exclusões, uso misto, documento/fornecedor, data/moeda, duplicações, ausência versus zero, origem alterada, orçamentos reutilizados, fórmulas08–10/14–18, histórico e segunda oportunidade. Exemplo com08=32,09=16,10=8:15=56;16=160.0048;17=104.0048. Também diferença credora18 e vendas em falta.
|
||||
- **API real QA: dois testes/19 asserções aprovados**, base isolada `simulator_fiscal_delta_20261021_test:55441`, guarda de identidade e transacções revertidas. Payload calculado na interface da segunda oportunidade exportado por acção própria de QA → gravação privada real → recuperação exacta → relatório. Outra conta recusada; primeira oportunidade preservada; fingerprint de todas as regras igual. Nenhuma regra criada/publicada/suspensa.
|
||||
- **Visual Edge, componentes reais numa interface isolada:** compra sem condições fica indeterminada; edição/cálculo da segunda produz17=`128.0048`; actualizar a página conserva a segunda; regressar à primeira conserva17=`144.0048`. O armazenamento da interface visual é local ao browser; a persistência no servidor foi comprovada separadamente com o mesmo payload na API real de QA.
|
||||
- **Relatório da segunda oportunidade recuperada pela API:** CSV, Word e PDF apresentam `128.0048`, `160.0048`, MZN, Manica, oportunidade310, período e versão correspondentes, sem valores do livro309. PDF final com seis páginas conferidas visualmente, sem cortes/sobreposição. Abril deliberadamente sem vendas mantém01/02/14/16/17/18 indeterminados; a projecção financeira incompleta é identificada, sem fabricar resultado. Nenhum PDF ou exportação aceite de S1–S3 foi substituído.
|
||||
- **TypeScript e build aprovados.** Provas privadas em `outputs/iva-operations-qa-20261024`; relatório `acquisitions-final.pdf`, hashes no recibo integrado. A interface de ensaio não é incluída nos assets do portal.
|
||||
|
||||
Saldo deste recorte em QA: zero. Integração e disponibilização na homologação continuam por executar. Futuro fora deste recorte: activação de taxa reduzida/isenções, mistos/pro rata/excepções, importações, regularizações, créditos19–27, juros/pagamento/reembolso e submissão AT. IRPC/IRPS permanecem apenas inventariados. Estatísticas e IA adiadas. O histórico abaixo não reabre S1–S3 nem converte esta entrega QA em homologação.
|
||||
|
||||
## Actualização de 24/10/2026 — comparação e próximo lote proposto
|
||||
|
||||
S1–S3 permanecem encerrados na homologação em `cd10cccb`, recibo `355656b5`, saldo zero. Esta passagem é reconciliação documental/código e proposta; não altera regras, dados activos ou impostos. Reutiliza a leitura visual e as provas aceites de 21/10, sem repetir ensaios.
|
||||
|
||||
Os dois originais nas Notas foram relidos por bytes: tamanhos, SHA256 e imagem incorporada coincidem com os valores documentados abaixo. Inventário actual completo das duas pastas: nove documentos nas Notas e quatro em Modelos, além de seis ficheiros temporários/de bloqueio inventariados separadamente, registados com nome, tamanho e hash no recibo integrado, chave `modelo_a_next_scope_20261024`. Os quatro modelos são `VAT Return.pdf`, `IRPC_IRPS.xlsx`, `Cópia de IRPS-IMOP.xlsx` e `IRPC M-22- DECLARACAO DE RENDIMENTOS.pdf`. Os três de IRPC/IRPS entram apenas no inventário; conteúdo fiscal/fórmulas ainda não analisados. `VAT Return.pdf` é exemplar adicional inventariado, ainda por cotejar com os dois DOCX antes de afirmar equivalência ou diferença. Nenhum original alterado, importado ou publicado nesta passagem.
|
||||
|
||||
| Bloco | Já suportado / reutilizável | Falta concreta |
|
||||
|---|---|---|
|
||||
| Identificação e período, quadros 1–6 | Oportunidade escolhida, dossier, organização, contactos, meses, moeda e origem | Ligar os campos fiscais; confirmar apenas diferenças de NUIT/sucursal/área fiscal/CAE/domicílio fiscal. Sector e localização do projecto não provam CAE ou domicílio fiscal. Tipo de declaração não é versão de projecção. |
|
||||
| Campos 01/02 | Vendas mensais líquidas e IVA calculado pela versão publicada, recuperação pelo ID, moeda original e exportações aceites | Sem lacuna neste âmbito aceite; continua componente de planeamento, não imposto final a pagar. |
|
||||
| Campos 03–07 | Calendário de vendas como origem | Classificação por operação, bases separadas, âmbito temporal das categorias e regras correspondentes; mapeamento não é cálculo implementado. |
|
||||
| Campos 08–11 | Compras/encomendas mensais e pressupostos do plano | Valores líquido/IVA/bruto discriminados, documentos, fornecedor, afectação, exclusões e elegibilidade. Compras e investimento global não são IVA dedutível. |
|
||||
| Campos 12/13 | Correspondência documental | Regularizações individualizadas, motivo, documento e período; resolver a remissão interna divergente. |
|
||||
| Campos 14–18 | Fórmulas impressas mapeadas | Consolidação: 14=01+03+05+06+07; 15=08+09+10+11+12; 16=02+04+13; diferenças devedora/credora 17/18. Actualmente indeterminadas: parcelas ausentes não são zero. |
|
||||
| Campos 19–27 | Planeamento pode conservar estimativas separadas | Créditos efectivos/comunicados, substituição, juros, pagamento, reporte e pedido de reembolso. Não implementados como apuramento declarativo. |
|
||||
| Quadros 7, 12 e 13 | Autenticação e histórico do portal | Inexistência de operações exige informação completa; assinatura/submissão fiscal e campos reservados à AT não decorrem do login ou da simulação. |
|
||||
|
||||
**Diferenças e instruções:** os DOCX diferem por bytes e segmentação textual, com a mesma imagem do formulário; não está demonstrada alteração fiscal entre eles. Mantêm-se as divergências já documentadas: regularizações 11/12 no texto versus caixas 12/13; créditos 18/19 versus caixas 19/20; remissão de reembolso art.20 versus alteração de 2025 no art.21; remissões ambíguas ao quadro8. A duplicação de25 era artefacto de extracção, já resolvido. A edição/período aplicável e os dispositivos pertinentes devem ser cotejados para cada regra nova, reutilizando as fontes oficiais aceites.
|
||||
|
||||
**Proposta de lote seguinte — IVA por operação, primeiro âmbito interno geral em MZN:** reutilizar vendas e aquisições do plano por oportunidade/período; guardar origem/versionamento, previsto ou efectivo e classificação explícita. Implementar a discriminação líquido/IVA/bruto e a elegibilidade documentada das aquisições internas de imobilizado, existências e outros bens/serviços (08–10), após cotejo dirigido das condições e exclusões nas fontes existentes. Manter 01/02 e o motor publicado. Ligar 14–18 apenas quando todas as parcelas necessárias estiverem conhecidas ou expressamente declaradas sem operações, sem permitir que essa declaração apague operações existentes. Mostrar a parcela em falta quando o total não puder ser determinado.
|
||||
|
||||
Ficam fora deste lote proposto: activação de taxa reduzida, isenções/mistas/pro rata, importações, regularizações, créditos anteriores, substituições, juros, pagamentos, reembolsos e submissão à AT. Podem ser identificados na classificação, mas mantêm resultado indeterminado e explicação quando aplicáveis. IRPC/IRPS permanecem inventário. A proposta estreita o lote histórico abaixo; a estimativa histórica de28–52h não é orçamento deste novo recorte.
|
||||
|
||||
Fecho dirigido do lote proposto: reutilização sem preenchimento repetido; aquisição elegível/excluída/sem documento; zero versus ausência; alteração da segunda oportunidade preservando a primeira; mudança de origem cria versão sem reescrever histórico; gravação/recuperação e ecrã/exportações com iguais montantes, moeda, período, oportunidade, fonte e regra. Consolidar apenas os dispositivos efectivamente usados, sem nova validação genérica das fontes. Nenhuma implementação iniciada nesta reconciliação.
|
||||
|
||||
21/10/2026. Referência AUD-SIM-INT02, sem nova matriz/backlog. Preparação progressiva em QA; não é apuramento completo, submissão ou aceitação pela AT. A componente16% existente continua independente das restantes componentes por cadastrar/desenvolver. A leitura e aceitação documental da Tempo não é apresentada como validação jurídica independente.
|
||||
|
||||
## Exemplar e preservação
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,333 @@
|
||||
{
|
||||
"status": "installed_in_homologation_territories_recovered_delta_verified",
|
||||
"date": "2026-10-23",
|
||||
"base": "8036b9b0",
|
||||
"accepted_delivery_receipt": "cdf8fcfb",
|
||||
"active_comparison": {
|
||||
"database": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432,
|
||||
"role": "teste_investidor_app"
|
||||
},
|
||||
"read_only": "on",
|
||||
"published_fiches": 29,
|
||||
"cluster_relations": 13,
|
||||
"project_locations": 0,
|
||||
"RLS": [
|
||||
{
|
||||
"relname": "projects",
|
||||
"relrowsecurity": false,
|
||||
"relforcerowsecurity": false
|
||||
},
|
||||
{
|
||||
"relname": "project_locations",
|
||||
"relrowsecurity": false,
|
||||
"relforcerowsecurity": false
|
||||
},
|
||||
{
|
||||
"relname": "cluster_projects",
|
||||
"relrowsecurity": false,
|
||||
"relforcerowsecurity": false
|
||||
},
|
||||
{
|
||||
"relname": "investment_dossiers",
|
||||
"relrowsecurity": false,
|
||||
"relforcerowsecurity": false
|
||||
},
|
||||
{
|
||||
"relname": "opportunity_projects",
|
||||
"relrowsecurity": false,
|
||||
"relforcerowsecurity": false
|
||||
}
|
||||
],
|
||||
"missing_accepted_locations": 28,
|
||||
"source_inventory": "inventory-20261007-172113.json",
|
||||
"cause_scope": "Transported project identities omit accepted territorial rows and citation metadata; visibility recovery only restored publication status. Exact event/time not established."
|
||||
},
|
||||
"qa_recovery": {
|
||||
"mode": "applied",
|
||||
"database": "simulator_fiscal_delta_20261021_test",
|
||||
"port": 55441,
|
||||
"qa": true,
|
||||
"manifest_sha256": "dc3ae2014da51005d95780e2e4ae87e55e000e66e0765f0671c6e44a958026a0",
|
||||
"preview_sha256": "601a8603cf39f51a22cef9195e238a21c1552cb3303672b78ec52826c6342b57",
|
||||
"relations": 28,
|
||||
"projects": 13,
|
||||
"relations_restored": 28,
|
||||
"projects_updated": 13,
|
||||
"new_dossiers": 0,
|
||||
"publication_changes": 0
|
||||
},
|
||||
"tests": {
|
||||
"php": {
|
||||
"tests": 4,
|
||||
"assertions": 116,
|
||||
"passed": 4
|
||||
},
|
||||
"frontend": {
|
||||
"tests": 2,
|
||||
"passed": 2
|
||||
},
|
||||
"typescript": "passed",
|
||||
"build": "passed",
|
||||
"phpstan_new_recovery_service": "passed, zero errors"
|
||||
},
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-anchor-integration-20261023/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "207ff14c6af7c4b2dd280def898945cb58314e01930b51c50d502e95cbe6ac68",
|
||||
"files_sha256": "8cd85ab7d5a772452111e4fe7feab48f7fc694ee3f0fbd264f50096254835fe2",
|
||||
"restore_verified": false
|
||||
},
|
||||
"isolated_restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "anchor_restore_20261023",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "207ff14c6af7c4b2dd280def898945cb58314e01930b51c50d502e95cbe6ac68",
|
||||
"active_database_writes": 0
|
||||
},
|
||||
"preserved_closures": [
|
||||
"6b544548",
|
||||
"d8224ba8",
|
||||
"55136b44",
|
||||
"8036b9b0"
|
||||
],
|
||||
"not_repeated": [
|
||||
"native saved PDF",
|
||||
"Word",
|
||||
"ZIP",
|
||||
"accepted portfolio via opportunity branch",
|
||||
"accepted complements and four consumers"
|
||||
],
|
||||
"deferred": [
|
||||
"statistics",
|
||||
"AI"
|
||||
],
|
||||
"pending": [],
|
||||
"screenshots": [
|
||||
"outputs/anchor-integration-20261023/qa-sector-location.png",
|
||||
"outputs/anchor-integration-20261023/qa-anchor-fiche.png",
|
||||
"outputs/anchor-integration-20261023/qa-anchor-dossier.png",
|
||||
"outputs/anchor-integration-20261023/qa-anchor-simulator.png",
|
||||
"outputs/anchor-integration-20261023/homologation-sector-location.png",
|
||||
"outputs/anchor-integration-20261023/homologation-anchor-fiche.png"
|
||||
],
|
||||
"visual_QA": {
|
||||
"anchor_code": "A06",
|
||||
"anchor_fiche": "57a4ee7a-4c07-4e26-b8f5-e07726e41512",
|
||||
"case_id": "3fd1bac6-80cf-48c8-97f3-eb4bb3398a17",
|
||||
"simulation_draft_id": "bbc9ae3d-8c0e-45d2-b93f-9eaa85bab4d4",
|
||||
"sector": "Agronegócio",
|
||||
"province": "Sofala",
|
||||
"offer_invented": false,
|
||||
"deliberate_title_preserved": true,
|
||||
"source_link_visible_in_dossier_and_simulator": true,
|
||||
"manifestation": "HTTP directed proof, including ownership, same-source identity and versioned binding; browser native confirmation cancelled after control timeout; no formal submission"
|
||||
},
|
||||
"served_commit": "cf2ddf21a1457f4852fe6aa10069ec3b854f1567",
|
||||
"functional_commits": [
|
||||
"3fd5128c",
|
||||
"cf2ddf21"
|
||||
],
|
||||
"installation": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "cf2ddf21a1457f4852fe6aa10069ec3b854f1567",
|
||||
"release": "/var/www/investmoz-homologacao/releases/cf2ddf21a1457f4852fe6aa10069ec3b854f1567-7749f82e",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/3fd5128c62296bc5c85dcd19f1458a7949de5784-803cd41e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "cf2ddf21a1457f4852fe6aa10069ec3b854f1567",
|
||||
"release": "/var/www/investmoz-homologacao/releases/cf2ddf21a1457f4852fe6aa10069ec3b854f1567-7749f82e",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/3fd5128c62296bc5c85dcd19f1458a7949de5784-803cd41e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"cf2ddf21a1457f4852fe6aa10069ec3b854f1567"
|
||||
],
|
||||
"finished_at": "2026-10-23T17:21:57.897758+00:00"
|
||||
},
|
||||
"log_file": "1792776037181186915.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.44s",
|
||||
"OK (57 tests, 309 assertions)",
|
||||
"# tests 216",
|
||||
"# pass 216",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 92267
|
||||
},
|
||||
"recovery_preview": {
|
||||
"mode": "preview",
|
||||
"database": "teste_investidor",
|
||||
"port": 5432,
|
||||
"qa": false,
|
||||
"manifest_sha256": "d2893d0a638d630435aca1890f79a8094dc58eb65bbdd65a470bb685fa075190",
|
||||
"preview_sha256": "f59e324222ea480d176f1e8e6ae164efa184904c8244873d3fcf6af8497e0dac",
|
||||
"relations": 28,
|
||||
"projects": 13
|
||||
},
|
||||
"recovery_applied": {
|
||||
"mode": "applied",
|
||||
"database": "teste_investidor",
|
||||
"port": 5432,
|
||||
"qa": false,
|
||||
"manifest_sha256": "d2893d0a638d630435aca1890f79a8094dc58eb65bbdd65a470bb685fa075190",
|
||||
"preview_sha256": "f59e324222ea480d176f1e8e6ae164efa184904c8244873d3fcf6af8497e0dac",
|
||||
"relations": 28,
|
||||
"projects": 13,
|
||||
"relations_restored": 28,
|
||||
"projects_updated": 13,
|
||||
"new_dossiers": 0,
|
||||
"publication_changes": 0
|
||||
},
|
||||
"installed_delta": {
|
||||
"published_fiches": 29,
|
||||
"territorial_links": 28,
|
||||
"affected_projects": 13,
|
||||
"cluster_relations": 13,
|
||||
"dossier_rows_unchanged": true,
|
||||
"clusters_corridors_opportunity_relations_unchanged": true,
|
||||
"historical_territorial_link_identities_preserved": true,
|
||||
"only_project_metadata_version_timestamp_changed": true,
|
||||
"functional_file_hashes_match_Git": {
|
||||
"app/Http/Controllers/InvestmentPortfolioController.php": true,
|
||||
"app/Http/Controllers/InvestorContextController.php": true,
|
||||
"app/Services/ApprovedAnchorTerritories.php": true,
|
||||
"app/Services/InvestorContext.php": true,
|
||||
"resources/js/lib/investor-context.ts": true,
|
||||
"resources/js/lib/project-dossier-report.ts": true,
|
||||
"resources/js/lib/search-territory.ts": true,
|
||||
"resources/js/pages/investment/submission.tsx": true,
|
||||
"resources/js/pages/investor-path/context-start.tsx": true,
|
||||
"resources/js/pages/investor-path/context.tsx": true,
|
||||
"resources/js/pages/investor-path/show.tsx": true,
|
||||
"resources/js/pages/portfolio/index.tsx": true,
|
||||
"resources/js/pages/portfolio/show.tsx": true,
|
||||
"routes/web.php": true,
|
||||
"tools/restore-approved-anchor-territories.php": true
|
||||
},
|
||||
"pipeline_summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.44s",
|
||||
"OK (57 tests, 309 assertions)",
|
||||
"# tests 216",
|
||||
"# pass 216",
|
||||
"# fail 0"
|
||||
],
|
||||
"table_preservation": {
|
||||
"tables": 174,
|
||||
"changed_tables": {
|
||||
"audit_events": {
|
||||
"before": {
|
||||
"rows": 632,
|
||||
"checksum": "d4f2e8b30c014080b33a588eb0d8afe2"
|
||||
},
|
||||
"after": {
|
||||
"rows": 645,
|
||||
"checksum": "88c2047620eb3fad4d2a2837ed3daef5"
|
||||
}
|
||||
},
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 104,
|
||||
"checksum": "463aff806806b9fa2e4dff3310f516ec"
|
||||
},
|
||||
"after": {
|
||||
"rows": 104,
|
||||
"checksum": "4963d5a25fecf3352cf0d7aee73a1e63"
|
||||
}
|
||||
},
|
||||
"project_locations": {
|
||||
"before": {
|
||||
"rows": 0,
|
||||
"checksum": "d41d8cd98f00b204e9800998ecf8427e"
|
||||
},
|
||||
"after": {
|
||||
"rows": 28,
|
||||
"checksum": "80b4e44b11208a023fcfb989e738b95a"
|
||||
}
|
||||
},
|
||||
"projects": {
|
||||
"before": {
|
||||
"rows": 16,
|
||||
"checksum": "af127d727cfc1050c26b99130e397109"
|
||||
},
|
||||
"after": {
|
||||
"rows": 16,
|
||||
"checksum": "17fb48a69b09e1e8ec81b0d30e29ce80"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 11,
|
||||
"checksum": "912e728cc332bfc41a7e0f94c84e118d"
|
||||
},
|
||||
"after": {
|
||||
"rows": 15,
|
||||
"checksum": "713242c22c549258fab61d1b9cd993ef"
|
||||
}
|
||||
}
|
||||
},
|
||||
"unchanged_tables": 169
|
||||
},
|
||||
"exact_29_approved_fiche_identities_preserved": true,
|
||||
"synthetic_fiches_transported": 0
|
||||
},
|
||||
"Git_preservation": {
|
||||
"accepted_base_receipt": "cdf8fcfb",
|
||||
"previous_installed": "8036b9b0",
|
||||
"candidate": "cf2ddf21a1457f4852fe6aa10069ec3b854f1567",
|
||||
"protected_files_unchanged": {
|
||||
"app/Services/InvestmentComplements.php": true,
|
||||
"app/Services/InvestmentConsumerScope.php": true,
|
||||
"app/Services/InvestorPath.php": true,
|
||||
"app/Services/SimulationFormDrafts.php": true,
|
||||
"resources/js/components/investment-complements.tsx": true,
|
||||
"resources/js/components/dossier-prefill.tsx": true,
|
||||
"resources/js/components/investment-requirements.tsx": true
|
||||
},
|
||||
"matrix_changed_rows_since_accepted_receipt": [
|
||||
"AUD-REL-02",
|
||||
"AUD-LEG-06"
|
||||
],
|
||||
"other_matrix_records_preserved": 3421,
|
||||
"accepted_receipt_updates_preserved": [
|
||||
"AUD-SIM-INT03",
|
||||
"AUD-SIM-INT06"
|
||||
],
|
||||
"schema_migrations_added": [],
|
||||
"stats_AI_code_changed": false,
|
||||
"force_push": false
|
||||
},
|
||||
"manifest_verification": {
|
||||
"Git_LF_sha256": "d2893d0a638d630435aca1890f79a8094dc58eb65bbdd65a470bb685fa075190",
|
||||
"initial_QA_Windows_bytes_sha256": "dc3ae2014da51005d95780e2e4ae87e55e000e66e0765f0671c6e44a958026a0",
|
||||
"canonicalization": "CRLF to LF only; identical JSON and accepted relations",
|
||||
"first_active_preview": "refused before writes; corrected canonical preview and apply succeeded"
|
||||
},
|
||||
"next": "Tempo final navigation and presentation evaluation",
|
||||
"not_a_claim_of_complete_transversal_implementation": true,
|
||||
"installed_public_delta": {
|
||||
"catalogue": "https://teste-investidor.tempo.co.mz/carteira?kind=project§or=Agro-ind%C3%BAstria%20e%20agricultura&province_id=f57ff041-6275-57b9-8800-c35e46e0d475",
|
||||
"results": 1,
|
||||
"fiche": "57a4ee7a-4c07-4e26-b8f5-e07726e41512",
|
||||
"source": "portfolio:57a4ee7a-4c07-4e26-b8f5-e07726e41512",
|
||||
"territories_visible": 4,
|
||||
"search_return_preserves_filters": true,
|
||||
"preparation_GET_same_identity_and_province": true,
|
||||
"homologation_test_dossiers_or_submissions_created": 0
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"date": "2026-10-23",
|
||||
"status": "installed_in_homologation_delta_verified",
|
||||
"functional_commit": "1afdfee8",
|
||||
"base": "bc84fbdb",
|
||||
"accepted_deliveries_preserved": [
|
||||
"6b544548",
|
||||
"d8224ba8",
|
||||
"55136b44"
|
||||
],
|
||||
"qa": {
|
||||
"database": "simulator_fiscal_delta_20261021_test",
|
||||
"port": 55441,
|
||||
"guard": "asserted in tests and fixture preparation",
|
||||
"case_id": "d279172b-8bd1-4074-b000-ee25f0d29778",
|
||||
"actor": "synthetic existing QA actor 509",
|
||||
"browser": "Edge http://127.0.0.1:18574",
|
||||
"existing_accepted_cases_modified": false
|
||||
},
|
||||
"changes": [
|
||||
"simulator explicit or inherited opportunity key saved and recovered",
|
||||
"applicability facts reasons and stage details by opportunity without replacing common data",
|
||||
"land shortcut filters dossier owner and chosen opportunity",
|
||||
"requirement and return links preserve scope",
|
||||
"authorised common contact proposals where duplication was found",
|
||||
"Word/ZIP/print composition identifies selected scope and applicable stages"
|
||||
],
|
||||
"verification": {
|
||||
"http_tests": 7,
|
||||
"http_assertions": 170,
|
||||
"http_suite": "tests/Feature/InvestmentTreatmentScopeTest.php",
|
||||
"frontend_tests": 2,
|
||||
"frontend_suite": "tests/frontend/treatment-scope-export.test.mjs",
|
||||
"typescript": "passed",
|
||||
"production_build": "passed",
|
||||
"visual": "new QA dossier second Manica / first Sofala / second; general simulator selection and scoped return to dossier"
|
||||
},
|
||||
"remaining": [
|
||||
{
|
||||
"scope": "native PDF",
|
||||
"status": "only saved native PDF pagination and legibility remain unverified; HTML is not that proof",
|
||||
"limitation": "browser-only control does not expose system print/save dialogue; no failure attributed to application"
|
||||
},
|
||||
{
|
||||
"scope": "anchor projects sector and location search with manifestation and investment preparation continuity",
|
||||
"status": "to analyse; no inference of implementation or defect",
|
||||
"matrix": "AUD-REL-02"
|
||||
}
|
||||
],
|
||||
"limits": [
|
||||
"no homologation deployment or active data/schema/config/permission change",
|
||||
"no repeat of accepted complement or four-consumer tests",
|
||||
"no new visual proof of every alternative entry or removal editor; directed HTTP proof only",
|
||||
"no statistics or AI work",
|
||||
"temporary fixture clone location confirmation and test version field corrected before passing results"
|
||||
],
|
||||
"artifacts": [
|
||||
{
|
||||
"path": "outputs/multi-opportunity-fix-20261023/treatment-dossier.png",
|
||||
"sha256": "2b5f65064c80e376efdb2d12c87725c042027296f1e4ab6536f140462482562f"
|
||||
},
|
||||
{
|
||||
"path": "outputs/multi-opportunity-fix-20261023/treatment-dossier.txt",
|
||||
"sha256": "0887a3ab5da2c6eccd369c7ca691df9d5f8d92279f6202eddf15b1652c138c89"
|
||||
},
|
||||
{
|
||||
"path": "outputs/multi-opportunity-fix-20261023/treatment-simulator.txt",
|
||||
"sha256": "410f91d3afe220ec46f435c9de62d34671b2096d961527d0ce97a3edb9838b34"
|
||||
},
|
||||
{
|
||||
"path": "outputs/multi-opportunity-fix-20261023/treatment-exports/second.docx",
|
||||
"sha256": "7aeadecb3684d000d5fe0c3b93d339f380c434daf3890ae24bd79c2f723ae40b"
|
||||
},
|
||||
{
|
||||
"path": "outputs/multi-opportunity-fix-20261023/treatment-exports/second.zip",
|
||||
"sha256": "a3c1100d9c9ffc75fbda0f0489479c17275e8fa0b3025ad3ae2ecb293a9aa1f8"
|
||||
},
|
||||
{
|
||||
"path": "outputs/multi-opportunity-fix-20261023/treatment-exports/second-print.html",
|
||||
"sha256": "dffff89a9d4f186698bbc077a8a5031bd95290e12bcdba7b00ec7cd1a095bc4a"
|
||||
}
|
||||
],
|
||||
"installation": {
|
||||
"status": "installed_in_homologation_delta_verified",
|
||||
"commit": "8036b9b071229dbf7e85ea748db70abcbeefc379",
|
||||
"receipt": "treatment-scope-installation-receipt-20261023.json",
|
||||
"delta_verified": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
{
|
||||
"scope": "Shared administrative maps stabilization",
|
||||
"source_revision": "cf2ddf21",
|
||||
"candidate": "066707ec",
|
||||
"owner_decision": "Tempo 2026-10-24: public consultation of the exact accepted administrative contours; originals private, no parcels or other internal layers",
|
||||
"diagnosis": {
|
||||
"data_loss": false,
|
||||
"common_consumers": "Public-only filter excluded all 408 internal administrative boundaries",
|
||||
"administration": "Legacy manage-portal gate excluded both approved superusers",
|
||||
"comparison": "No change in common geometry service/controller/components between 30aed7cd and cf2ddf21",
|
||||
"base_map": "Provider tiles and served assets respond; browser framing is checked after installation"
|
||||
},
|
||||
"qa": {
|
||||
"database": "simulator_fiscal_delta_20261021_test",
|
||||
"port": 55441,
|
||||
"tests": 6,
|
||||
"assertions": 64,
|
||||
"result": "passed",
|
||||
"phpstan": "passed",
|
||||
"writes": "Only isolated QA transactions, rolled back"
|
||||
},
|
||||
"baseline": {
|
||||
"published_fiches": 29,
|
||||
"territorial_relations": 28,
|
||||
"geometries": 408,
|
||||
"geometry_rows_checksum": "7d8b71d3e65d89ffdc43c748b0572dbc"
|
||||
},
|
||||
"backup": {
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"restore_tables_verified": 174,
|
||||
"restore_network": "none",
|
||||
"dump_sha256": "2fb5b4488799bb6072c38ee41ccf91fc2a55561363c19e280ab066363d9e0647"
|
||||
},
|
||||
"public_manifest_sha256": "06ab905fcf9b19115c3521bf81de03f37873880f7765f229b9e1f79d99df7adc",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "066707ece631f0a7c963031c211844fbdd68916b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/066707ece631f0a7c963031c211844fbdd68916b-6b7bb5bd",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/cf2ddf21a1457f4852fe6aa10069ec3b854f1567-7749f82e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"deferred": [
|
||||
"Statistics",
|
||||
"AI"
|
||||
],
|
||||
"accepted_tests_repeated": false,
|
||||
"public_projection": {
|
||||
"available": 408,
|
||||
"levels": {
|
||||
"admin_post": 264,
|
||||
"district": 133,
|
||||
"province": 11
|
||||
},
|
||||
"failures": [],
|
||||
"manifest_sha256": "06ab905fcf9b19115c3521bf81de03f37873880f7765f229b9e1f79d99df7adc"
|
||||
},
|
||||
"preservation": {
|
||||
"tables": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 104,
|
||||
"checksum": "5d172b4d252c7b025f23ac70cf570cb6"
|
||||
},
|
||||
"after": {
|
||||
"rows": 104,
|
||||
"checksum": "a60f3e47e1ae28937404f05f45e33135"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 6,
|
||||
"checksum": "dcdb7eba3f3e8f29f40ec3f7542be6ce"
|
||||
},
|
||||
"after": {
|
||||
"rows": 7,
|
||||
"checksum": "0059c0b0e16d532c6658fd420582f2e9"
|
||||
}
|
||||
}
|
||||
},
|
||||
"unchanged_tables": 172
|
||||
},
|
||||
"installed_file_sha256": {
|
||||
"app/Services/ApprovedAdministrativeBoundaries.php": "401fd62795ca8f33106be6e07130d9207d6661695440bfc40f62f6f6b42bec64",
|
||||
"app/Services/TerritoryGeometry.php": "00ce3e6dde92868b0d34b963b8e59a26e6663149cdc0398c645ef636ca382966",
|
||||
"app/Http/Controllers/InvestmentTerritoryController.php": "3b184c6ea1b97f0abe86d01567d3d73444c49192c638478a6d53619e63d5d18d",
|
||||
"app/Http/Middleware/EnsureScopedPortalAdministration.php": "1474db760f6bd6003a5325ae721698e90e2709a2354b51abde77f920a9dad81a",
|
||||
"docs/investmoz/unification/approved-administrative-boundaries-20261024.json": "06ab905fcf9b19115c3521bf81de03f37873880f7765f229b9e1f79d99df7adc"
|
||||
},
|
||||
"pipeline_summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.58s",
|
||||
"OK (57 tests, 309 assertions)",
|
||||
"# tests 216",
|
||||
"# pass 216",
|
||||
"# fail 0"
|
||||
],
|
||||
"proofs": {
|
||||
"anonymous_http": {
|
||||
"status": 200,
|
||||
"territory_id": "dd219b89-cc17-5944-8c7d-d2766c82b526",
|
||||
"selected": "DONDO",
|
||||
"ancestor": "Sofala",
|
||||
"areas": 2
|
||||
},
|
||||
"browser": {
|
||||
"province_to_district": "passed",
|
||||
"framing": "selected district with ancestor context",
|
||||
"reload_preserves_selection": true,
|
||||
"zoom": "passed",
|
||||
"visible_tiles_loaded": 36,
|
||||
"visible_tiles_failed": 0,
|
||||
"screenshot": "outputs/map-stabilization-20261024/dondo-installed.png",
|
||||
"screenshot_sha256": "7569f3b66aceb7ef9816c31bfaa172ebcdfa10e4911961b67a129a654b5cd349"
|
||||
},
|
||||
"business_rows_unchanged": true,
|
||||
"active_synthetic_requests_created": 0
|
||||
},
|
||||
"status": "installed_delta_verified",
|
||||
"remaining_in_scope": []
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"date": "2026-10-23",
|
||||
"candidate": "1afdfee8",
|
||||
"native_report_fix": "2856240c",
|
||||
"deployment_status": "installed_in_homologation_delta_verified",
|
||||
"origin_main_checked": "55136b44",
|
||||
"accepted_scopes_retested": false,
|
||||
"new_test": "tests/frontend/native-pdf-scope.test.mjs: 1 passed",
|
||||
"types": "passed",
|
||||
"build": "passed",
|
||||
"qa_report": {
|
||||
"revision": 13,
|
||||
"opportunity": "opportunity:309",
|
||||
"location": "Manica",
|
||||
"declared_funding_total": "123456 MZN",
|
||||
"declared_secured": "45678 MZN",
|
||||
"expected_gap": "77778.00 MZN",
|
||||
"native_pdf_expected": "outputs/multi-opportunity-fix-20261023/candidata-1afdfee8.pdf",
|
||||
"pdf_saved_verified": true,
|
||||
"native_pdf_actual": "C:\\laragon\\www\\portal-investidor\\outputs\\multi-opportunity-fix-20261023\\Relatório — SYNTHETIC QA - escolha comum aos tres consumidores.pdf",
|
||||
"native_pdf_sha256": "010eb4ea12015563c1b2f8bc255b1078c276f824c50690732541d5bffe34b8a6",
|
||||
"native_pdf_pages": 10,
|
||||
"visual_pagination": "passed pages1-10",
|
||||
"file_discovery": {
|
||||
"machine": "ONALA",
|
||||
"user": "macbook",
|
||||
"session": "Console",
|
||||
"extension": ".pdf",
|
||||
"size_bytes": 191637,
|
||||
"requested_basename_not_found": "candidata-1afdfee8.pdf",
|
||||
"actual_basename": "Relatório — SYNTHETIC QA - escolha comum aos tres consumidores.pdf",
|
||||
"resolution": "existing file discovered by listing the exact requested directory; no rename, copy or PDF regeneration"
|
||||
}
|
||||
},
|
||||
"anchor_analysis": {
|
||||
"status": "analysed_not_implemented",
|
||||
"confirmed_code_gaps": [
|
||||
"sector filter absent from portfolio UI and query contract",
|
||||
"no direct idea preparation from anchor fiche without an associated opportunity"
|
||||
],
|
||||
"directed_verification_remaining": [
|
||||
"reconcile territorial data with demonstrated and destination state using equivalent access",
|
||||
"anonymous interest authentication return and same-fiche identity"
|
||||
],
|
||||
"existing_accepted_branch": "portfolio origin via associated opportunity to dossier and simulator is preserved, not retested",
|
||||
"qa_documentary_anchors": 15,
|
||||
"qa_document_sector_location_region_present": true,
|
||||
"qa_canonical_primary_territories": 0,
|
||||
"qa_public_location_links": 0,
|
||||
"qa_published_opportunity_links": 0,
|
||||
"synthetic_anchor_excluded": true,
|
||||
"inventory_sha256": "7d2c0c36fa51b05ce97dfd25c997b77eccf7136a99220ed8607fcd2436fd3d39",
|
||||
"no_homologation_loss_inferred": true
|
||||
},
|
||||
"statistics_and_AI": "deferred",
|
||||
"installation": {
|
||||
"status": "installed_in_homologation_delta_verified",
|
||||
"commit": "8036b9b071229dbf7e85ea748db70abcbeefc379",
|
||||
"receipt": "treatment-scope-installation-receipt-20261023.json",
|
||||
"delta_verified": true
|
||||
},
|
||||
"status": "installed_in_homologation_delta_verified"
|
||||
}
|
||||
@@ -35,8 +35,9 @@
|
||||
"number": 3,
|
||||
"component": "Navegação contextual e manifestação de interesse",
|
||||
"historic_status": "Disponível",
|
||||
"current_preservation_status": "Navegação/percurso preservados; carteira documental reposta em 23/10: 29 dossiers, incluindo 15 projectos âncora.",
|
||||
"evidence": "[Abrir](https://teste-investidor.tempo.co.mz/investimentos/iniciar) · Início, contexto e navegação abrem; gravação/recuperação aceites em QA reutilizadas. Sem dossier real no destino."
|
||||
"current_preservation_status": "Continuity and multi-opportunity consumers delivered: 55136b44, 8036b9b0, cf2ddf21. Accepted proofs preserved.",
|
||||
"evidence": "[Abrir](https://teste-investidor.tempo.co.mz/investimentos/iniciar) · Início, contexto e navegação abrem; gravação/recuperação aceites em QA reutilizadas. Sem dossier real no destino.",
|
||||
"status_before_stabilization_closure": "Navegação/percurso preservados; carteira documental reposta em 23/10: 29 dossiers, incluindo 15 projectos âncora."
|
||||
},
|
||||
{
|
||||
"number": 4,
|
||||
@@ -175,8 +176,9 @@
|
||||
"number": 23,
|
||||
"component": "Cartografia e consumidores territoriais restantes",
|
||||
"historic_status": "Não demonstrado",
|
||||
"current_preservation_status": "Demarcação reposta: 408 geometrias. Polígonos de localidades e correspondências já pendentes não são nova regressão.",
|
||||
"evidence": "[Abrir](https://teste-investidor.tempo.co.mz/oportunidades) · Catálogos/mapas abrem. 1 921 referências geográficas no alvo versus 1 990 locais; diferença não reconciliada por item fora do manifesto."
|
||||
"current_preservation_status": "Shared maps delivered 066707ec/5d45541a: 408 accepted contours publicly available; originals private, 29 fiches and 28 relations preserved. Missing locality polygons remain future work.",
|
||||
"evidence": "[Abrir](https://teste-investidor.tempo.co.mz/oportunidades) · Catálogos/mapas abrem. 1 921 referências geográficas no alvo versus 1 990 locais; diferença não reconciliada por item fora do manifesto.",
|
||||
"status_before_stabilization_closure": "Demarcação reposta: 408 geometrias. Polígonos de localidades e correspondências já pendentes não são nova regressão."
|
||||
},
|
||||
{
|
||||
"number": 24,
|
||||
@@ -210,8 +212,9 @@
|
||||
"number": 28,
|
||||
"component": "Pesquisa — estados do recorte R2",
|
||||
"historic_status": "Disponível",
|
||||
"current_preservation_status": "Pesquisa e selectores corrigidos em 22/10; a carteira vazia é tratada como perda separada.",
|
||||
"evidence": "[Abrir](https://teste-investidor.tempo.co.mz/oportunidades) · Catálogos abrem; quatro estados e protecção contra respostas antigas preservados do R2, sem repetir ensaios aceites."
|
||||
"current_preservation_status": "Accepted search/selectors preserved; portfolio visibility and anchor continuity restored and delivered cf2ddf21. No current portfolio-empty fault.",
|
||||
"evidence": "[Abrir](https://teste-investidor.tempo.co.mz/oportunidades) · Catálogos abrem; quatro estados e protecção contra respostas antigas preservados do R2, sem repetir ensaios aceites.",
|
||||
"status_before_stabilization_closure": "Pesquisa e selectores corrigidos em 22/10; a carteira vazia é tratada como perda separada."
|
||||
},
|
||||
{
|
||||
"number": 29,
|
||||
@@ -945,5 +948,79 @@
|
||||
"new_roles_or_approvers": false,
|
||||
"new_content_approval": false
|
||||
},
|
||||
"qa_recovery_preparation_note": "An initial QA audit-key collision rolled back atomically. Audit identity was scoped per original before the successful QA and destination recovery; no active attempt used the faulty key."
|
||||
"qa_recovery_preparation_note": "An initial QA audit-key collision rolled back atomically. Audit identity was scoped per original before the successful QA and destination recovery; no active attempt used the faulty key.",
|
||||
"stabilization_closure_20261024": {
|
||||
"basis": "Tempo explicit sequence and technical preservation responsibility, 24/10/2026",
|
||||
"installed_functional_baseline": "066707ece631f0a7c963031c211844fbdd68916b",
|
||||
"map_receipt": "5d45541a",
|
||||
"known_open_faults_in_delimited_stabilization_scope": [],
|
||||
"does_not_close_all_43_components": true,
|
||||
"prior_losses_do_not_share_a_proven_single_cause": true,
|
||||
"accepted_closures": [
|
||||
"6b544548/4098192a",
|
||||
"d8224ba8/af926180",
|
||||
"55136b44/b6a626c9",
|
||||
"8036b9b0/cdf8fcfb",
|
||||
"cf2ddf21/c1f4a719",
|
||||
"066707ec/5d45541a"
|
||||
],
|
||||
"documentary_limits": [
|
||||
"Six legacy opportunity/anchor-cluster pairs without documented identity remain indeterminate: AUD-REL-02",
|
||||
"Two incomplete legacy originals retain their existing documentary limit"
|
||||
],
|
||||
"not_yet_proven_component_numbers": [
|
||||
6,
|
||||
18,
|
||||
21,
|
||||
22,
|
||||
24,
|
||||
25,
|
||||
35
|
||||
],
|
||||
"future_requirement_ids": [
|
||||
"AUD-MARKET-01",
|
||||
"AUD-ESTABLISHMENT-01",
|
||||
"AUD-FUND-01",
|
||||
"AUD-COMPANY-01",
|
||||
"AUD-COMPANY-02",
|
||||
"AUD-CAPITAL-01",
|
||||
"AUD-CAPITAL-02",
|
||||
"AUD-FINTECH-01"
|
||||
],
|
||||
"territorial_count_reconciliation": {
|
||||
"source": "outputs/preservation-inventory-20261023/local.json and homologation.json",
|
||||
"public_active_local": 1921,
|
||||
"public_active_target": 1921,
|
||||
"local_archived_internal_groups": [
|
||||
32,
|
||||
32,
|
||||
5
|
||||
],
|
||||
"individual_identity_comparison_of_archived_69_claimed": false,
|
||||
"reactivation_authorized": false
|
||||
},
|
||||
"new_control": {
|
||||
"test": "tests/Unit/ApprovedAdministrativeBoundariesTest.php",
|
||||
"automatic_delivery_suite": "Unit",
|
||||
"tests": 2,
|
||||
"assertions": 8,
|
||||
"result": "passed",
|
||||
"scope": "Approved public snapshot identity; changed geometry/metadata, wrong territory and new internal identity rejected",
|
||||
"http_access_contract": "tests/Feature/TerritoryGeometryConsumerAccessTest.php",
|
||||
"http_contract_run_when": "Geometry/access/hierarchy changes, on isolated QA only; existing accepted result reused here"
|
||||
},
|
||||
"technical_preservation_owner": "Codex and programmers",
|
||||
"Tempo_review": "Utility, clarity and presentation; no obligation to rediscover technical regressions",
|
||||
"sequence": [
|
||||
"Corrections and stabilization",
|
||||
"Fiscal simulator with defined scope",
|
||||
"Real estate",
|
||||
"Consumer goods and franchises",
|
||||
"Statistics and dashboards",
|
||||
"AI"
|
||||
],
|
||||
"accepted_acceptance_tests_repeated": false,
|
||||
"active_database_writes": 0,
|
||||
"runtime_application_source_changes": 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"reference_commit": "276d833a4b4f9071db328b653f48529b2dfac4f9",
|
||||
"runtime_files_changed_since_066707ec": [],
|
||||
"matrix_records": 3423,
|
||||
"matrix_columns": 49,
|
||||
"updated_existing_rows": [
|
||||
"AUD-GEO-01",
|
||||
"AUD-GEO-02",
|
||||
"AUD-GEO-03",
|
||||
"AUD-REL-01",
|
||||
"AUD-REL-02",
|
||||
"AUD-DESK-01",
|
||||
"AUD-DESK-02",
|
||||
"AUD-SIM-01",
|
||||
"AUD-LEG-06"
|
||||
],
|
||||
"accepted_receipts_unchanged_sha256": {
|
||||
"map-stabilization-receipt-20261024.json": "2b69216b644f2244897431a10f3e6828e822d1317fab326a457a5934261c1618",
|
||||
"anchor-integration-receipt-20261023.json": "86b0d01aa2fb03be84c1b1c6254ea0932abe813375f00560aaf39ce78d199f3d",
|
||||
"treatment-scope-installation-receipt-20261023.json": "a0904250e1ed201276fce0318b9cc131edf4c8ec0ab6d449536b1e1344906798",
|
||||
"multi-opportunity-context-installation-receipt-20261023.json": "3e1030de9aafd916252926a33d18cf808a05e389ddce5d9a3cd5230f039bc8f2"
|
||||
},
|
||||
"new_tests": {
|
||||
"tests": 2,
|
||||
"assertions": 8,
|
||||
"passed": true
|
||||
},
|
||||
"active_database_writes": 0,
|
||||
"status": "installed_reference_verified",
|
||||
"date_Africa_Johannesburg": "2026-10-24",
|
||||
"git_tag": "reference/stabilization-20261024",
|
||||
"served_revision": {
|
||||
"commit": "276d833a4b4f9071db328b653f48529b2dfac4f9",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T09:10:08.359035+00:00",
|
||||
"manifest_sha256": "949d1047867f5879e724e5ddc38d4865b06aeb92641337d3952ea7b5ad55bb7a"
|
||||
},
|
||||
"previous_functional_revision": "066707ece631f0a7c963031c211844fbdd68916b",
|
||||
"verification_method": "New unit control tested; semantic matrix/inventory reconciliation; canonical accepted receipt hashes; empty Git diff for runtime/schema/config/permissions/deploy; public installed revision. Prior accepted technical and visual proofs reused.",
|
||||
"accepted_tests_repeated_by_this_review": false,
|
||||
"automatic_installer": "Normal existing pipeline; no extra manual acceptance round",
|
||||
"fresh_authenticated_database_read_claimed": false,
|
||||
"business_data_preservation": "Accepted map receipt 5d45541a reused: 29 fiches, 28 links, 408 geometries, 172 business/nonvolatile tables equal; no runtime or data mutation introduced by this reference delta",
|
||||
"known_open_stabilization_faults": [],
|
||||
"documentary_pending": [
|
||||
"AUD-REL-02: six legacy opportunity/anchor-cluster pairs remain indeterminate without documented relationships",
|
||||
"Two incomplete originals in the legacy collection retain the accepted documentary limit"
|
||||
],
|
||||
"not_yet_proven_existing_components": [
|
||||
6,
|
||||
18,
|
||||
21,
|
||||
22,
|
||||
24,
|
||||
25,
|
||||
35
|
||||
],
|
||||
"future_requirements": [
|
||||
"AUD-MARKET-01",
|
||||
"AUD-ESTABLISHMENT-01",
|
||||
"AUD-FUND-01",
|
||||
"AUD-COMPANY-01",
|
||||
"AUD-COMPANY-02",
|
||||
"AUD-CAPITAL-01",
|
||||
"AUD-CAPITAL-02",
|
||||
"AUD-FINTECH-01"
|
||||
],
|
||||
"technical_preservation_owner": "Codex and programmers",
|
||||
"Tempo_evaluation": "Usefulness, clarity, presentation; does not need to rediscover technical regressions",
|
||||
"next": "Fiscal simulator scope definition; not started by this consolidation",
|
||||
"reference_sequence": [
|
||||
"Stabilization",
|
||||
"Defined fiscal simulator scope",
|
||||
"Real estate",
|
||||
"Consumer goods and franchises",
|
||||
"Statistics and dashboards",
|
||||
"AI"
|
||||
],
|
||||
"not_complete_portal_acceptance": true
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"status": "installed_in_homologation_delta_verified",
|
||||
"date": "2026-10-23",
|
||||
"target": "https://teste-investidor.tempo.co.mz",
|
||||
"served_commit": "8036b9b071229dbf7e85ea748db70abcbeefc379",
|
||||
"functional_commits": [
|
||||
"1afdfee8",
|
||||
"2856240c"
|
||||
],
|
||||
"previous_main": "55136b446deb710adf58ce2460e571bb19e94375",
|
||||
"public_revision": {
|
||||
"commit": "8036b9b071229dbf7e85ea748db70abcbeefc379",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-23T16:46:11.203132+00:00",
|
||||
"manifest_sha256": "6021421c4ab12146c5fae9c8966e3dae5c8bd1361132e12184e65e00b7e8951e"
|
||||
},
|
||||
"installer": {
|
||||
"status": "installed",
|
||||
"commit": "8036b9b071229dbf7e85ea748db70abcbeefc379",
|
||||
"release": "/var/www/investmoz-homologacao/releases/8036b9b071229dbf7e85ea748db70abcbeefc379-5e851af2",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/55136b446deb710adf58ce2460e571bb19e94375-cad6589e",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"8036b9b071229dbf7e85ea748db70abcbeefc379"
|
||||
],
|
||||
"finished_at": "2026-10-23T16:46:13.798467+00:00"
|
||||
},
|
||||
"pipeline_summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 24.30s",
|
||||
"OK (57 tests, 309 assertions)",
|
||||
"# tests 214",
|
||||
"# pass 214",
|
||||
"# fail 0"
|
||||
],
|
||||
"preservation": {
|
||||
"fast_forward": true,
|
||||
"force": false,
|
||||
"protected_files": {
|
||||
"app/Services/InvestmentComplements.php": true,
|
||||
"resources/js/components/investment-complements.tsx": true,
|
||||
"docs/investmoz/unification/continuity-corrections-installation-receipt-20261023.json": true
|
||||
},
|
||||
"matrix_changed_rows": [
|
||||
"AUD-REL-02",
|
||||
"AUD-LEG-06",
|
||||
"AUD-SIM-INT03",
|
||||
"AUD-SIM-INT06"
|
||||
],
|
||||
"unrelated_matrix_records_preserved": 3419,
|
||||
"schema_config_fixtures_shipped": false
|
||||
},
|
||||
"native_saved_pdf": {
|
||||
"actual_file": "C:\\laragon\\www\\portal-investidor\\outputs\\multi-opportunity-fix-20261023\\Relatório — SYNTHETIC QA - escolha comum aos tres consumidores.pdf",
|
||||
"sha256": "010eb4ea12015563c1b2f8bc255b1078c276f824c50690732541d5bffe34b8a6",
|
||||
"pages": 10,
|
||||
"revision": 13,
|
||||
"checks": {
|
||||
"second_opportunity": true,
|
||||
"manica": true,
|
||||
"land_requirement": true,
|
||||
"sector_requirement": true,
|
||||
"human_state": true,
|
||||
"technical_state_absent": true,
|
||||
"first_location_absent": true,
|
||||
"total": true,
|
||||
"secured": true,
|
||||
"gap": true
|
||||
},
|
||||
"visual_review": {
|
||||
"status": "passed",
|
||||
"pages_inspected": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10
|
||||
],
|
||||
"pagination": "1/10 through 10/10; A4; repeated table headers; no clipped rows or visible overlaps",
|
||||
"last_page": "sparse final page contains final source rows and annex statement; not blank"
|
||||
},
|
||||
"discovery": {
|
||||
"machine": "ONALA",
|
||||
"user": "macbook",
|
||||
"session": "Console",
|
||||
"extension": ".pdf",
|
||||
"size_bytes": 191637,
|
||||
"requested_basename_not_found": "candidata-1afdfee8.pdf",
|
||||
"actual_basename": "Relatório — SYNTHETIC QA - escolha comum aos tres consumidores.pdf",
|
||||
"resolution": "existing file discovered by listing the exact requested directory; no rename, copy or PDF regeneration"
|
||||
},
|
||||
"regenerated": false
|
||||
},
|
||||
"installed_delta": {
|
||||
"real_opportunity": 53,
|
||||
"scope": {
|
||||
"case_id": "958df138-7980-4685-8389-fa90be02ed6b",
|
||||
"case_version": 5,
|
||||
"context_revision": 1,
|
||||
"simulator_opportunity": "opportunity:53",
|
||||
"snapshot_choices": [
|
||||
"opportunity:53"
|
||||
],
|
||||
"snapshot_territory": "Sofala",
|
||||
"land_need": "no",
|
||||
"land_step": {
|
||||
"code": "S10",
|
||||
"title": "Regularização da terra",
|
||||
"state": "dispensed",
|
||||
"applicability": "not_needed_for_preparation",
|
||||
"reason": "",
|
||||
"context_review_required": true
|
||||
},
|
||||
"requirements_scopes": [
|
||||
"opportunity:53"
|
||||
]
|
||||
},
|
||||
"checks": [
|
||||
"new fiche links preserve opportunity53",
|
||||
"dossier explicitly selects same opportunity and keeps tool query scope",
|
||||
"authenticated context GET returns canonical simulator opportunity53 and its own requirements",
|
||||
"existing no-land decision hides land action in the inspected dossier",
|
||||
"15 changed functional file hashes equal Git release sources"
|
||||
],
|
||||
"case_version_unchanged_from_prior_receipt": true,
|
||||
"requests_created_updated_submitted": 0,
|
||||
"accepted_business_tests_repeated": false,
|
||||
"qa_second_opportunity_cases_reused": true
|
||||
},
|
||||
"remaining_scope": {
|
||||
"anchors": "analysis6985f82e: two implementation gaps, territorial reconciliation and directed interest/authentication proof; not implemented by this delivery",
|
||||
"statistics_and_AI": "deferred"
|
||||
},
|
||||
"evidence": [
|
||||
{
|
||||
"path": "outputs/treatment-install-20261023/integration-preservation.json",
|
||||
"sha256": "c6fcae5f64986d13216948589a35d1fa2d9f62229f4bd7a8a8c9f559f463fd6b"
|
||||
},
|
||||
{
|
||||
"path": "outputs/treatment-install-20261023/installer-status.json",
|
||||
"sha256": "f7875ffe9fa47092e5f0288ecbd97f4f016413628b2faed6815977287c26461e"
|
||||
},
|
||||
{
|
||||
"path": "outputs/treatment-install-20261023/public-revision.json",
|
||||
"sha256": "23325ab4cce9fced625b237c9793e3af309d923f12abbd047de96670611c8cac"
|
||||
},
|
||||
{
|
||||
"path": "outputs/treatment-install-20261023/installed-hashes.json",
|
||||
"sha256": "91f9df68c0d3b9c0ace6948145362f303291c5698bb2594bff9bb9c3aabc159c"
|
||||
},
|
||||
{
|
||||
"path": "outputs/treatment-install-20261023/installed-links.json",
|
||||
"sha256": "bf73f59ecfaccf8d10f45a72c36bd684e1b12abb667a65e0d2cda4dd396eb324"
|
||||
},
|
||||
{
|
||||
"path": "outputs/treatment-install-20261023/installed-scope-summary.json",
|
||||
"sha256": "fd410fa10ee63b8c09c311530cab78ca4f1f2b961c3d31cc78c40b86bc7af255"
|
||||
},
|
||||
{
|
||||
"path": "outputs/treatment-install-20261023/installed-dossier.txt",
|
||||
"sha256": "b5577b82ad0bce03131ffddbc365f1d039229549d6b83227ad57baffd1037f07"
|
||||
},
|
||||
{
|
||||
"path": "outputs/treatment-install-20261023/installed-dossier.png",
|
||||
"sha256": "9a3133a9fb6ca11fc64e0681393d518676bb72bceb75bfc95950466271158509"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
Exemplar/caminho,Bytes,SHA256,Tipo,Nota de leitura,Disponibilidade,Uso em cálculo,Situação jurídica/documental,Edição/versão identificada,Disponibilidade conferida 12/10/2026,Caminho atual/alias,SHA256 atual,Correspondência binária,Observação da reconciliação
|
||||
Exemplar/caminho,Bytes,SHA256,Tipo,Nota de leitura,Disponibilidade,Uso em cálculo,Situação jurídica/documental,Edição/versão identificada,Disponibilidade conferida 12/10/2026,Caminho atual/alias,SHA256 atual,Correspondência binária,Observação da reconciliação
|
||||
C:\Mac\Home\Documents\TEMPO\Portal Tempo\Servicos Tempo\~WRL2550.tmp,451286,0ae1dc970cc219a57791483bf22f134b2fab1ff5a6d3cd98eba98a5737f23010,original,,Acervo inventariado; consulta/publicação individual não inferida,Nenhum cálculo ativado pela auditoria,Situação documental não determinada por inventário,,Exemplar acessível,C:\Mac\Home\Documents\TEMPO\Portal Tempo\Servicos Tempo\~WRL2550.tmp,0ae1dc970cc219a57791483bf22f134b2fab1ff5a6d3cd98eba98a5737f23010,Idêntico ao hash histórico,Hash original preservado; alteração de nome/caminho não cria outro documento/requisito.
|
||||
C:\Mac\Home\Documents\TEMPO\Portal Tempo\Servicos Tempo\diagramas.docx,6005783,ece2c2edee8df625e712ff9f285df5c787378fa3477e466303b5a46ee0971c09,original,,Acervo inventariado; consulta/publicação individual não inferida,Nenhum cálculo ativado pela auditoria,Situação documental não determinada por inventário,,Exemplar acessível,C:\Mac\Home\Documents\TEMPO\Portal Tempo\Servicos Tempo\diagramas.docx,ece2c2edee8df625e712ff9f285df5c787378fa3477e466303b5a46ee0971c09,Idêntico ao hash histórico,Hash original preservado; alteração de nome/caminho não cria outro documento/requisito.
|
||||
C:\Mac\Home\Documents\TEMPO\Portal Tempo\Servicos Tempo\diagramas.docx#word/media/image1.png,1208097,1495ef144a048018723db1c0e11217fa14b4d7b14d8e65e32a3adeea23d08c4c,anexo embebido,,Acervo inventariado; consulta/publicação individual não inferida,Nenhum cálculo ativado pela auditoria,Situação documental não determinada por inventário,,Anexo embebido inventariado,C:\Mac\Home\Documents\TEMPO\Portal Tempo\Servicos Tempo\diagramas.docx,,Não aplicável/sem bytes disponíveis,Hash original preservado; alteração de nome/caminho não cria outro documento/requisito.
|
||||
@@ -606,3 +606,5 @@ C:\laragon\www\portal-investidor\docs\investmoz\v2\auditoria-portal\legado-sitem
|
||||
\\mac\home\Documents\TEMPO\Portal Tempo\Servicos Tempo\Relatorios\novos\segmentar processos v1.docx,104147,bf26caeee0437a8d292bf29be59247e2862c14e79b5ae465c00322747af72af5,.docx,Original integral907parágrafos/14tabelas; relações externas/notas/alterações verificadas; hash e cópia privada preservados. Identidade binária com v1(3).docx confirmada pelo responsável em 11/10/2026; v1.docx é o nome local do mesmo exemplar.,PrivadoQA/biblioteca recurso29,Nenhum cálculo ativado.,Documento de programação; não estender aceitação oficial. Original/histórico preservados.,"v1; propriedadeOOXMLrevision15; modificado11/10/2026 12:29UTC; mesmo exemplar de v1(3).docx, confirmado pelo responsável em 11/10/2026.",Exemplar acessível,\\mac\home\Documents\TEMPO\Portal Tempo\Servicos Tempo\Relatorios\novos\segmentar processos v1.docx,bf26caeee0437a8d292bf29be59247e2862c14e79b5ae465c00322747af72af5,Idêntico ao hash histórico,Hash original preservado; alteração de nome/caminho não cria outro documento/requisito.
|
||||
\\mac\home\Documents\TEMPO\Portal Tempo\Servicos Tempo\Relatorios\novos\~$gmentar processos v1.docx,162,dd30703646feabe737708b9072861ce24e7ebd953e25847edcb23143383d5ae2,.docx,Inventariado integralmente no mesmo diretório antes da seleção; conteúdo não promovido a implementação. Not a valid DOCX ZIP; inventoried without discarding.,Origem acessível; divulgação não inferida.,Nenhum cálculo ativado.,Documento de programação; não estender aceitação oficial. Original/histórico preservados.,Nome/hash do exemplar; versão substantiva não inferida.,Original indisponível,\\mac\home\Documents\TEMPO\Portal Tempo\Servicos Tempo\Relatorios\novos\~$gmentar processos v1.docx,,Não aplicável/sem bytes disponíveis,"Ficheiro temporário Word indisponível; referência histórica preservada, não omitir do inventário."
|
||||
\\mac\home\Documents\TEMPO\Portal Tempo\Servicos Tempo\Relatorios\novos\~WRL2698.tmp,20868,fb8a11801469536438e9e85cacc3468d33253d22e94bb366f249d109ba9ab827,.tmp,Inventariado integralmente no mesmo diretório antes da seleção; conteúdo não promovido a implementação. ,Origem acessível; divulgação não inferida.,Nenhum cálculo ativado.,Documento de programação; não estender aceitação oficial. Original/histórico preservados.,Nome/hash do exemplar; versão substantiva não inferida.,Original indisponível,\\mac\home\Documents\TEMPO\Portal Tempo\Servicos Tempo\Relatorios\novos\~WRL2698.tmp,,Não aplicável/sem bytes disponíveis,"Ficheiro temporário Word indisponível; referência histórica preservada, não omitir do inventário."
|
||||
https://archive.gazettes.africa/archive/mz/2025/mz-government-gazette-series-i-supplement-dated-2025-05-21-no-95.pdf,329070,e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358,original oficial PDF,"BR95,I Série,Suplemento,21/05/2025;Lei3/2025 arts.1/2 eAnexoII;2páginas conferidas",Exemplar privado disponível para consulta;sem publicação automática,"Aplicado emG3cessação2026/P038–P043,emcódigoQA;semprorrogação presumida,benefíciohistórico ou activaçãoemservidor.",Origem oficial identificada;9(13) com termo31/12/2025;sem prorrogação presumida,Lei3/2025 de21/05/2025,Conferido em24/10/2026,C:\laragon\www\portal-investidor\docs\investmoz\simulations\source-archive\BR-95-I-Suplemento-2025-05-21.pdf,e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358,Original preservado porbytes/hash,G3 candidatoac948bd8b7ff34d661dd4cb7cbe88221093dfd83:termo31/12/2025 executável no percurso2026;P038–P043 comcode/APIaprovados evisualpendente. Original/proveniência/publicação preservados;zero importação/publicação embaseactiva. Histórico: Aquisição documental apenas;zero importação/publicação em base activa. Fonte aceite conforme decisãoTempo08/10;P038–P043 permanecem funcionais pendentes.
|
||||
https://portaldogoverno.gov.mz/governo-introduz-alteracoes-nos-regulamentos-fiscais-para-reforcar-eficiencia-tributaria/,,,"Notícia oficial online,sem original porbytes preservado",Governo30/09/2026:aprovação dealterações regulamentaresIVA/IRPC/IRPS,Consulta online livre;sem importação/publicação peloportal,Não usada paraactivar cálculo;inventariada paracotejo dodiploma,"Comunicado não substitui decreto,publicação ou períodoaplicável","RegulamentoCIVA/Decreto7/2008:artigos mencionados3,7,8,15,16-A,18,21,23,28,36,37",Consultado24/10/2026,URLonline;semficheirooriginallocal,,Proveniência oficial dapágina;semafirmar vigência dodiploma,Cotejar publicação/texto/período eafectarapenas regrasdependentes;sem bloqueio genéricoG4A
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@@ -153,7 +153,7 @@ export function NavigationContextProvider({
|
||||
}
|
||||
const view = focus
|
||||
? await contextApi<NavigationView>(
|
||||
`/investimentos/${focus.case_id}`,
|
||||
`/investimentos/${focus.case_id}${direct===focus.case_id && new URL(url,'https://context.invalid').searchParams.get('opportunity') ? '?opportunity='+encodeURIComponent(new URL(url,'https://context.invalid').searchParams.get('opportunity')!) : ''}`,
|
||||
)
|
||||
: null;
|
||||
if (!stopped) {
|
||||
@@ -285,7 +285,7 @@ export function NavigationContextSummary() {
|
||||
{view && (
|
||||
<Link
|
||||
className="font-semibold underline"
|
||||
href={`/investimentos/${active}`}
|
||||
href={`/investimentos/${active}${scopedChoice ? '?opportunity='+encodeURIComponent(scopedChoice.opportunity.key) : ''}`}
|
||||
>
|
||||
Abrir dossier atual
|
||||
</Link>
|
||||
@@ -293,7 +293,7 @@ export function NavigationContextSummary() {
|
||||
{view?.next && (
|
||||
<Link
|
||||
className="underline"
|
||||
href={`/investimentos/${active}#${view.next.code}`}
|
||||
href={`/investimentos/${active}${scopedChoice ? '?opportunity='+encodeURIComponent(scopedChoice.opportunity.key) : ''}#${view.next.code}`}
|
||||
>
|
||||
Preparar {view.next.code}
|
||||
</Link>
|
||||
|
||||
@@ -32,6 +32,10 @@ const empty = (v: unknown) =>
|
||||
(Array.isArray(v) && v.length === 0);
|
||||
const text = (v: unknown) =>
|
||||
typeof v === 'string' ? v : JSON.stringify(v ?? '');
|
||||
function savedOpportunity(values: Record<string, unknown>): string {
|
||||
if (values.context_opportunity) return String(values.context_opportunity);
|
||||
try { return JSON.parse(String(values.context_applicability_snapshot ?? '')).consumer_opportunity ?? ''; } catch { return ''; }
|
||||
}
|
||||
const displayField = (values: Record<string, unknown>, key: string) =>
|
||||
key.endsWith('_id')
|
||||
? text(values[`${key}_label`]) || (empty(values[key]) ? 'não informado' : 'Referência escolhida; designação por recuperar')
|
||||
@@ -52,7 +56,11 @@ export function DossierPrefill(props: Props) {
|
||||
const [selected, setSelected] = useState<string[]>([]);
|
||||
const [reviewed, setReviewed] = useState(false);
|
||||
const [message, setMessage] = useState('');
|
||||
const [opportunity, setOpportunity] = useState(() => String(props.values.context_opportunity || props.initialOpportunity || (typeof window !== 'undefined' ? new URLSearchParams(window.location.search).get('opportunity') || '' : '')));
|
||||
const userChose = useRef(false);
|
||||
const [opportunity, setOpportunity] = useState(() => String(props.initialOpportunity || (typeof window !== 'undefined' ? new URLSearchParams(window.location.search).get('opportunity') || '' : '') || savedOpportunity(props.values)));
|
||||
useEffect(() => {
|
||||
if (!userChose.current && !opportunity && enabled) { const saved = savedOpportunity(props.values); if (saved) setOpportunity(saved); }
|
||||
}, [enabled, props.values, opportunity]);
|
||||
const loadedOpportunity = useRef('');
|
||||
useEffect(() => {
|
||||
if (!contextId) return;
|
||||
@@ -80,7 +88,7 @@ export function DossierPrefill(props: Props) {
|
||||
const chosen = opportunity || (choices.length === 1 ? choices[0].opportunity.key : '');
|
||||
const source = view.prefill[consumer] ?? {};
|
||||
const now = latest.current;
|
||||
if (consumer !== 'simulator' && chosen && now.values.context_opportunity !== chosen && (!now.allowedFields || now.allowedFields.includes('context_opportunity'))) now.onApply({context_opportunity:chosen},true);
|
||||
if ((chosen || consumer === 'simulator') && now.values.context_opportunity !== chosen && (!now.allowedFields || now.allowedFields.includes('context_opportunity'))) now.onApply({context_opportunity:chosen},true);
|
||||
const inherited = inheritCompatibleFields(`dossier:${contextId}:${consumer}`, now.values, source, now.values.context_reuse, now.allowedFields);
|
||||
if (Object.keys(inherited.patch).length || (now.persistInheritance !== false && now.values.context_reuse !== inherited.metadata)) {
|
||||
// The shared reconciliation has already selected safe fields; metadata travels with the same saved form.
|
||||
@@ -139,19 +147,19 @@ export function DossierPrefill(props: Props) {
|
||||
<p>
|
||||
<Link
|
||||
className="underline"
|
||||
href={`/investimentos/${contextId}`}
|
||||
href={`/investimentos/${contextId}${chosenKey ? '?opportunity='+encodeURIComponent(chosenKey) : ''}`}
|
||||
>
|
||||
{view.case.title}
|
||||
</Link>
|
||||
{' · '}<Link className="underline" href={`/investimentos/${contextId}`}>Voltar ao dossier</Link>
|
||||
{' · '}<Link className="underline" href={`/investimentos/${contextId}${chosenKey ? '?opportunity='+encodeURIComponent(chosenKey) : ''}`}>Voltar ao dossier</Link>
|
||||
</p>
|
||||
{(consumer==='simulator'||opportunity||view.context.opportunity_choices?.length===1)&&<InvestmentContextAssessment contextId={contextId} raw={view.prefill.simulator?.context_applicability_snapshot} />}
|
||||
{(opportunity||view.context.opportunity_choices?.length===1)&&<InvestmentContextAssessment contextId={contextId} raw={view.prefill.simulator?.context_applicability_snapshot} />}
|
||||
<InvestmentConsumerIdentity raw={props.values.context_opportunity_snapshot}/>
|
||||
{consumer!=='simulator'&&contextId&&<InvestmentRequirements contextId={contextId} assessment={view.context.requirements_assessment ? {...view.context.requirements_assessment,requirements:view.context.requirements_assessment.requirements.filter(r=>r.opportunity_key===(opportunity || (view.context.opportunity_choices?.length===1 ? view.context.opportunity_choices[0].opportunity.key : '')))} : null}/>}
|
||||
{consumer !== 'simulator' && !!view.context.opportunity_choices?.length && <label className="block font-semibold">Oportunidade em tratamento
|
||||
{contextId&&<InvestmentRequirements contextId={contextId} excludedSteps={view.steps.filter(step=>step.state==='dispensed').map(step=>step.code)} assessment={view.context.requirements_assessment ? {...view.context.requirements_assessment,requirements:view.context.requirements_assessment.requirements.filter(r=>r.opportunity_key===chosenKey)} : null}/>}
|
||||
{!!view.context.opportunity_choices?.length && <label className="block font-semibold">Oportunidade em tratamento
|
||||
<select className="ml-2 rounded border bg-white p-2" disabled={readOnly || !view.can_write || (!!props.allowedFields&&!props.allowedFields.includes('context_opportunity'))} value={opportunity || (view.context.opportunity_choices.length===1 ? view.context.opportunity_choices[0].opportunity.key : '')} onChange={e=>{
|
||||
const key=e.target.value; setOpportunity(key); setSelected([]);setReviewed(false);
|
||||
props.onApply({context_opportunity:key},true);
|
||||
const key=e.target.value; userChose.current=true; setOpportunity(key); setSelected([]);setReviewed(false);
|
||||
if (consumer !== 'simulator') props.onApply({context_opportunity:key},true);
|
||||
props.onReview?.(view.context.revision,false);
|
||||
}}><option value="">Escolha a oportunidade deste pedido</option>{view.context.opportunity_choices.map(c=><option key={c.opportunity.key} value={c.opportunity.key}>{c.opportunity.title} — {c.territory?.title??'Localização por definir'}</option>)}</select>
|
||||
{!opportunity && view.context.opportunity_choices.length>1 && <p>Escolha a oportunidade para recuperar a localização e os requisitos específicos. Os dados comuns e as suas edições conservam-se.</p>}
|
||||
@@ -166,7 +174,7 @@ export function DossierPrefill(props: Props) {
|
||||
</p>
|
||||
)}
|
||||
{message && <p role="status">{message}</p>}
|
||||
{!!view.context.opportunity_choices?.length && (consumer==='simulator'||!!chosenChoice) && <OpportunityChoices choices={consumer==='simulator' ? view.context.opportunity_choices : view.context.opportunity_choices.filter(c=>c.opportunity.key===chosenKey)}/>}
|
||||
{!!chosenChoice && <OpportunityChoices choices={(view.context.opportunity_choices ?? []).filter(c=>c.opportunity.key===chosenKey)}/>}
|
||||
{consumer!=='simulator'&&chosenChoice?.opportunity.fields.sector&&<p>Sector desta oportunidade: {chosenChoice.opportunity.fields.sector}</p>}
|
||||
<SelectedComplements items={view.context.complements ?? []}/>
|
||||
{Object.entries(view.context.selection)
|
||||
|
||||
@@ -72,6 +72,6 @@ export default function OpportunityChoices({choices, onChange, disabled = false,
|
||||
return <section className="space-y-4" aria-label="Oportunidades e respectivas localizações">
|
||||
<h2 className="text-xl font-bold">Oportunidades escolhidas e localização de cada ficha</h2>
|
||||
<p>{onChange?'Escolha o corredor e confirme onde pretende realizar o investimento.':'Escolhas guardadas no dossier; cada oportunidade conserva a sua localização e associações.'}</p>
|
||||
{choices.map((c,i)=><div key={c.opportunity.key}>{contextId&&!onChange&&<nav aria-label={"Preparar "+c.opportunity.title} className="flex gap-4"><Link className="underline" href={`/investidor/terra-duat/novo?context=${contextId}&opportunity=${encodeURIComponent(c.opportunity.key)}`}>Terra/DUAT desta oportunidade</Link><Link className="underline" href={`/balcao-virtual/dossiers/${contextId}?opportunity=${encodeURIComponent(c.opportunity.key)}`}>Balcão desta oportunidade</Link></nav>}<ChoiceCard contextId={contextId} key={c.opportunity.key} c={c} i={i} corridors={corridors} disabled={disabled} update={change=>update(i,change)} remove={onChange?()=>onChange(choices.filter((_,index)=>index!==i)):undefined}/></div>)}
|
||||
{choices.map((c,i)=><div key={c.opportunity.key}>{contextId&&!onChange&&<nav aria-label={"Preparar "+c.opportunity.title} className="flex gap-4"><Link className="underline" href={`/simulador-fiscal?context=${contextId}&opportunity=${encodeURIComponent(c.opportunity.key)}`}>Simular esta oportunidade</Link><Link className="underline" href={`/investimentos/${contextId}?opportunity=${encodeURIComponent(c.opportunity.key)}`}>Etapas e pedidos desta oportunidade</Link><Link className="underline" href={`/investidor/terra-duat/novo?context=${contextId}&opportunity=${encodeURIComponent(c.opportunity.key)}`}>Terra/DUAT desta oportunidade</Link><Link className="underline" href={`/balcao-virtual/dossiers/${contextId}?opportunity=${encodeURIComponent(c.opportunity.key)}`}>Balcão desta oportunidade</Link></nav>}<ChoiceCard contextId={contextId} key={c.opportunity.key} c={c} i={i} corridors={corridors} disabled={disabled} update={change=>update(i,change)} remove={onChange?()=>onChange(choices.filter((_,index)=>index!==i)):undefined}/></div>)}
|
||||
</section>;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ export default function InvestmentRequirements({assessment, contextId, excludedS
|
||||
{[...groups.entries()].map(([key, rows])=><details key={key} className={card}><summary className="cursor-pointer font-semibold">{rows[0].opportunity_title} · {rows.length} aspectos a conferir</summary>{rows.map(r=><article key={r.opportunity_key+':'+r.code} className="my-3 space-y-2 border-t pt-3">
|
||||
<h3 className="font-semibold">{r.title} — {r.opportunity_title}</h3><p>{labels[r.state] ?? r.state}</p><p>Entidade: {r.authority}</p><p>{r.basis}</p>
|
||||
<ul className="list-disc pl-5">{r.documents.map(d=><li key={d}>{d}</li>)}</ul>
|
||||
<a className="underline" href={r.source_url}>Consultar fundamento e procedimento</a>{' · '}<Link className="underline" href={`/investimentos/${contextId}#${r.step}`}>Preparar e acompanhar em {r.step}</Link>
|
||||
<a className="underline" href={r.source_url}>Consultar fundamento e procedimento</a>{' · '}<Link className="underline" href={`/investimentos/${contextId}?opportunity=${encodeURIComponent(r.opportunity_key)}#${r.step}`}>Preparar e acompanhar em {r.step}</Link>
|
||||
<p>{r.decision}</p>
|
||||
</article>)}</details>)}
|
||||
</section>;
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
import { useState } from 'react';
|
||||
import { acquisitionBook, acquisitionCurrent, acquisitionExcludedFields, acquisitionPlanReferences, acquisitionReportRows, recordAcquisitions, newAcquisition, reuseAcquisitions, saveAcquisitionBook, type Acquisition, type AcquisitionBook } from '@/lib/iva-acquisitions';
|
||||
import { acquisitionTreatmentIssue, continueWithoutFormerExploration, formerExplorationSource, type AcquisitionTreatment } from '@/lib/iva-acquisition-continuity';
|
||||
|
||||
export function SimulationAcquisitions({draft,onChange}:{draft:Record<string,unknown>;onChange:(field:string,value:string)=>void}) {
|
||||
const [error,setError]=useState('');
|
||||
const [manualPeriod,setManualPeriod]=useState('');
|
||||
let book:AcquisitionBook;
|
||||
try {book=acquisitionBook(draft);} catch(cause) {return <p role="alert">{String(cause)}</p>;}
|
||||
const save=(next:AcquisitionBook)=>{try {onChange('modelo_a_snapshot',saveAcquisitionBook(draft,next));setError('');}catch(cause){setError(String(cause));}};
|
||||
const change=(id:string,patch:Partial<Acquisition>)=>save({...book,rows:book.rows.map(row=>row.id===id?{...row,...patch}:row)});
|
||||
const run=(action:()=>void)=>{try{action();setError('');}catch(cause){setError(cause instanceof Error?cause.message:String(cause));}};
|
||||
let references:ReturnType<typeof acquisitionPlanReferences>=[];
|
||||
try {references=acquisitionPlanReferences(draft);}catch { /* The action reports the concrete currency/source error without replacing saved values. */ }
|
||||
const labels:Record<string,string>={'03':'Base à taxa reduzida','04':'IVA à taxa reduzida','05':'Isentas com direito à dedução','06':'Operações art.18(1)(b)','07':'Isentas sem direito','11':'Importações','12':'Regularizações a favor do sujeito passivo','13':'Regularizações a favor do Estado'};
|
||||
const select=(row:Acquisition,key:keyof Acquisition,label:string,options:Array<[string,string]>)=><label className="block" key={key}>{label}<select className="block rounded border p-2" value={String(row[key]??'')} onChange={e=>change(row.id,{[key]:e.target.value})}><option value="">Por indicar</option>{options.map(([value,text])=><option key={value} value={value}>{text}</option>)}</select></label>;
|
||||
const yesNo:Array<[string,string]>=[['yes','Sim'],['no','Não']];
|
||||
return <section aria-label="Aquisições e apuramento parcial Modelo A" className="space-y-4 rounded border p-3">
|
||||
<h4 className="font-semibold">Compras e apuramento parcial do Modelo A</h4>
|
||||
<p>Oportunidade em tratamento: {String(draft.context_opportunity||'entrada geral')}. Moeda de origem: {book.currency||'por indicar'}. A compra registada não gera automaticamente IVA dedutível.</p>
|
||||
{book.currency && draft.currency!==book.currency && <p role="alert">As compras conservam {book.currency}; o projecto está em {String(draft.currency||'moeda por indicar')}. Reveja a moeda no projecto. Os montantes e o resultado anterior não foram convertidos ou reinterpretados.</p>}
|
||||
{!book.currency && !!draft.currency && <button type="button" className="underline" onClick={()=>save({...book,currency:String(draft.currency),rows:book.rows.map(row=>row.sourceCurrency?row:{...row,sourceCurrency:String(draft.currency)})})}>Confirmar explicitamente {String(draft.currency)} como moeda de origem dos valores sem moeda, conservando os montantes</button>}
|
||||
<p>Primeiro âmbito: aquisições internas em MZN, afectação exclusiva a operações tributadas, sem exclusões ou dedução parcial, documento e dedução no mesmo período de 2026. Nas projecções, cada confirmação é um pressuposto, sem certificar documento ou declaração efectiva. Indique dois valores entre líquido, IVA e bruto; o terceiro é obtido por diferença ou soma, sem taxa de compra presumida.</p>
|
||||
<label className="block">Adquirente sujeito passivo de IVA no regime normal (efectivo ou pressuposto da projecção)<select className="block rounded border p-2" value={book.taxpayerRegistered??''} onChange={e=>save({...book,taxpayerRegistered:e.target.value as AcquisitionBook['taxpayerRegistered']})}><option value="">Por confirmar</option><option value="yes">Sim</option><option value="no">Não / outro enquadramento — fora deste lote</option></select></label>
|
||||
{error&&<p role="alert">{error}</p>}
|
||||
<details className="rounded border p-2"><summary>Indicar mês da aquisição pelo documento ou pressuposto da projecção</summary>
|
||||
<p>Para compras introduzidas directamente, indique o mês aplicável sem depender de ter vendas nesse mês. A reutilização de valores do orçamento mantém a conferência da origem.</p>
|
||||
<label>Mês da aquisição<input type="month" min="2026-01" max="2026-12" value={manualPeriod} onChange={e=>setManualPeriod(e.target.value)}/></label>
|
||||
<button type="button" onClick={()=>run(()=>{if(!/^2026-(0[1-9]|1[0-2])$/.test(manualPeriod))throw new Error('Indique um mês válido de2026.');if(book.periods.some(p=>p.period===manualPeriod))throw new Error('Esse mês já consta da cobertura; valores conservados.');save({...book,periods:[...book.periods,{period:manualPeriod,complete:false,absent:[]}]});})}>Acrescentar mês indicado</button>
|
||||
</details>
|
||||
<button type="button" className="underline" onClick={()=>run(()=>save(reuseAcquisitions(draft,book)))}>Reutilizar compras e períodos existentes</button>
|
||||
<button type="button" className="ml-3 underline" disabled={!book.periods.length} onClick={()=>save({...book,rows:[...book.rows,newAcquisition(crypto.randomUUID(),book.periods[0]?.period??'',book.currency)]})}>Acrescentar aquisição em falta</button>
|
||||
{book.rows.map(row=><details key={row.id} className="rounded border p-3"><summary>{row.description||'Aquisição adicional'} — {row.period} — campo{row.field}</summary>
|
||||
<details className="rounded border p-2"><summary>Enquadramento especial da aquisição / referência anterior</summary>
|
||||
<label>Tratamento da aquisição<select value={row.acquisitionTreatment??''} onChange={e=>row.acquisitionTreatment==='former_exploration_exemption'&&e.target.value!=='former_exploration_exemption'?run(()=>save({...book,rows:book.rows.map(item=>item.id===row.id?continueWithoutFormerExploration(item):item)})):change(row.id,{acquisitionTreatment:e.target.value as AcquisitionTreatment})}><option value="">Enquadramento normal; sem benefício especial indicado</option><option value="former_exploration_exemption">Antiga isenção de prospecção/pesquisa —14(2)(c),eliminada</option><option value="normal">Continuidade pelo enquadramento normal</option></select></label>
|
||||
{acquisitionTreatmentIssue(row.acquisitionTreatment)&&<p role="status">{acquisitionTreatmentIssue(row.acquisitionTreatment)}</p>}
|
||||
{row.acquisitionTreatment==='former_exploration_exemption'&&<><p>{formerExplorationSource}</p><p>A continuidade conserva montantes,moeda,mês,documento e respostas existentes. Não introduz taxa nem altera o IVA declarado; reveja as condições antes de calcular.</p><button type="button" onClick={()=>run(()=>save({...book,rows:book.rows.map(item=>item.id===row.id?continueWithoutFormerExploration(item):item)}))}>Continuar aquisição sem esta isenção e rever condições</button></>}
|
||||
{row.acquisitionTreatmentOrigin&&<p>Origem conservada: antiga referência14(2)(c),eliminada. {row.acquisitionTreatment==='former_exploration_exemption'?'A continuidade normal foi escolhida numa versão anterior; a referência antiga está agora seleccionada para análise.':'Continuidade normal escolhida expressamente; não é nova concessão de isenção.'}</p>}
|
||||
</details>
|
||||
<p>Origem: {row.sourceMonth===null?'Introdução directa':`Plano, mês ${row.sourceMonth} (${row.sourcePeriod??'por indicar'}): ${row.sourceAmount??'sem informação'} ${row.sourceCurrency}`}. O mês da encomenda/orçamento não determina a data do documento ou a dedução. Alterações não substituem o resultado anterior.</p>
|
||||
<div className="grid gap-3 md:grid-cols-2">
|
||||
<label>Descrição<input className="block rounded border p-2" value={row.description} onChange={e=>change(row.id,{description:e.target.value})}/></label>
|
||||
{row.sourceMonth===null && <label>Reutilizar valor existente, sem presumir que o orçamento é uma factura<select className="block rounded border p-2" value="" onChange={e=>run(()=>{const ref=references.find(r=>r.key===e.target.value);if(ref)change(row.id,{sourceMonth:ref.month,sourcePeriod:ref.period,sourceField:ref.kind,sourceAmount:ref.amount,sourceCurrency:ref.currency,...(ref.kind==='asset'?{}:{period:ref.period})});})}><option value="">Escolher apenas se corresponde a esta aquisição</option>{references.filter(ref=>ref.kind===(row.field==='08'?'asset':row.field==='10'?'operating':'inventory')).map(ref=><option key={ref.key} value={ref.key}>{ref.label}: {ref.amount??'sem informação'} {ref.currency}</option>)}</select></label>}
|
||||
{select(row,'field','Categoria',[['08','08 — Imobilizado'],['09','09 — Existências'],['10','10 — Outros bens e serviços']])}
|
||||
{select(row,'origin','Natureza dos dados',[['projected','Projectados / pressupostos'],['effective','Efectivos declarados']])}
|
||||
<label>Período de dedução<input className="block rounded border p-2" type="month" value={row.period} onChange={e=>change(row.id,{period:e.target.value})}/></label>
|
||||
{row.sourceMonth!==null && <label>O valor de origem corresponde a<select className="block rounded border p-2" value={row.sourceBasis} onChange={e=>{const basis=e.target.value as Acquisition['sourceBasis'];change(row.id,{sourceBasis:basis,...(basis==='net'&&!row.net?{net:row.sourceAmount??''}:basis==='gross'&&!row.gross?{gross:row.sourceAmount??''}:{})});}}><option value="">Por classificar</option><option value="net">Valor sem IVA</option><option value="gross">Valor com IVA</option></select></label>}
|
||||
{(['net','vat','gross'] as const).map((field,index)=><label key={field}>{['Valor líquido','IVA indicado','Valor bruto'][index]} ({row.sourceCurrency})<input className="block rounded border p-2" inputMode="decimal" value={row[field]} onChange={e=>change(row.id,{[field]:e.target.value})}/></label>)}
|
||||
{select(row,'documentType','Tipo de documento',[['invoice','Factura'],['equivalent','Documento equivalente']])}
|
||||
<label>Referência do documento / previsão<input className="block rounded border p-2" value={row.documentRef} onChange={e=>change(row.id,{documentRef:e.target.value})}/></label>
|
||||
<label>Linha do documento, se discriminado em várias aquisições<input className="block rounded border p-2" value={row.documentLine} onChange={e=>change(row.id,{documentLine:e.target.value})}/></label>
|
||||
<label>Data do documento / prevista<input className="block rounded border p-2" type="date" value={row.documentDate} onChange={e=>change(row.id,{documentDate:e.target.value})}/></label>
|
||||
<label>Fornecedor / previsto<input className="block rounded border p-2" value={row.supplier} onChange={e=>change(row.id,{supplier:e.target.value})}/></label>
|
||||
{select(row,'domestic','Aquisição interna',yesNo)}
|
||||
{row.acquisitionTreatment!=='former_exploration_exemption'&&<>
|
||||
{select(row,'supplierRegistered','Fornecedor inscrito no IVA',yesNo)}
|
||||
{select(row,'legalDocument','Documento emitido em forma legal',yesNo)}
|
||||
{select(row,'held','Documento na posse do adquirente / previsto na projecção',yesNo)}
|
||||
{select(row,'allocation','Afectação',[['taxable_only','Exclusiva a operações tributadas'],['mixed','Mista / parcial — fora deste lote'],['no_right','Operações sem direito à dedução']])}
|
||||
{select(row,'exclusion','Exclusões de dedução',[['none','Sem exclusões ou casos especiais dos arts.18–20'],['excluded','Despesa excluída'],['special','Veículos, combustível, viagens, alojamento, comunicações, luxo ou outra situação especial — por enquadrar']])}
|
||||
{select(row,'integrity','Operação real / pressuposto regular, sem simulação, margem de segunda mão ou impedimentos do art.18(3–5)',yesNo)}
|
||||
</>}
|
||||
</div>
|
||||
<p>Fundamento: CIVA arts.18–21, fontes e versão no resultado. Não se calcula dedução parcial, excepção de despesa ou dedução posterior neste lote.</p>
|
||||
{row.sourceMonth===null && <button type="button" className="mr-3 underline" onClick={()=>save({...book,rows:book.rows.filter(r=>r.id!==row.id)})}>Remover esta aquisição introduzida directamente</button>}
|
||||
{row.sourceMonth!==null && <button type="button" className="underline" onClick={()=>run(()=>{const ref=acquisitionPlanReferences(draft).find(r=>r.month===row.sourceMonth && r.kind===(row.sourceField??'inventory'));if(!ref)throw new Error('Origem não disponível; conserve o registo e reveja o plano.');if(draft.currency!==row.sourceCurrency)throw new Error('Moeda divergente; não adoptar montantes de outra moeda.');change(row.id,{sourceAmount:ref.amount,sourcePeriod:ref.period,...(row.sourceBasis==='net'?{net:ref.amount??'',gross:''}:row.sourceBasis==='gross'?{gross:ref.amount??'',net:''}:{})});})}>Adoptar explicitamente o valor actual do plano (conserva histórico)</button>}
|
||||
</details>)}
|
||||
{book.periods.map(period=><details key={period.period} className="rounded border p-3"><summary>{period.period} — cobertura das parcelas — {period.complete && period.absent.length===acquisitionExcludedFields.length?'confirmada':'por completar'}</summary>
|
||||
<label className="block"><input type="checkbox" checked={period.complete} onChange={e=>save({...book,periods:book.periods.map(p=>p.period===period.period?{...p,complete:e.target.checked}:p)})}/> Incluí todas as aquisições08–10 deste período, incluindo as sem direito à dedução; uma lista vazia significa que não houve essas aquisições.</label>
|
||||
<p>Campos fora deste lote: assinale apenas quando não existiram as respectivas operações. Uma parcela não assinalada permanece indeterminada.</p>
|
||||
{acquisitionExcludedFields.map(field=><label className="block" key={field}><input type="checkbox" checked={period.absent.includes(field)} onChange={e=>save({...book,periods:book.periods.map(p=>p.period===period.period?{...p,absent:e.target.checked?[...p.absent,field]:p.absent.filter(f=>f!==field)}:p)})}/> Sem operações no campo{field} — {labels[field]}</label>)}
|
||||
</details>)}
|
||||
<button type="button" disabled={!book.periods.length} className="rounded bg-emerald-800 p-2 text-white disabled:opacity-50" onClick={()=>run(()=>save(recordAcquisitions(draft,book)))}>Calcular e guardar versão do apuramento parcial</button>
|
||||
<p>O preenchimento e o resultado seguem a gravação privada do simulador. Os campos19–27 e a submissão à AT permanecem fora deste lote; 17/18 são diferenças antes de créditos anteriores, sem ordem de pagamento ou promessa de reembolso.</p>
|
||||
{book.result&&<><p role="status">{acquisitionCurrent(draft,book)?'Resultado correspondente às entradas guardadas.':'Entradas ou origem alteradas: resultado histórico preservado; actualizar o cálculo.'}</p><dl>{acquisitionReportRows(draft).map(([,label,value,origin],i)=><div key={i}><dt className="font-semibold">{label}</dt><dd>{value}<small className="block">{origin}</small></dd></div>)}</dl></>}
|
||||
</section>;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import {useState} from 'react';
|
||||
import {newActSaleBase,switchActValuation,switchActKind,actSaleBook,actSaleConditions,actSaleCurrent,actSaleReportRows,actSaleBaseSource,actSaleKinds,actSaleTreatments,recordActSaleBases,saveActSaleBook,type ActSaleBook,type ActSaleRow} from '@/lib/iva-act-sale-base';
|
||||
|
||||
export function SimulationActSaleBase({draft,onChange}:{draft:Record<string,unknown>;onChange:(field:string,value:string)=>void}){
|
||||
const[error,setError]=useState('');let book:ActSaleBook;
|
||||
try{book=actSaleBook(draft);}catch(cause){return<p role="alert">{String(cause)}</p>;}
|
||||
const save=(next:ActSaleBook)=>{try{onChange('modelo_a_snapshot',saveActSaleBook(draft,next));setError('');}catch(cause){setError(String(cause));}};
|
||||
const change=(id:string,patch:Partial<ActSaleRow>)=>save({...book,rows:book.rows.map(row=>row.id===id?{...row,...patch}:row)});
|
||||
return<details className="space-y-3 rounded border p-3">
|
||||
<summary>Base tributável — arrematação e outros actos de transmissão</summary>
|
||||
<p>Oportunidade: {String(draft.context_opportunity||'entrada geral')}. Prepare apenas transmissões de bens resultantes dos actos abrangidos pelo artigo15(2)(h). Indique o valor por que a arrematação/venda foi efectuada ou,se for caso,o valor normal dos bens. O portal não escolhe o menor valor nem transforma um pagamento ou acordo genérico numa transmissão sujeita a IVA.</p>
|
||||
<p>Na conciliação ou transacção,identifique a transmissão dos bens e o fundamento do valor aplicável; não basta o montante genérico do acordo. O valor normal exige fundamento e âmbito identificados,não um certificado ou avaliador criado pelo portal. Base e IVA são resultados distintos.</p>
|
||||
<p>{actSaleBaseSource}</p>{error&&<p role="alert">{error}</p>}
|
||||
<button type="button" className="underline" onClick={()=>save({...book,rows:[...book.rows,newActSaleBase(crypto.randomUUID(),String(draft.currency??''))]})}>Acrescentar transmissão por acto</button>
|
||||
{book.rows.map(row=>{const rule=actSaleTreatments.find(item=>item.id===row.treatment);return<details key={row.id} className="rounded border p-3"><summary>{row.description||'Transmissão por identificar'} — {row.period||'mês por indicar'}</summary>
|
||||
<div className="grid gap-3 md:grid-cols-2">
|
||||
<label>Natureza do acto<select className="block rounded border p-2" value={row.actKind} onChange={e=>change(row.id,switchActKind(row,e.target.value))}><option value="">Por indicar</option>{actSaleKinds.map(item=><option key={item.id} value={item.id}>{item.label}</option>)}</select></label>
|
||||
<label>Fundamento do valor aplicável<select className="block rounded border p-2" value={row.treatment} onChange={e=>change(row.id,switchActValuation(row,e.target.value))}><option value="">Por indicar</option>{actSaleTreatments.map(item=><option key={item.id} value={item.id}>{item.label}</option>)}</select></label>
|
||||
<label>Natureza dos dados<select className="block rounded border p-2" value={row.origin} onChange={e=>change(row.id,{origin:e.target.value as ActSaleRow['origin']})}><option value="projected">Projectados / pressupostos</option><option value="effective">Efectivos declarados</option></select></label>
|
||||
{([['description','Bens e transmissão identificados'],['actRef','Acto ou contrato / referência da previsão'],['documentRef','Documento da transmissão / referência da previsão'],['documentDate','Data do documento / prevista'],['period','Mês da transmissão'],['currency','Moeda de origem'],['valuationRef','Referência documental / pressuposto da valorização'],['valuationScope','Âmbito da valorização: bens, operação, período e condições'],['compositionRef','Referência da composição sem IVA — inclusões e exclusões aplicáveis'],['evidence','Fundamento factual / pressupostos']] as const).map(([field,label])=><label key={field}>{label}<input className="block rounded border p-2" type={field==='documentDate'?'date':field==='period'?'month':'text'} value={row[field]} onChange={e=>change(row.id,{[field]:e.target.value})}/></label>)}
|
||||
{rule&&<label>{row.treatment==='act_sale_amount'?'Valor da arrematação ou venda efectuada,sem IVA (moeda indicada)':'Valor normal dos bens,sem IVA (moeda indicada)'}<input className="block rounded border p-2" value={row.treatment==='act_sale_amount'?row.actValue:row.normalValue} onChange={e=>change(row.id,{[row.treatment==='act_sale_amount'?'actValue':'normalValue']:e.target.value})}/></label>}
|
||||
</div>
|
||||
<p>Mudar de acto ou fundamento conserva os montantes e documentos,mas exige rever a correspondência dos bens e da valorização antes de determinar a base. As versões anteriores mantêm-se.</p>
|
||||
{rule?<fieldset><legend>Condições próprias desta transmissão</legend>{actSaleConditions.map(([key,label])=><label className="block" key={key}>{label}<select className="block rounded border p-2" value={row.conditions[key]??''} onChange={e=>change(row.id,{conditions:{...row.conditions,[key]:e.target.value}})}><option value="">Por indicar</option><option value="yes">Sim</option><option value="no">Não</option></select></label>)}</fieldset>:<p>Escolha o fundamento para apresentar o montante aplicável;os valores anteriores conservam-se.</p>}
|
||||
</details>;})}
|
||||
{!!book.rows.length&&<button type="button" className="rounded bg-emerald-800 p-2 text-white" onClick={()=>{try{save(recordActSaleBases(draft,book));}catch(cause){setError(String(cause));}}}>Determinar bases de transmissão e guardar versão</button>}
|
||||
{book.result&&<><p role="status">{actSaleCurrent(draft,book)?'Bases de transmissão correspondentes às entradas guardadas.':'Entradas alteradas;bases de transmissão históricas conservadas. Reveja e determine novamente.'} {book.history?.length??0} versões anteriores. IVA e campo11 não são preenchidos por estas bases.</p><dl>{actSaleReportRows(draft).map(([,label,value,origin],index)=><div key={index}><dt className="font-semibold">{label}</dt><dd>{value}<small className="block">{origin}</small></dd></div>)}</dl></>}
|
||||
</details>;
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
defaultCashflowDraftInputs,
|
||||
restoreCashflowDraftSnapshot,
|
||||
serializeCashflowDraftSnapshot,
|
||||
cashflowCurrency,
|
||||
type CashflowDraftSnapshot,
|
||||
} from '@/lib/monthly-cashflow';
|
||||
import {
|
||||
@@ -24,6 +25,9 @@ export function SimulationCashflowPlanner({
|
||||
onSnapshotChange?: (snapshot: string) => void;
|
||||
}) {
|
||||
const restored = restoreCashflowDraftSnapshot(snapshot);
|
||||
const [confirmedCurrency, setConfirmedCurrency] = useState('');
|
||||
const originCurrency = restored?.version === 2 ? restored.currency : null;
|
||||
const calculationCurrency = snapshot ? originCurrency ?? '' : currency;
|
||||
const [taxMode, setTaxMode] = useState<'fixed' | 'schedule'>(
|
||||
restored?.taxMode ?? 'fixed',
|
||||
);
|
||||
@@ -41,7 +45,7 @@ export function SimulationCashflowPlanner({
|
||||
) {
|
||||
setInputs(next);
|
||||
setTaxMode(mode);
|
||||
onSnapshotChange?.(serializeCashflowDraftSnapshot(mode, next));
|
||||
onSnapshotChange?.(serializeCashflowDraftSnapshot(mode, next, snapshot ? originCurrency ?? null : currency || null));
|
||||
}
|
||||
const set = (
|
||||
key: Exclude<keyof typeof inputs, 'monthlyTaxSchedule'>,
|
||||
@@ -63,7 +67,8 @@ export function SimulationCashflowPlanner({
|
||||
throw new Error(
|
||||
'Não foi possível recuperar os pressupostos guardados de tesouraria. Reveja os campos antes de voltar a guardar; nenhum resultado foi calculado com dados alternativos.',
|
||||
);
|
||||
projection = projectMonthlyCashflow({ ...cashflowInput, currency });
|
||||
if (restored) cashflowCurrency(restored, currency);
|
||||
projection = projectMonthlyCashflow({ ...cashflowInput, currency: calculationCurrency });
|
||||
} catch (cause) {
|
||||
error =
|
||||
cause instanceof Error
|
||||
@@ -76,7 +81,7 @@ export function SimulationCashflowPlanner({
|
||||
aria-labelledby="cashflow-title"
|
||||
>
|
||||
<label className="block max-w-xs text-sm font-medium">
|
||||
Moeda dos valores (código ISO)
|
||||
Moeda do projecto (código ISO)
|
||||
<input
|
||||
list="cashflow-currency-options"
|
||||
inputMode="text"
|
||||
@@ -103,6 +108,16 @@ export function SimulationCashflowPlanner({
|
||||
<h3 id="cashflow-title" className="text-lg font-semibold">
|
||||
Projecção de tesouraria — 12 meses
|
||||
</h3>
|
||||
{restored && !originCurrency && <div className="space-y-2 rounded border border-amber-600 p-3">
|
||||
<p>A moeda de origem dos montantes guardados não foi registada. Os valores foram conservados. Confirme apenas essa moeda; não é necessário preencher os montantes novamente.</p>
|
||||
<label>Moeda de origem da tesouraria guardada<select className="ml-2 rounded border p-2" value={confirmedCurrency} onChange={event => setConfirmedCurrency(event.target.value)}><option value="">Por confirmar</option>{simulationCurrencyOptions.map(code => <option key={code} value={code}>{code}</option>)}</select></label>
|
||||
<button type="button" className="block underline" disabled={!isSimulationCurrency(confirmedCurrency)} onClick={() => onSnapshotChange?.(serializeCashflowDraftSnapshot(taxMode, inputs, confirmedCurrency))}>Confirmar moeda de origem e conservar montantes</button>
|
||||
</div>}
|
||||
{originCurrency && originCurrency !== currency && <div role="alert" className="rounded border border-amber-600 p-3">
|
||||
<p>{cashflowCurrency(restored!, currency).notice}</p>
|
||||
<button type="button" className="underline" onClick={() => onCurrencyChange(originCurrency)}>Usar {originCurrency} no projecto e conservar montantes</button>
|
||||
</div>}
|
||||
{originCurrency && <p>Moeda de origem dos pressupostos: {originCurrency}.</p>}
|
||||
<p className="text-sm text-slate-700">
|
||||
Introduza pressupostos na mesma moeda. O imposto indicado é um
|
||||
pressuposto do utilizador; esta ferramenta não calcula nem
|
||||
@@ -257,12 +272,12 @@ export function SimulationCashflowPlanner({
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
{projection && isSimulationCurrency(currency) && (
|
||||
{projection && isSimulationCurrency(calculationCurrency) && (
|
||||
<>
|
||||
<p aria-live="polite" className="font-semibold">
|
||||
{projection.endingCash === null
|
||||
? `Caixa conhecida antes de imposto em falta, ao fim de 12 meses (${currency}):`
|
||||
: `Saldo projectado ao fim de 12 meses (${currency}):`}{' '}
|
||||
? `Caixa conhecida antes de imposto em falta, ao fim de 12 meses (${calculationCurrency}):`
|
||||
: `Saldo projectado ao fim de 12 meses (${calculationCurrency}):`}{' '}
|
||||
{projection.endingCash ??
|
||||
projection.endingCashBeforeUnassessedTax}
|
||||
</p>
|
||||
@@ -274,7 +289,7 @@ export function SimulationCashflowPlanner({
|
||||
[
|
||||
exportMonthlyCashflowCsv({
|
||||
...cashflowInput,
|
||||
currency,
|
||||
currency: calculationCurrency,
|
||||
periods: 12,
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
import {useState} from 'react';
|
||||
import {newCommissionBase,switchCommissionDirection,commissionBaseBook,commissionBaseConditions,commissionBaseCurrent,commissionBaseReportRows,commissionBaseSource,commissionBaseTreatments,recordCommissionBases,saveCommissionBaseBook,type CommissionBaseBook,type CommissionBaseRow} from '@/lib/iva-commission-base';
|
||||
|
||||
export function SimulationCommissionBase({draft,onChange}:{draft:Record<string,unknown>;onChange:(field:string,value:string)=>void}){
|
||||
const[error,setError]=useState('');let book:CommissionBaseBook;
|
||||
try{book=commissionBaseBook(draft);}catch(cause){return<p role="alert">{String(cause)}</p>;}
|
||||
const save=(next:CommissionBaseBook)=>{try{onChange('modelo_a_snapshot',saveCommissionBaseBook(draft,next));setError('');}catch(cause){setError(String(cause));}};
|
||||
const change=(id:string,patch:Partial<CommissionBaseRow>)=>save({...book,rows:book.rows.map(row=>row.id===id?{...row,...patch}:row)});
|
||||
return<details className="space-y-3 rounded border p-3">
|
||||
<summary>Base tributável — bens em comissão de venda ou compra</summary>
|
||||
<p>Oportunidade: {String(draft.context_opportunity||'entrada geral')}. Prepare apenas transferências de bens entre comitente e comissário em execução do contrato de comissão, incluindo consignação quando aplicável. Não é o IVA de um serviço autónomo de intermediação nem uma regra para qualquer pagamento de comissão.</p>
|
||||
<p>Comissão de venda: preço de venda acordado pelo comissário menos comissão. Comissão de compra: preço de compra acordado pelo comissário mais comissão. Indique valores sem IVA, antes deste ajuste, e as referências da operação; montantes em falta não são zero. Base não determina incidência, taxa ou imposto.</p>
|
||||
<p>{commissionBaseSource}</p>{error&&<p role="alert">{error}</p>}
|
||||
<button type="button" className="underline" onClick={()=>save({...book,rows:[...book.rows,newCommissionBase(crypto.randomUUID(),String(draft.currency??''))]})}>Acrescentar transferência de bens em comissão</button>
|
||||
{book.rows.map(row=>{const rule=commissionBaseTreatments.find(item=>item.id===row.treatment);return<details key={row.id} className="rounded border p-3"><summary>{row.description||'Transferência por identificar'} — {row.period||'mês por indicar'}</summary>
|
||||
<div className="grid gap-3 md:grid-cols-2">
|
||||
<label>Sentido da transferência<select className="block rounded border p-2" value={row.treatment} onChange={e=>change(row.id,switchCommissionDirection(row,e.target.value))}><option value="">Por indicar</option>{commissionBaseTreatments.map(item=><option key={item.id} value={item.id}>{item.label}</option>)}</select></label>
|
||||
<label>Natureza dos dados<select className="block rounded border p-2" value={row.origin} onChange={e=>change(row.id,{origin:e.target.value as CommissionBaseRow['origin']})}><option value="projected">Projectados / pressupostos</option><option value="effective">Efectivos declarados</option></select></label>
|
||||
{([['description','Bens e operação identificados'],['principal','Comitente'],['agent','Comissário'],['agreementRef','Contrato de comissão / referência da previsão'],['documentRef','Documento da operação / referência da previsão'],['documentDate','Data do documento / prevista'],['period','Mês da operação'],['currency','Moeda de origem'],['compositionRef','Referência da composição sem IVA — inclusões e exclusões aplicáveis'],['evidence','Fundamento factual / pressupostos']] as const).map(([field,label])=><label key={field}>{label}<input className="block rounded border p-2" type={field==='documentDate'?'date':field==='period'?'month':'text'} value={row[field]} onChange={e=>change(row.id,{[field]:e.target.value})}/></label>)}
|
||||
{rule&&<><label>{rule.priceLabel}<input className="block rounded border p-2" value={row.agreedPrice} onChange={e=>change(row.id,{agreedPrice:e.target.value})}/></label><label>Referência documental / pressuposto do preço acordado<input className="block rounded border p-2" value={row.priceRef} onChange={e=>change(row.id,{priceRef:e.target.value})}/></label><label>Comissão desta operação, sem IVA (moeda indicada)<input className="block rounded border p-2" value={row.commissionAmount} onChange={e=>change(row.id,{commissionAmount:e.target.value})}/></label><label>Referência documental / pressuposto da comissão<input className="block rounded border p-2" value={row.commissionRef} onChange={e=>change(row.id,{commissionRef:e.target.value})}/></label></>}
|
||||
</div>
|
||||
<p>Mudar de sentido conserva os valores e referências, mas exige confirmar os papéis e o preço correspondente ao novo sentido antes de determinar a base. As versões anteriores mantêm-se.</p>
|
||||
{rule?<fieldset><legend>Condições próprias da base de comissão</legend>{commissionBaseConditions.map(([key,label])=><label className="block" key={key}>{label}<select className="block rounded border p-2" value={row.conditions[key]??''} onChange={e=>change(row.id,{conditions:{...row.conditions,[key]:e.target.value}})}><option value="">Por indicar</option><option value="yes">Sim</option><option value="no">Não</option></select></label>)}</fieldset>:<p>Escolha o sentido para apresentar o preço e as condições aplicáveis;os valores anteriores conservam-se.</p>}
|
||||
</details>;})}
|
||||
{!!book.rows.length&&<button type="button" className="rounded bg-emerald-800 p-2 text-white" onClick={()=>{try{save(recordCommissionBases(draft,book));}catch(cause){setError(String(cause));}}}>Determinar bases de comissão e guardar versão</button>}
|
||||
{book.result&&<><p role="status">{commissionBaseCurrent(draft,book)?'Bases de comissão correspondentes às entradas guardadas.':'Entradas alteradas;bases de comissão históricas conservadas. Reveja e determine novamente.'} {book.history?.length??0} versões anteriores. IVA e campo11 não são preenchidos por estas bases.</p><dl>{commissionBaseReportRows(draft).map(([,label,value,origin],index)=><div key={index}><dt className="font-semibold">{label}</dt><dd>{value}<small className="block">{origin}</small></dd></div>)}</dl></>}
|
||||
</details>;
|
||||
}
|
||||
@@ -1564,7 +1564,7 @@ export function SimulationForm() {
|
||||
'Não foi possível devolver as entradas financeiras guardadas ao dossier.',
|
||||
);
|
||||
}
|
||||
window.location.assign(`/investimentos/${contextId}`);
|
||||
window.location.assign(`/investimentos/${contextId}${draft.context_opportunity ? "?opportunity="+encodeURIComponent(String(draft.context_opportunity)) : ""}`);
|
||||
} catch (cause) {
|
||||
setContinuityError(
|
||||
cause instanceof Error
|
||||
@@ -2522,7 +2522,7 @@ export function SimulationForm() {
|
||||
)}
|
||||
<a
|
||||
className="ml-3 underline"
|
||||
href={`/investimentos/${contextId}`}
|
||||
href={`/investimentos/${contextId}${draft.context_opportunity ? "?opportunity="+encodeURIComponent(String(draft.context_opportunity)) : ""}`}
|
||||
>
|
||||
Ver dossier
|
||||
</a>
|
||||
@@ -3292,7 +3292,7 @@ export function SimulationForm() {
|
||||
: investmentLandPreparation(draft.context_applicability_snapshot).need === 'yes'
|
||||
? 'Precisa de terra neste investimento. Reveja a situação do terreno já preenchida ou indique-a quando disponível.'
|
||||
: 'Falta definir se precisa de terra. Pode guardar o rascunho e continuar sem preencher a situação do terreno.'}</p>
|
||||
<a className="underline" href={`/investimentos/${contextId}`}>Rever a necessidade de terra no dossier</a>
|
||||
<a className="underline" href={`/investimentos/${contextId}${draft.context_opportunity ? "?opportunity="+encodeURIComponent(String(draft.context_opportunity)) : ""}`}>Rever a necessidade de terra no dossier</a>
|
||||
</aside>
|
||||
)}
|
||||
<div className="grid gap-4 sm:grid-cols-2">
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
import { useState } from 'react';
|
||||
import { importExemptionBook,importExemptionCurrent,importExemptionReportRows,importExemptionRules,importRuleSource,isImportService,isDevelopmentImport,importDevelopmentFields,newImportExemption,recordImportExemptions,saveImportExemptionBook,type ImportExemptionBook,type ImportExemptionRow } from '@/lib/iva-import-exemptions';
|
||||
|
||||
export function SimulationImportExemptions({draft,onChange}:{draft:Record<string,unknown>;onChange:(field:string,value:string)=>void}) {
|
||||
const [error,setError]=useState('');
|
||||
let book:ImportExemptionBook;
|
||||
try {book=importExemptionBook(draft);}catch(cause){return <p role="alert">{String(cause)}</p>;}
|
||||
const save=(next:ImportExemptionBook)=>{try {onChange('modelo_a_snapshot',saveImportExemptionBook(draft,next));setError('');}catch(cause){setError(String(cause));}};
|
||||
const change=(id:string,patch:Partial<ImportExemptionRow>)=>save({...book,rows:book.rows.map(row=>row.id===id?{...row,...patch}:row)});
|
||||
return <details className="space-y-3 rounded border p-3">
|
||||
<summary>IVA na importação e serviços associados — enquadramentos disponíveis</summary>
|
||||
<p>Oportunidade: {String(draft.context_opportunity||'entrada geral')}. Indique apenas importações relevantes: reimportação no mesmo estado, ouro pelo Banco de Moçambique, objectos de arte, veículo de combate a incêndios, embarcação/avião elegível ou objecto da sua exploração, bens em regime aduaneiro com isenção total de direitos, importação sob controlo alfandegário em zona/depósito/loja franca nas condições próprias, equipamento classe K para empreendimento autorizado, materiais/equipamentos para projecto de desenvolvimento ONU nas condições próprias, ou bens de abastecimento a bordo de embarcação/avião de navegação internacional. Escolha o ramo para apresentar as condições aplicáveis. Cobertura2026/MZN; as compras internas e os seus resultados conservam-se.</p>
|
||||
<p>O valor declarado/previsional é conservado, sem o fixar como base aduaneira. A classificação não preenche o campo11 de dedução nem os totais do ModeloA. Uma condição não cumprida afasta só esta isenção; o imposto normal fica por enquadrar. Nas projecções, as respostas são pressupostos, sem certificação aduaneira.</p>
|
||||
<p>Nos serviços associados, identifique a importação e a inclusão do valor na sua base, conforme o artigo16. O IVA do serviço é apresentado separadamente do IVA dos bens; o simulador não soma novamente esse valor à base.</p>
|
||||
{error&&<p role="alert">{error}</p>}
|
||||
<button type="button" className="underline" onClick={()=>save({...book,rows:[...book.rows,newImportExemption(crypto.randomUUID(),String(draft.currency??''))]})}>Acrescentar importação ou serviço relevante</button>
|
||||
{book.rows.map(row=>{
|
||||
const rule=importExemptionRules.find(item=>item.id===row.treatment);
|
||||
return <details key={row.id} className="rounded border p-3"><summary>{row.description||'Importação por identificar'} — {row.period||'mês por indicar'}</summary>
|
||||
<div className="grid gap-3 md:grid-cols-2">
|
||||
<label>Ramo da importação<select className="block rounded border p-2" value={row.treatment} onChange={e=>change(row.id,{treatment:e.target.value})}><option value="">Por indicar</option>{importExemptionRules.map(item=><option key={item.id} value={item.id}>{item.label}</option>)}</select></label>
|
||||
<label>Natureza dos dados<select className="block rounded border p-2" value={row.origin} onChange={e=>change(row.id,{origin:e.target.value as ImportExemptionRow['origin']})}><option value="projected">Projectados / pressupostos</option><option value="effective">Efectivos declarados</option></select></label>
|
||||
{(['description','importer','declaredValue','goodsCode','originCountry','documentRef','documentDate','period','evidence'] as const).map((field,index)=>isImportService(row.treatment)&&['goodsCode','originCountry'].includes(field)?null:<label key={field}>{isImportService(row.treatment)&&field==='description'?'Serviço associado à importação':isImportService(row.treatment)&&field==='importer'?'Importador destinatário do serviço':isImportService(row.treatment)&&field==='declaredValue'?'Valor do serviço incluído na base (moeda indicada)':isImportService(row.treatment)&&field==='documentRef'?'Documento do serviço / referência da previsão':isImportService(row.treatment)&&field==='period'?'Mês do serviço':['Bens importados','Importador','Valor declarado / previsão (moeda indicada)','Código aduaneiro, se disponível','País de origem, se disponível','Documento aduaneiro / referência da previsão','Data do documento / prevista','Mês da importação','Fundamento factual das condições / pressupostos'][index]}<input className="block rounded border p-2" type={field==='documentDate'?'date':field==='period'?'month':'text'} value={row[field]} onChange={e=>change(row.id,{[field]:e.target.value})}/></label>)}
|
||||
{isImportService(row.treatment)&&(['serviceImportRef','serviceBaseRef','serviceProvider'] as const).map((field,index)=><label key={field}>{['Importação de bens associada / documento ou previsão','Referência da base tributável que inclui o valor do serviço','Prestador do serviço, se disponível'][index]}<input className="block rounded border p-2" value={row[field]??''} onChange={e=>change(row.id,{[field]:e.target.value})}/></label>)}
|
||||
{row.treatment==='accessory_service_first_destination'&&<label>Primeiro destino e documento de transporte ou primeira ruptura de carga<input className="block rounded border p-2" value={row.serviceFirstDestination??''} onChange={e=>change(row.id,{serviceFirstDestination:e.target.value})}/></label>}
|
||||
{row.treatment==='authorized_investment_equipment'&&<>
|
||||
<p className="md:col-span-2">A classe K e a autorização são condições distintas. O portal conserva a referência e o âmbito aplicável; apresentar um pedido não equivale a obter autorização. Numa projecção, identifique expressamente os pressupostos.</p>
|
||||
<label>Autorização do empreendimento / pressuposto expresso<input className="block rounded border p-2" value={row.investmentAuthorizationRef??''} onChange={e=>change(row.id,{investmentAuthorizationRef:e.target.value})}/></label>
|
||||
<label>Âmbito aplicável: bens, operação, período e condições<input className="block rounded border p-2" value={row.investmentScope??''} onChange={e=>change(row.id,{investmentScope:e.target.value})}/></label>
|
||||
</>}
|
||||
{isDevelopmentImport(row.treatment)&&<>
|
||||
<p className="md:col-span-2">Pedido apresentado não equivale a despacho favorável nem a concessão aduaneira. Reutilize as referências dos documentos; numa projecção, identifique os pressupostos. O âmbito do despacho, lista e plano conserva-se nesta importação, sem o estender a outros bens ou operações.</p>
|
||||
{importDevelopmentFields.map(([field,label])=><label key={field}>{label}<input className="block rounded border p-2" value={row[field]??''} onChange={e=>change(row.id,{[field]:e.target.value})}/></label>)}
|
||||
{row.treatment==='un_development_reduction'&&<>
|
||||
<p className="md:col-span-2">A redução de IVA acompanha a percentagem de redução de direitos, que não é a taxa aduaneira. Informe o IVA sem benefício já determinado ou expressamente assumido; o portal não presume taxa nem base aduaneira. Resultado decimal exacto, sem arredondamento fiscal presumido.</p>
|
||||
<label>Redução dos direitos (% entre0e100, exclusiva)<input className="block rounded border p-2" value={row.developmentReductionPercent??''} onChange={e=>change(row.id,{developmentReductionPercent:e.target.value})}/></label>
|
||||
<label>IVA desta importação sem benefício (moeda indicada)<input className="block rounded border p-2" value={row.developmentNormalVat??''} onChange={e=>change(row.id,{developmentNormalVat:e.target.value})}/></label>
|
||||
<label>Referência documental / pressuposto do IVA sem benefício<input className="block rounded border p-2" value={row.developmentNormalVatRef??''} onChange={e=>change(row.id,{developmentNormalVatRef:e.target.value})}/></label>
|
||||
</>}
|
||||
</>}
|
||||
<label>Moeda de origem<input className="block rounded border p-2" value={row.currency} onChange={e=>change(row.id,{currency:e.target.value})}/></label>
|
||||
</div>
|
||||
{rule?<><p>{importRuleSource(row.treatment)}</p><fieldset><legend>Condições de{rule.article}; respostas conservadas ao mudar de ramo</legend>{rule.conditions.map(([key,label])=><label className="block" key={key}>{label}<select className="block rounded border p-2" value={row.conditions[key]??''} onChange={e=>change(row.id,{conditions:{...row.conditions,[key]:e.target.value}})}><option value="">Por indicar</option><option value="yes">Sim</option><option value="no">Não</option></select></label>)}</fieldset></>:<p>Escolha o ramo para apresentar apenas as condições aplicáveis; as respostas anteriores mantêm-se.</p>}
|
||||
<p>Editar não substitui o resultado anterior. Ao classificar novamente, a versão anterior passa ao histórico.</p>
|
||||
</details>;
|
||||
})}
|
||||
{!!book.rows.length&&<button type="button" className="rounded bg-emerald-800 p-2 text-white" onClick={()=>{try {save(recordImportExemptions(draft,book));}catch(cause){setError(String(cause));}}}>{book.rows.some(row=>isImportService(row.treatment))?'Classificar importações e serviços e guardar versão':'Classificar importações e guardar versão'}</button>}
|
||||
{book.result&&<><p role="status">{importExemptionCurrent(draft,book)?'Classificação correspondente às entradas guardadas.':'Entradas alteradas; classificação histórica preservada. Reveja e classifique novamente.'} {book.history?.length??0} versões anteriores.</p><dl>{importExemptionReportRows(draft).map(([,label,value,origin],index)=><div key={index}><dt className="font-semibold">{label}</dt><dd>{value}<small className="block">{origin}</small></dd></div>)}</dl></>}
|
||||
</details>;
|
||||
}
|
||||
@@ -8,7 +8,7 @@ export function SimulationModeloA({draft}: {draft:Record<string,unknown>}) {
|
||||
return <section aria-label="Correspondência com o Modelo A" className="space-y-3 rounded border p-3">
|
||||
<h4 className="font-semibold">Modelo A — correspondência da simulação</h4>
|
||||
<p>{modeloAReference.status}</p>
|
||||
<p>Os campos 14–18 do apuramento permanecem indeterminados. O IVA das vendas não é imposto final a pagar. Os dados deste percurso são projecções, separados de facturas e declarações efectivas.</p>
|
||||
<p>Esta correspondência descreve a componente de vendas01/02. Consulte o bloco de compras e apuramento parcial para os campos08–10 e14–18, que só são determinados com as parcelas necessárias completas. O IVA das vendas não é imposto final a pagar.</p>
|
||||
<details><summary>Aquisições já projectadas — sem dedução presumida</summary>
|
||||
<p>Reutilizam-se os valores das compras/encomendas para existências do plano. O mês da encomenda não prova a data da factura, recepção ou pagamento. Valores declarados ainda sem indicação de base líquida/IVA incluído não são tratados como base tributável. IVA suportado e IVA dedutível continuam por determinar; zero de compras não prova inexistência de outras aquisições.</p>
|
||||
{error && <p role="alert">{error}</p>}
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
import { InvestmentContextAssessment } from './investment-context-assessment';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { monthlyIvaInput, monthlyIvaKey, monthlySalesFromDraft, readMonthlyIvaRecord, readMonthlyIvaSettings, monthlyIvaCashTreatment, type MonthlyIvaInput, type MonthlyIvaSettings } from '@/lib/monthly-iva';
|
||||
import { monthlyIvaInput, monthlyIvaKey, monthlySalesFromDraft, readMonthlyIvaRecord, readMonthlyIvaSettings, recoverMonthlyIvaRecord, monthlyIvaCashTreatment, type MonthlyIvaInput, type MonthlyIvaSettings } from '@/lib/monthly-iva';
|
||||
import { fiscalQaRows } from '@/lib/fiscal-qa-preview';
|
||||
import { isApiSimulationReadResponseV1, type ApiSimulationExecutionV1 } from '@/lib/simulation-contract';
|
||||
import { type ApiSimulationExecutionV1 } from '@/lib/simulation-contract';
|
||||
import { SimulationModeloA } from './simulation-modelo-a';
|
||||
import { SimulationAcquisitions } from './simulation-acquisitions';
|
||||
import { SimulationImportExemptions } from './simulation-import-exemptions';
|
||||
import { SimulationPublicAuthorityBase } from './simulation-public-authority-base';
|
||||
import { SimulationCommissionBase } from './simulation-commission-base';
|
||||
import { SimulationActSaleBase } from './simulation-act-sale-base';
|
||||
import { SimulationOfferPreparations } from './simulation-offer-preparations';
|
||||
import { SimulationOperations } from './simulation-operations';
|
||||
|
||||
export function SimulationMonthlyIva({draft, busy, onCalculate, onChange}: {
|
||||
draft: Record<string, unknown>; busy: boolean;
|
||||
@@ -16,6 +23,9 @@ export function SimulationMonthlyIva({draft, busy, onCalculate, onChange}: {
|
||||
const [error, setError] = useState('');
|
||||
const [available, setAvailable] = useState<boolean | null>(null);
|
||||
const attempt = useRef('');
|
||||
const mounted = useRef(true);
|
||||
const latestSnapshot = useRef(draft.monthly_iva_snapshot); latestSnapshot.current = draft.monthly_iva_snapshot;
|
||||
useEffect(() => { mounted.current = true; return () => { mounted.current = false; }; }, []);
|
||||
const callbacks = useRef({onCalculate, onChange}); callbacks.current = {onCalculate, onChange};
|
||||
let input: MonthlyIvaInput | null = null; let inputError = ''; let source = '';
|
||||
try { source = monthlySalesFromDraft(draft).source; input = monthlyIvaInput(draft, settings); }
|
||||
@@ -23,6 +33,8 @@ export function SimulationMonthlyIva({draft, busy, onCalculate, onChange}: {
|
||||
const key = input ? monthlyIvaKey(input) : '';
|
||||
const current = !!(input && record && monthlyIvaKey(record.input) === key);
|
||||
const completed = current && record?.execution.status === 'completed';
|
||||
const pendingRecord = record && ['queued','running'].includes(record.execution.status) ? record : null;
|
||||
const actionKey = pendingRecord ? `recover:${pendingRecord.execution.id}` : key;
|
||||
const saveSettings = (patch: Partial<MonthlyIvaSettings>) => onChange('monthly_iva_settings', JSON.stringify({...settings, ...patch}));
|
||||
useEffect(() => {
|
||||
let active = true;
|
||||
@@ -32,27 +44,26 @@ export function SimulationMonthlyIva({draft, busy, onCalculate, onChange}: {
|
||||
return () => { active = false; };
|
||||
}, [retry]);
|
||||
useEffect(() => {
|
||||
if (!settings.auto || !input || input.currency !== 'MZN' || busy || !available || completed || attempt.current === key) return;
|
||||
const request = input;
|
||||
const pending = current && record && ['queued','running'].includes(record.execution.status) ? record.execution.id : null;
|
||||
if (!settings.auto || busy || attempt.current === actionKey) return;
|
||||
if (!pendingRecord && (!input || input.currency !== 'MZN' || !available || completed)) return;
|
||||
const request = pendingRecord?.input ?? input!;
|
||||
const savedSnapshot = draft.monthly_iva_snapshot;
|
||||
const timer = window.setTimeout(() => {
|
||||
attempt.current = key; setError('');
|
||||
attempt.current = actionKey; setError('');
|
||||
void (async () => {
|
||||
try {
|
||||
let execution;
|
||||
if (pending) {
|
||||
const response = await fetch(`/api/v1/simulations/${pending}`, {credentials:'same-origin', headers:{Accept:'application/json'}});
|
||||
const value: unknown = await response.json();
|
||||
if (!response.ok || !isApiSimulationReadResponseV1(value)) throw new Error('Não foi possível recuperar a execução mensal guardada. Não foi criada uma execução alternativa.');
|
||||
execution = value.data;
|
||||
if (pendingRecord) {
|
||||
execution = (await recoverMonthlyIvaRecord(pendingRecord)).execution;
|
||||
} else execution = await callbacks.current.onCalculate(request);
|
||||
if (!execution) throw new Error('O cálculo mensal não foi concluído. As vendas e a versão anterior foram preservadas; tente novamente.');
|
||||
if (!mounted.current || (pendingRecord && latestSnapshot.current !== savedSnapshot)) return;
|
||||
callbacks.current.onChange('monthly_iva_snapshot', JSON.stringify({input:request, execution}));
|
||||
} catch (cause) {setError(cause instanceof Error ? cause.message : 'Não foi possível calcular o IVA mensal.');}
|
||||
} catch (cause) {if (mounted.current) setError(cause instanceof Error ? cause.message : 'Não foi possível calcular o IVA mensal.');}
|
||||
})();
|
||||
}, 700);
|
||||
return () => window.clearTimeout(timer);
|
||||
}, [key, settings.auto, busy, available, completed, retry]);
|
||||
}, [actionKey, key, settings.auto, busy, available, completed, retry]);
|
||||
|
||||
const snapshot = record?.execution.result_snapshot;
|
||||
const projection = snapshot?.monthly_projection as {rows?: Array<{date:string; sales_declared:string|null; net_sales:string|null; rate:string|null; vat:string|null; gross_sales:string|null; status:string}>} | undefined;
|
||||
@@ -73,11 +84,19 @@ export function SimulationMonthlyIva({draft, busy, onCalculate, onChange}: {
|
||||
{settings.auto && !completed && current && <p role="status">Execução mensal guardada: {record?.execution.status === 'queued' ? 'em fila' : record?.execution.status === 'running' ? 'em processamento' : 'não concluída'}. Pode voltar a consultar sem duplicar.</p>}
|
||||
{busy && <p role="status">A actualizar os resultados dependentes das vendas…</p>}
|
||||
{error && <p role="alert">{error}</p>}
|
||||
<button type="button" disabled={busy || !available || !input || input.currency !== 'MZN'} onClick={() => {attempt.current=''; setRetry((value) => value+1); saveSettings({auto:true});}} className="rounded bg-emerald-800 p-2 text-white disabled:opacity-50">Calcular / actualizar IVA mensal e guardar versão</button>
|
||||
<button type="button" disabled={busy || (!pendingRecord && (!available || !input || input.currency !== 'MZN'))} onClick={() => {attempt.current=''; setRetry((value) => value+1); saveSettings({auto:true});}} className="rounded bg-emerald-800 p-2 text-white disabled:opacity-50">{pendingRecord ? 'Recuperar execução mensal admitida pelo mesmo ID' : 'Calcular / actualizar IVA mensal e guardar versão'}</button>
|
||||
{pendingRecord && <p>Consulta da execução {pendingRecord.execution.id}. A suspensão de novos cálculos não impede esta recuperação; não é criado outro pedido.</p>}
|
||||
{settings.auto && <button type="button" className="ml-3 underline" onClick={() => saveSettings({auto:false})}>Pausar actualização automática</button>}
|
||||
{input && <p className="text-sm">{input.monthly_sales.length} meses; moeda {input.currency || 'por indicar'}. Campo vazio significa informação em falta; zero declarado permanece zero. Depois da primeira execução, alterações das vendas actualizam o cálculo enquanto a actualização automática estiver ligada.</p>}
|
||||
{projection?.rows && <div className="overflow-x-auto" tabIndex={0}><table className="min-w-full text-sm"><caption>IVA mensal — {current ? 'versão correspondente às entradas' : 'versão histórica'}</caption><thead><tr>{['Mês','Vendas declaradas','Vendas tributáveis sem IVA','Taxa aplicada (%)','IVA calculado','Total com IVA','Estado'].map((label) => <th key={label} className="p-2 text-left">{label}</th>)}</tr></thead><tbody>{projection.rows.map((row) => <tr key={row.date}><th scope="row" className="p-2">{row.date.slice(0,7)}</th><td>{row.sales_declared ?? 'Sem informação'}</td><td>{row.net_sales ?? 'Indeterminado'}</td><td>{row.rate ?? 'Indeterminada'}</td><td>{row.vat ?? 'Indeterminado'}</td><td>{row.gross_sales ?? 'Indeterminado'}</td><td>{{calculated:'Calculado',missing_sales:'Sem informação de vendas',unsupported_basis:'Base líquida não determinada',indeterminate:'Enquadramento ou regra indeterminados'}[row.status] ?? 'Indeterminado'}</td></tr>)}</tbody></table></div>}
|
||||
{snapshot && <details><summary>Ver fundamento e relatório da versão guardada</summary><dl>{fiscalQaRows(snapshot).map(([label,value], index) => <div key={index}><dt className="font-semibold">{label}</dt><dd>{value}</dd></div>)}</dl></details>}
|
||||
<SimulationOperations draft={draft} onChange={onChange} />
|
||||
<SimulationAcquisitions draft={draft} onChange={onChange} />
|
||||
<SimulationImportExemptions draft={draft} onChange={onChange} />
|
||||
<SimulationPublicAuthorityBase draft={draft} onChange={onChange} />
|
||||
<SimulationCommissionBase draft={draft} onChange={onChange} />
|
||||
<SimulationActSaleBase draft={draft} onChange={onChange} />
|
||||
<SimulationOfferPreparations draft={draft} onChange={onChange} />
|
||||
<SimulationModeloA draft={draft} />
|
||||
</section>;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user